Repository navigation
feat: add retrieval query mode router (agent vs classic) - #469
Merged
Merged
Conversation
- Updated the `use_agentic` parameter behavior to allow for a query router to choose between classic and agent retrieval modes. - Modified documentation and environment examples to reflect the new routing logic. - Introduced a router decision structure to capture the mode chosen by the query router. - Adjusted retrieval execution logic to incorporate the new routing mechanism, ensuring seamless integration of agentic and classic retrieval methods.
2 tasks
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
use_agenticis unset (None), run an LLM query router that choosesagent_explorevs classic map-unit BM25.True/Falsestill force the mode; small-corpus short-circuit stays first; failures/disabled fall back to agent.router_decisionon the public retrieval response; document env knobsRETRIEVAL_QUERY_ROUTER_ENABLED/RETRIEVAL_QUERY_ROUTER_MODEL.Test plan
make checkpackages/shared-python/shared/tests/test_query_router_classifier.pyapps/api/tests/contract/test_retrieval_query_router_contract.pyMade with Cursor