Skip to content

chore: format fix#4

Merged
georgeh0 merged 1 commit into
mainfrom
g/format-fix
Feb 20, 2026
Merged

chore: format fix#4
georgeh0 merged 1 commit into
mainfrom
g/format-fix

Conversation

@georgeh0

Copy link
Copy Markdown
Member

No description provided.

@georgeh0 georgeh0 merged commit 77f371a into main Feb 20, 2026
5 checks passed
mterenzi added a commit to mterenzi/cocoindex-code-dart that referenced this pull request May 8, 2026
Pure vector search ranked short identifier queries poorly — the literal-
match chunk got buried behind chunks that "look semantically similar"
(searching `CvoFile` returned the defining `class CvoFile` at rank cocoindex-io#8).
Pair vec0 KNN with an FTS5 keyword index, mirror it from vec0 after each
indexing pass, and merge ranks via Reciprocal Rank Fusion so neither
retriever's score scale dominates. FTS rows are inserted into the score
map first so keyword matches win stable-sort tie-breaks against vec-only
chunks at the same rank — the right call for identifier queries.

On real codebases the defining chunk now consistently lands in the top 3
(was cocoindex-io#4-cocoindex-io#8 before).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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