Knowledge
Agents use knowledge to supplement their training data with domain expertise.
from bitca.agent import Agent, AgentKnowledge
# Create a knowledge base for the Agent
knowledge_base = AgentKnowledge(vector_db=...)
# Add information to the knowledge base
knowledge_base.load_text("The sky is blue")
# Add the knowledge base to the Agent and
# give it a tool to search the knowledge base as needed
agent = Agent(knowledge=knowledge_base, search_knowledge=True)Vector Databases
1
2
3
Example: RAG Agent with a PDF Knowledge Base
Step 1: Run PgVector
Step 2: Traditional RAG
1
2
3
Step 3: Agentic RAG
1
2
Attributes
Parameter
Type
Default
Description
Last updated