Skip to main content
Create and manage knowledge bases for retrieval augmented generation (RAG) with your voice agents.
Prerequisites: API key

Create a Knowledge Base

Create a knowledge base with documents that your agent can use for RAG. See the Create Knowledge Base endpoint for details.
Response:

List Knowledge Bases

Get all your knowledge bases with pagination support. See the Knowledge Base List endpoint for details.

Get Knowledge Base Details

Retrieve details for a specific knowledge base, including all documents. See the Knowledge Base Details endpoint for details.

Update a Knowledge Base

Update the name, description, or replace all documents in an existing knowledge base. Note: If you provide documents, they will replace ALL existing documents in the knowledge base. See the Update Knowledge Base endpoint for details.

Assign Knowledge Base to Agent

Assign an existing knowledge base to an agent for RAG capabilities. See the Assign Knowledge Base endpoint for details.

Create Agent with Knowledge Base

You can create an agent and assign an existing knowledge base during agent creation.

Remove Knowledge Base from Agent

Unassign a knowledge base from an agent. See the Unassign Knowledge Base endpoint for details.

Delete a Knowledge Base

Permanently delete a knowledge base. Note: You must unassign it from all agents first. See the Delete Knowledge Base endpoint for details.

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: When updating documents, provide the complete set of documents you want in the knowledge base, as updates replace all existing documents

Next Steps