Knowledge Bases
Setting Up Knowledge Bases
Learn how to create and manage knowledge bases that organize your documents and make them available to your agents.
Creating a Knowledge Base
- Navigate to Admin Console → Knowledge Base
- Click "Add Knowledge Base"
- Enter a descriptive name (e.g., "company-policies", "technical-docs")
- Click "Create"
Organization Examples
Structure by department or function:
hr-policies- Employee handbook, benefitsengineering-docs- Technical documentation, APIscustomer-support- FAQs, troubleshooting guides
Uploading Documents
Supported Formats
- PDF (.pdf), DOCX (.docx), XLSX (.xlsx), Text (.txt), Markdown (.md), CSV (.csv), SRT (.srt), RTF (.rtf), and images (.jpg, .jpeg, .png, .gif, .webp)
- Maximum size: 50MB per file
Upload Methods
- Expand your knowledge base (click the header)
- Drag & drop files onto the upload area, or click "Select Files"
- Monitor progress - files show as Processing → Success/Error
Adding Text Manually
For quick content without files:
- Click "Add Text" in the expanded knowledge base
- Enter content in the text area
- Click "Upload"
Managing Documents
Search and Organization
- Search bar - Find documents by filename or author
- Document table - Shows name, author, status, date
- Model warning badge - Shows when a resource was embedded with a different model than the current setting, or when its chunks use mixed embedding models
- Delete documents - Click trash icon in Actions column
- Delete knowledge base - Click trash icon in header (⚠️ permanent)
Embedding Model Notes
- Knowledge-base content is embedded into
halfvec(1536)vectors. - The default embedding model is
text-embedding-3-small. - Supported knowledge-base models are
text-embedding-3-small,gemini-embedding-001, andgemini-embedding-2. - Gemini embedding models are stored at 1536 dimensions.
text-embedding-3-largeis not available in the Knowledge Base embedding-model selector.
Changing the embedding model does not rewrite existing resources automatically. Existing chunks keep their stored embedding_model; search generates query vectors for the stored models it finds and only compares chunks against vectors from the same model. Regenerate a resource or knowledge base to clear model mismatch or mixed-model warnings.
Best Practices
- Group related content - Keep similar documents together
- Use descriptive names -
employee-benefits-2024.pdfnotdocument1.pdf - Keep content current - Replace outdated versions regularly
- Plan agent access - Match knowledge bases to agent roles
Troubleshooting
Upload failures:
- Check file size (under 50MB) and format (PDF, DOCX, XLSX, TXT, MD, CSV, SRT, RTF, JPG, JPEG, PNG, GIF, WEBP)
- Verify file isn't corrupted by opening locally
Content not searchable:
- Ensure file shows "Success" status
- Verify agent has
searchKnowledgeBasetool enabled - Confirm knowledge base is assigned to agent
- If a model warning is present, search can still work, but regenerate the resource to align it with the current embedding model
Connecting to Agents
- Go to Agents → Select your agent → Knowledge Base section
- Enable specific knowledge bases or Enable all
- Save changes
Test by asking your agent questions about your uploaded content!