What's Changed
Added
- RAG hybrid retrieval pipeline: 4-stage pipeline — query transformation, hybrid retrieval (vector + keyword via RRF), LLM-based reranking, configurable threshold/top-K filtering
- Full-text search index: GIN tsvector index for keyword-based document retrieval
- RAG configuration: Environment-configurable RAG parameters
- Rerank API support: LLM-based passage reranking in OpenAI-compatible client
Changed
- RAG code quality: Decomposed
hybridRetrieveinto focused sub-functions; extracted testable pure functions - SQL literal deduplication: Constants for repeated SQL where clauses
- golangci-lint integration: Added to
make lintpipeline; fixed errcheck warnings
Fixed
- SonarCloud quality gate: Resolved duplicated literals, cognitive complexity, and coverage issues
- Test coverage: Comprehensive tests for RAG service, config package, and OpenAI client rerank
Full Changelog: v1.3.1...v1.3.2