Use this file to discover all available pages before exploring further.
Filters restrict knowledge searches to documents matching specific criteria. Attach metadata when adding content, then filter by that metadata when searching.
from agno.agent import Agentfrom agno.knowledge.knowledge import Knowledge# Add content with metadataknowledge.insert( path="resumes/", metadata={"user_id": "jordan_mitchell", "document_type": "cv", "year": 2025})# Search with filtersagent = Agent( knowledge=knowledge, search_knowledge=True, knowledge_filters={"user_id": "jordan_mitchell"},)
Let the agent extract filters automatically from the query. The agent analyzes the user’s question and determines which filters to apply.
agent = Agent( knowledge=knowledge, search_knowledge=True, enable_agentic_knowledge_filters=True, # Agent infers filters from query)# Agent extracts "jordan_mitchell" as user filter from the queryagent.print_response("What skills does Jordan Mitchell have?")
This requires a Contents DB to track available filter keys.