Repository navigation
fix(lancedb): honor path_filter in find_similar_chunks - #496
Merged
HananKavitzAmat merged 1 commit intoNov 11, 2026
Merged
HananKavitzAmat merged 1 commit into
HananKavitzAmat merged 1 commit into
Conversation
The LanceDB provider logged a warning and ignored path_filter, so callers got neighbors from outside the requested scope, unlike the DuckDB provider. Resolve the matching file ids first and prefilter the vector search on them, so closer out-of-scope neighbors cannot use up the limit. Closes chunkhound#107 Co-Authored-By: Claude Opus 5.5 <[email protected]>
HananKavitzAmat
self-requested a review
November 11, 2026 12:12
Collaborator
|
looks good! Thanks |
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.
Fixes #107.
Why:
find_similar_chunkson LanceDB logged a warning and ignoredpath_filter, so callers got neighbors from outside the requested scope, unlike DuckDB. Multi-hop search relies on this method.The filter resolves matching file ids first and prefilters the vector search on them, so closer out-of-scope neighbors can't use up
limit.Note for review: this matches LanceDB's existing prefix behavior, so
srcalso matchessrc2/, while DuckDB normalizessrctosrc/. Happy to align them here or separately.search_semantichas the same unimplementedpath_filter; I left it out to keep this PR small.Smoke tests pass.
🤖 Generated with Claude Code