add_knowledge_to_context=True to retrieve before the first model call.
traditional_rag_pgvector.py
Run the Agent
1
Run PgVector
2
Set up your virtual environment
3
Install dependencies
4
Export the API key
5
Run the agent
How It Works
add_knowledge_to_context=Truesearches with the run’s string input.- Returned documents are appended to the user message inside a
<references>block. search_knowledge=Falseremoves the model-callable search tool.