feat: Optimized retrieval (RRF/ANN), refined scoring, and enhanced robustness via idempotent writes.#19
Merged
Merged
Conversation
…bustness via idempotent writes. 1. Multi-path Recall: Switched fusion strategy to Reciprocal Rank Fusion (RRF), replacing the previous "max-score overwrite" deduplication method. 2. Reranking Score Calculation: Changed from "additive accumulation + truncation" to "normalized weighted average." 3. Feedback Handling: Entries with no interaction are excluded from the weighted average calculation. 4. Stage Handling: Missing or unknown stages are treated as `raw`. 5. Write-time Conflict Detection: Optimized candidate set generation from "full scan" to "ANN top-K." 6. LLM Judge Budget Allocation: Consumption order is now sorted by overlap in descending order. 7. Exact Duplicate Handling: Replaced `ValueError` exception with idempotent return behavior. 8. Hash Indexing: Moved `find_by_hash` logic into the `backend/adapter` layer.
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
raw.ValueErrorexception with idempotent return behavior.find_by_hashlogic into thebackend/adapterlayer.