feat: port khive-retrieval — hybrid retrieval composer#302
Merged
Conversation
Ports the retrieval orchestration layer from khive-internal. Composes khive-hnsw (vector), khive-bm25 (text), and khive-fusion into a unified hybrid search pipeline with graph traversal, persistence adapters, cross-encoder reranking support, and evaluation harness. Includes prerequisite crates (hnsw, bm25, fusion) and fold objective registry for compilability. Gates on their individual PRs for merge. ~7.1K LOC, tests pass. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Accept main's versions of khive-fusion, khive-bm25, khive-hnsw. Fix clippy: derive Default for ClearanceLevel instead of manual impl. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Weighted fusion is constrained to exactly 2 sources (vector + keyword) by the HybridSearcher trait hierarchy. Add assertion to catch misuse. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PR #306 relocated ObjectiveRegistry from khive-fold to khive-runtime. This branch predated that change — sync both crates to main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Split from #297 (staging). Merge after: #298 (fold), #299 (fusion), #300 (bm25), #301 (hnsw).
Branch includes dep crates for compilability — only the
khive-retrieval/diff matters for review.Test plan
cargo check -p khive-retrievalcleancargo test -p khive-retrieval— all pass🤖 Generated with Claude Code