Retrieval-Augmented Generation with Qdrant and Ollama
Find a file
Claude acb987a01d
test: add Phase 1 pure-function unit tests (18.4% -> 38.8% coverage)
Add comprehensive unit tests for all pure functions that require no
external services (Qdrant, Ollama). Coverage of testable functions
now at 100% for FormatResults*, Default*Config, EmbedDimension,
valueToGo, Model, ChunkID, and ChunkMarkdown edge cases.

New test files:
- query_test.go: FormatResultsText, FormatResultsContext, FormatResultsJSON,
  DefaultQueryConfig (18 tests)
- ollama_test.go: DefaultOllamaConfig, EmbedDimension, Model (8 tests)
- qdrant_test.go: DefaultQdrantConfig, pointIDToString, valueToGo,
  Point/SearchResult structs (24 tests)

Extended chunk_test.go with edge cases:
- Empty input, whitespace-only, single newline
- Headers with no body content
- Unicode/emoji text with rune-safe overlap verification
- Very long single paragraph
- Config boundary conditions (zero/negative size, overlap >= size)
- Sequential chunk indexing
- ChunkID rune truncation with multibyte characters
- DefaultChunkConfig, DefaultIngestConfig

Co-Authored-By: Charon <developers@lethean.io>
2026-02-20 00:02:52 +00:00
chunk.go feat: extract go-rag from go-ai as standalone RAG package 2026-02-19 18:29:59 +00:00
chunk_test.go test: add Phase 1 pure-function unit tests (18.4% -> 38.8% coverage) 2026-02-20 00:02:52 +00:00
CLAUDE.md feat: extract go-rag from go-ai as standalone RAG package 2026-02-19 18:29:59 +00:00
FINDINGS.md fix: correct go.mod replace directive, prep contract files for fleet 2026-02-19 23:33:56 +00:00
go.mod fix: correct go.mod replace directive, prep contract files for fleet 2026-02-19 23:33:56 +00:00
go.sum fix: correct go.mod replace directive, prep contract files for fleet 2026-02-19 23:33:56 +00:00
helpers.go feat: extract go-rag from go-ai as standalone RAG package 2026-02-19 18:29:59 +00:00
ingest.go feat: extract go-rag from go-ai as standalone RAG package 2026-02-19 18:29:59 +00:00
ollama.go feat: extract go-rag from go-ai as standalone RAG package 2026-02-19 18:29:59 +00:00
ollama_test.go test: add Phase 1 pure-function unit tests (18.4% -> 38.8% coverage) 2026-02-20 00:02:52 +00:00
qdrant.go feat: extract go-rag from go-ai as standalone RAG package 2026-02-19 18:29:59 +00:00
qdrant_test.go test: add Phase 1 pure-function unit tests (18.4% -> 38.8% coverage) 2026-02-20 00:02:52 +00:00
query.go feat: extract go-rag from go-ai as standalone RAG package 2026-02-19 18:29:59 +00:00
query_test.go test: add Phase 1 pure-function unit tests (18.4% -> 38.8% coverage) 2026-02-20 00:02:52 +00:00
TODO.md fix: correct go.mod replace directive, prep contract files for fleet 2026-02-19 23:33:56 +00:00