Prerequisites: API key
Create a Knowledge Base
Create a knowledge base with documents that your agent can use for RAG.List Knowledge Bases
Get all your knowledge bases with pagination support.Get Knowledge Base Details
Retrieve details for a specific knowledge base, including all documents.Update a Knowledge Base
Update the name, description, or add new documents to an existing knowledge base.Assign Knowledge Base to Agent
Assign an existing knowledge base to an agent for RAG capabilities.Create Agent with Knowledge Base
You can also create an agent with a knowledge base directly, or create a new knowledge base during agent creation.Remove Knowledge Base from Agent
Unassign a knowledge base from an agent.Delete a Knowledge Base
Permanently delete a knowledge base. Note: You must unassign it from all agents first.Best Practices
- Document Structure: Use clear, concise content with relevant metadata for better retrieval
- Knowledge Base Reuse: The API automatically detects and reuses knowledge bases with identical content
- Agent Assignment: One knowledge base can be shared across multiple agents
- Updates: Adding documents to a knowledge base automatically rebuilds the index
Next Steps
- Agent Quickstart - Create your first agent
- API Reference - Complete API reference