Knowledge Filters
Agentic filters
Agentic Knowledge Filters
Agentic filtering lets the Agent automatically extract filter criteria from your query text, making the experience more natural and interactive.
Step 1: Attach Metadata
There are two ways to attach metadata to your documents:
-
Attach Metadata When Initializing the Knowledge Base
-
Attach Metadata When Loading Documents One by One
How It Works
When you enable agentic filtering (enable_agentic_knowledge_filters=True
), the Agent analyzes your query and applies filters based on the metadata it detects.
Example:
In this example, the Agent will automatically use:
user_id = "jordan_mitchell"
document_type = "cv"
🌟 See Agentic Filters in Action!
Experience how agentic filters automatically extract relevant metadata from your query.
The Agent intelligently narrows down results based on your query.
When to Use Agentic Filtering
- When you want a more conversational, user-friendly experience.
- When users may not know the exact filter syntax.
Try It Out!
- Enable
enable_agentic_knowledge_filters=True
on your Agent. - Ask questions naturally, including filter info in your query.
- See how the Agent narrows down results automatically!