Tip: You can combine multiple filters for more precise results!
add_references=True
to ensure that references are included in the system message sent to the LLM. For Agentic RAG, you set search_knowledge=True
to leverage the agent’s ability search the knowledge base directly.
Example:
search_knowledge=True
is preferred as it offers a more dynamic and interactive experience.
Checkout an example here of how to set up knowledge filters in a Traditional RAG systemManual Filtering | Agentic Filtering |
---|---|
Explicit filters in code | Filters inferred from query text |
Full control | More natural, less code |
Good for automation | Good for user-facing apps |