feat: expose chunk_tier as a search filter - #98
Merged
Conversation
chunk_tier is computed for every indexed symbol and registered as a Qdrant keyword payload index, but no code path applied it as a filter, so clients couldn't scope a query to just classes or just methods. Adds chunk_tier to QdrantStore.search() / find_by_name() as a FieldCondition, and threads it through the search_code and find_symbol MCP tools. Closes #95 Co-Authored-By: Claude Sonnet 5 <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.
Summary
chunk_tier("method"/"class") is computed for every symbol and registered as a Qdrant keyword payload index, but no MCP tool or store method actually applied it as a filter — the index was dead weight.chunk_tier: str | NonetoQdrantStore.search()andQdrantStore.find_by_name(), building an additionalFieldConditionin the query filter.chunk_tieron thesearch_codeandfind_symbolMCP tools and threaded it through.README.mdanddocs/retrieval-rrf.mdto document the new filter.Test plan
uv run pytest tests/test_store.py tests/tools/test_search.py -q— added filter-passthrough tests for both tools and both store methodsuv run pytest -q— 269 passedruff checkcleanCloses #95
🤖 Generated with Claude Code