Add search-selector template#12
Closed
MicaPerdomo wants to merge 1 commit intocogsol:mainfrom
Closed
Conversation
cc2f136 to
0640d5e
Compare
c3bdc33 to
3c090f8
Compare
3c090f8 to
2b76c74
Compare
Author
|
Superseded by #30 (search-selector example). |
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
search-selectortemplate demonstrating the search selector pattern: a single script tool that dynamically routes queries to the correct retrieval based on topic parameters.SearchInformationscript tool receivestopicandquestion, looks up the matchingRetrievalby name via Django ORM, executes the search, and aggregates results. Multi-topic search is supported via|separator (e.g.,europe|asia).What Is Included
agents/tools.py—SearchInformationscript tool (router)agents/searches.py— 3BaseRetrievalToolsubclasses (required for Cognitive API retrieval registration)agents/searchselector/— Agent definition, scaffolds, system promptdata/— 3 topics, 3 retrievals, formatter, ingestion config, 12 travel destination docstemplates/README.mdand rootREADME.mdcatalog entriesTest plan
python manage.py makemigrationsgenerates data + agents migrationspython manage.py migrate datathenmigrate agentsapply without errorspython manage.py ingest europe/asia/americasingests 12 docs (4 per topic)