What is a Knowledge Base?
A knowledge base stores:- Documents (PDF, Word, text, etc.)
- Converted to vector embeddings
- Indexed for fast semantic search
- Retrieved for RAG augmentation
Creating a Knowledge Base
Upload Documents
Click Upload Documents:
- Select files (PDF, DOCX, TXT, etc.)
- Set metadata if needed
- Documents processed automatically
Knowledge Base Features
- Semantic Search - Understand meaning, not just keywords
- Multi-document - Search across many files
- Automatic Chunking - Documents split intelligently
- Vector Embeddings - Math-based document representation
- Reranking - LLM refines search results
- Metadata - Tags, dates, sources attached
Supported Document Types
| Format | Support |
|---|---|
| ✓ | |
| DOCX | ✓ |
| TXT | ✓ |
| Markdown | ✓ |
| JSON | ✓ |
| XLSX | ✓ |
| HTML | ✓ |
Usage in Agents
When agent has Knowledge Retrieval attached: Agent: “What’s our return policy?” Process:- Query embedded to vectors
- Similar documents retrieved
- Top matches injected into prompt
- Agent responds with context
Embedding Models
Choose model based on needs:| Model | Dimensions | Best For |
|---|---|---|
| small | 1536 | General |
| large | 3072 | Nuanced |
| custom | Variable | Specialized |
Search Modes
Semantic
Find by meaning:Keyword
Find by exact words:Hybrid
Combination of both.Vector Database
Vectors stored in the vector database:- Fast similarity search
- Distributed storage
- Automatic indexing
Limits
| Limit | Value |
|---|---|
| Docs per knowledge base | 10,000 |
| Total embeddings | 1M per account |
| Doc size | 100MB |
| Search results | 20 (top) |
Cost
For current pricing details, see Pricing.How Agents Access Knowledge
There are two ways to connect agents to your knowledge bases:Attach Knowledge Base Directly (Automatic RAG)
Configureknowledge_base_ids on your agent. The platform automatically retrieves relevant documents at the start of each conversation turn and injects them into the agent’s context.
Best for: Agents that always need access to specific documentation (support bots, FAQ assistants, domain experts).
Attach Knowledge Retrieval Capability (On-Demand Tool)
Attach the Knowledge Retrieval built-in capability to your agent. This gives the agentsearch, get_by_id, and list tools that it calls when it decides it needs to look something up.
Best for: General-purpose agents that only sometimes need knowledge lookups, or agents that should control when and what they search.
You can combine both approaches — automatic context from attached KBs plus on-demand searches via the capability tool.
See Knowledge Bases & RAG for a detailed conceptual overview.