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
1
Navigate to Knowledge
Knowledge > Create Knowledge Base
2
Basic Info
- Name: “Product Docs”
- Description: “Official product documentation”
- Click Create
3
Upload Documents
Click Upload Documents:
- Select files (PDF, DOCX, TXT, etc.)
- Set metadata if needed
- Documents processed automatically
4
Configure
- Choose embedding model
- Set search parameters
- Enable reranking (optional)
5
Test
Use Test Search to try queries before using in agents.
6
Attach to Agent/Gateway
Open Knowledge Retrieval capability, link knowledge base.
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
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: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
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.