Create an Agent with Knowledge
knowledge_agent.py
Setup
The agent searches the knowledge base, finds relevant content, and answers based on what it found.Load Different Content Types
- Files
- URLs
- Text
What’s Happening
- Insert: Content is chunked, embedded with Gemini, and stored in ChromaDB
- Query: The agent receives your question and decides to search the knowledge base using the
search_knowledge_basetool - Response: The agent uses the retrieved content to answer, grounding its response in your data
Next Steps
Agents with Knowledge
Agentic RAG, traditional RAG, reranking
Teams with Knowledge
Distributed search, coordinated RAG
Vector Stores
PgVector, Pinecone, Weaviate, and 20+ more
Search & Retrieval
Vector, keyword, and hybrid search