Commit Graph
2 Commits
Author SHA1 Message Date
rock 71ba48885e feat(phase3-4): Complete hybrid retrieval + LLM optimization pipeline
Phase 3: Hybrid Retrieval
- HybridRetriever: TF-IDF prefilter + semantic rerank + RRF fusion
- WikiScopedFilter: BFS wiki-graph traversal
- RetrievalRoute: Direct | WikiScoped | ReferenceOnly
- 10 unit tests

Phase 4: LLM Call Optimization
- ChunkOptimizer: unified pipeline (threshold + budget + dedup)
- ScoreThresholdFilter: configurable min_score (default 0.6)
- BudgetSelector: greedy selection within byte budget
- ShingleDeduplicator: Jaccard similarity dedup
- 8 unit tests

QueryRouter (Phase 3+4 Integration)
- Bridges WikiLinkGraph + HybridRetriever + ChunkOptimizer
- RouterConfig: max_hops, thresholds, budget, RRF weights
- WikiGraphBuilder: construct graph from markdown docs
- 11 unit tests

Integration Tests (it_phase3_phase4.rs)
- 19 end-to-end tests covering full pipeline
- Wiki-link parsing, graph traversal, route selection
- TF-IDF prefilter, RRF fusion, chunk optimization
- Edge cases (empty, no matches, config customization)

Total: 107 tests passing (was 32)
2026-08-31 22:42:34 -07:00
rock 298f98202c docs: add IMPLEMENTATION_STATUS.md — track progress on phases 1-7
Build and Push / Test (push) Successful in 12m40s
Build and Push / Build and push image (push) Successful in 12m2s
2026-08-30 20:43:26 -07:00