Repository navigation
mcp: add unique_paths format mode for file-shortlist workflows - #9
Merged
Merged
Conversation
`format: paths` returns one line per chunk hit, which means the same file appears multiple times when it matches at several locations. For agents that just want to know *which files to look at* (not which chunks), that's noise. `format: unique_paths` collapses to one line per file, ordered by the best-scoring hit per file. The result is a clean shortlist — `crates/foo/bar.rs` per line, deduped, no line ranges. For `refs`, dedupe spans both sections: definitions are listed first (authoritative), then any additional files surfaced by BM25. Same deduping logic, applied to the union. Available on `search`, `find_related`, and `refs` — symmetric with the existing `paths` mode.
kundeng
added a commit
to kundeng/Veles
that referenced
this pull request
Jul 6, 2026
rerank: feed the transformer the UNION of BM25 + semantic recall (deduped) instead of the hybrid-RRF set. On prose the static-semantic channel is noise-floor, and RRF blended it in, demoting strong BM25 hits below the recall window before the reranker saw them (measured: a correct snippet sat at BM25 julymetodiev#9 but hybrid #22). Union guarantees strong lexical hits reach the transformer. Regex lane untouched. mcp: add the MCP `instructions` field to the initialize result so agents learn which tool/mode to use, that prose queries need rerank:true with a local /v1/embeddings server, and efficiency tips (path/lang/exclude, token-cheap formats). installer: install.sh version-parametrised to 0.6.1. Also stop tracking release tarballs in git (they belong in GitHub Releases); gitignore them. 108 core tests pass. Co-Authored-By: Claude Opus 4.8 (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.
format: pathsreturns one line per chunk hit, which means the same file appears multiple times when it matches at several locations. For agents that just want to know which files to look at (not which chunks), that's noise.format: unique_pathscollapses to one line per file, ordered by the best-scoring hit per file. The result is a clean shortlist —crates/foo/bar.rsper line, deduped, no line ranges.For
refs, dedupe spans both sections: definitions are listed first (authoritative), then any additional files surfaced by BM25. Same deduping logic, applied to the union.Available on
search,find_related, andrefs— symmetric with the existingpathsmode.