Skip to content

Add search-with-filters template#11

Closed
MicaPerdomo wants to merge 1 commit intocogsol:mainfrom
MicaPerdomo:template-14-search-with-filters
Closed

Add search-with-filters template#11
MicaPerdomo wants to merge 1 commit intocogsol:mainfrom
MicaPerdomo:template-14-search-with-filters

Conversation

@MicaPerdomo
Copy link
Copy Markdown

Summary

  • Add search-with-filters template demonstrating semantic search with metadata filters
  • Agent: MovieSearchAgent with a retrieval tool that accepts optional genre, language, and decade filters
  • Content: 12 movie synopses covering different genres, languages, and decades
  • Includes three BaseMetadataConfig classes (genre, language, decade), BaseRetrieval with filters, BaseRetrievalTool with filter parameters, and a custom ingestion script for per-document metadata
  • Includes scripts/ingest_movies.py for uploading documents with individual metadata values

Test plan

  • Run makemigrations and verify single clean migration for agents and data
  • Run migrate data then migrate agents to deploy
  • Run scripts/ingest_movies.py to upload movies with metadata
  • Run chat --agent MovieSearchAgent and verify search with and without filters
  • Verify CI checks pass

@MicaPerdomo MicaPerdomo force-pushed the template-14-search-with-filters branch from 229100e to 2ce41c1 Compare February 20, 2026 16:58
@MicaPerdomo MicaPerdomo deleted the template-14-search-with-filters branch February 20, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant