Skip to content

feat: port khive-fusion — RRF + Weighted + Union retrieval fusion#299

Merged
ohdearquant merged 2 commits into
mainfrom
feat/port-khive-fusion
May 22, 2026
Merged

feat: port khive-fusion — RRF + Weighted + Union retrieval fusion#299
ohdearquant merged 2 commits into
mainfrom
feat/port-khive-fusion

Conversation

@ohdearquant
Copy link
Copy Markdown
Owner

Summary

  • Ports fusion strategies from khive-internal
  • RRF (Reciprocal Rank Fusion), weighted linear combination, and union strategies
  • Merges ranked result lists from heterogeneous retrieval sources
  • ~1.5K LOC, 5 tests pass

Split from #297 (staging). Leaf crate — no deps on other new crates.

Test plan

  • cargo check -p khive-fusion clean
  • cargo test -p khive-fusion — 5 passed

🤖 Generated with Claude Code

Ports fusion strategies from khive-internal. Provides RRF (Reciprocal Rank
Fusion), weighted linear combination, and union strategies for merging
ranked result lists from heterogeneous retrieval sources.

~1.5K LOC, 5 tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove unused deps (khive-types, serde_json, thiserror) from Cargo.toml
- Remove unverified Lean4 proof claim from crate description
- Replace PROOF CORRESPONDENCE comments with Property annotations
- Fix incorrect ADR-002 references (ADR-002 is edge ontology, not fusion)
- Fix Box::leak memory leak in test_rrf_large_number_of_results
- Document silent weight-mismatch behavior in weighted_fusion

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ohdearquant ohdearquant merged commit 47fd8fc into main May 22, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant