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