Skip to main content
When you ask the AI a question and it replies “I don’t know” or gives an off-topic answer, that’s where the Knowledge Base comes in. By converting your internal documents into a form the AI can reference directly, the Knowledge Base enables accurate, document-grounded answers.

Example

“What is our company’s annual leave policy?”
Each Knowledge Base can use a different Document Processing Profile with its own extraction method and chunking strategy. See Document Processing Profile Selection below for details.
Knowledge Base list

View Knowledge Bases in Workspace > Knowledge Base


RAG Pipeline

Uploaded documents go through this pipeline before becoming searchable.

Creating a Knowledge Base

1

Create a new Knowledge Base

In Workspace > Knowledge Base, click the + New Knowledge button at the top-right.
Knowledge Base creation form

Enter name and description, and set access permissions

2

Upload documents

Add documents to the new Knowledge Base. Click the Add Content (+) button to choose an upload method.
Knowledge Base detail

Use Add Content (+) to choose file upload, text input, or cloud sources

Upload methods:
3

Wait for processing

Uploaded documents go through text extraction → chunking → embedding → indexing automatically. A real-time notification appears when processing completes.
Files that take more than 10 minutes to process are auto-failed. Delete and re-upload the file in that case.
Bulk uploads:
  • 5+ files or directory uploads switch to batch mode
  • A progress bar shows steps (upload → processing) at the top, with failures shown in red
  • 3 files are processed in parallel
  • Progress state persists across page refreshes
4

Verify and validate

Click a document to view extracted text and connect it to an agent to validate retrieval quality. Toggle Summary in the file list to see the AI-generated document summary.

Supported File Formats

The default extraction engine recognizes text in the following formats. Switching the extraction engine widens this coverage (see Content Extraction Engine below).
Extensions not listed can still be uploaded — they are read as plain text. However, binary files such as ZIP or executables may be ingested as garbled content, so we recommend uploading the formats above. An admin can configure an allowed-extension whitelist to restrict uploads to specific formats only.

Max Size / Count

Both values are unlimited by default. Leaving an admin field empty means no limit; entering a number rejects any file exceeding that threshold at upload time.

Dynamic Filters

Dynamic filters let you classify documents in a KB by metadata and automatically narrow the search scope.
For internal mechanics of dynamic filters — Manual vs. AI comparison, 5-step search flow, and more — see the Dynamic Filters Deep-Dive.

Defining the Filter Schema

Click “Add Filter” in Knowledge Base settings to define filter fields.
Filter schema definition

Define filter fields to classify documents by metadata

Filter Types

Per-File Metadata Settings

After defining the filter schema, set metadata values per file. The metadata state is shown by color in the file list.
File metadata input

Per-file metadata state is shown by color

When metadata changes, the vector index is updated automatically. Existing vectors are kept — no re-embedding required.

AI Auto-Extraction

When you set an extraction prompt on the filter schema, the LLM analyzes document content and filename at upload time and auto-extracts metadata.
1

Set extraction mode

Click the Manual / AI toggle in the filter schema and switch to AI mode.
2

Write the extraction prompt

Write an extraction prompt for each filter. Example: “Extract the country name from the filename”
3

Pick an AI model

Select the LLM model for extraction.
4

Run extraction

Runs automatically on upload, or run single/all extraction manually.
You can use “filename” as a condition in the extraction prompt. Example: “If the filename starts with [XX] (country code), extract that country code”
When a connected KB has dynamic filters, the AI auto-infers filter conditions from the user’s question to narrow search scope.

Agent Description

The agent description is an AI-only description that tells the agent when and in what situations to use this Knowledge Base.
If no agent description is set, the KB’s general description is used instead. We recommend writing a specific agent description so the AI can pick the right Knowledge Base among many. AI auto-generation: Click the auto-generate button next to the agent description field — the AI drafts the description based on the KB name, description, and file list.

Knowledge Base Management

Document Management

The file list uses infinite scroll to load 50 entries at a time. File state badges:
Re-uploading a file with the same name shows a duplicate confirmation dialog.

Reindexing

To rebuild the vector index for the entire KB, run reindex from Admin Panel > Settings > Documents. This is admin-only and processes all KBs at once. When you edit and save an individual file’s content, only that file is automatically re-processed.

Using in Chat

Reference directly during chat with @kb-name.
Click citation numbers in the AI response to view the source content.

Document Processing Profile Selection

New feature — Apply different document processing strategies (extraction engine, chunking method, table preservation) per Knowledge Base.
Choose one of the profiles defined by the admin in Admin Panel > Settings > Documents. If you don’t pick one, the default profile applies.

Profile Use Cases

Only admins can create profiles. If a needed profile is missing, ask your admin. See Admin Panel > Settings > Documents for profile setup.

Advanced Settings

Adjust document processing and search parameters in admin settings.
These settings are global defaults for KBs without a Document Processing Profile. KBs with a profile use the profile settings instead.

Content Extraction Engine

Choose the engine for extracting text from documents in admin settings.
Image files (PNG, JPG, etc.) are not text-indexed by default — they are stored but their contents are not searchable. To search text inside images, set the knowledge base’s document processing profile to Google Cloud Document AI or LLM Vision. (Azure Document Intelligence and Mistral OCR handle PDF and Office documents but do not support standalone image files.)

Document Processing Profile Options

Text Splitter options:

Embedding Engine

Search Settings

Search settings have two layers — global (admin) and per-KB.
Override search settings per Knowledge Base. Click the Search Settings icon on the KB edit screen. Leaving values empty applies the global admin settings.

Per-KB Document Summary Settings

Control document summary generation per KB. Configure under the “File Summary” section in the search settings modal. For files with summaries, click the “Summary” toggle in the list to view inline. When question generation is enabled, the LLM pre-generates “questions a user might ask to find this content” for each chunk and stores them as separate vectors.
Enabling question generation adds LLM calls during document processing. Processing time and cost may increase.
Configure question generation per KB independently of the global setting. Use the “Question Generation” section in the search settings modal to enable/disable and select the LLM model.

Best Practices

Document Preparation

  1. Clean format: Distinguish titles and subheadings clearly with consistent styling
  2. Keep current: Update documents regularly and remove old ones
  3. Right size: Split large documents by topic and group related content together

Knowledge Base Composition

  1. Separate by topic: Create separate KBs for “HR Policy”, “IT Guide”, “Product Manual”, etc.
  2. Granular access: Manage sensitive info separately and restrict access by department
  3. Write agent descriptions: A specific agent description helps agents auto-pick the right KB

Use Cases

Build Knowledge Bases of HR policy, work manuals, and IT guides so new hires can adapt quickly by asking the AI.
  • Knowledge Bases: “HR Policy”, “Work Manual”, “IT Usage Guide”
  • Connect 3 KBs to the agent
  • Differentiate KB purposes via agent descriptions
Build Knowledge Bases of product manuals, FAQs, and technical docs to provide accurate answers to customer inquiries.
  • Dynamic filters: filter by product name, version
  • Agent: customer-support system prompt + Knowledge Base connection
  • Use citation display to ensure trust
Classify per-department documents with dynamic filters and search the right policies by department.
  • Dynamic filters: department, year, document type
  • AI auto-extraction for metadata
  • Access control to protect sensitive documents

FAQ

By default, there’s no limit on file count or capacity. Admins can set limits via environment variables.
When a file with the same name is detected, a duplicate confirmation dialog appears with Overwrite, Skip, or Cancel options.
The default extraction engine extracts text from images embedded in PDFs to a limited degree, but for scanned documents or image-heavy PDFs, Azure Document Intelligence, Google Cloud Document AI, or LLM Vision engines are much more accurate. To upload a standalone image file (PNG/JPG) and search its text, a Google Cloud Document AI or LLM Vision profile is required. Check the extraction engine setting with your admin.
No. Metadata changes only update the vector index’s filter fields; existing vectors stay intact. Processed quickly without re-embedding.
When multiple KBs are connected, search settings merge as follows:
  • Top K, Reranker Top K: Use the largest value across KBs
  • Reranker Threshold: Use the lowest value across KBs (more results pass)
Existing documents’ vectors are not auto-reprocessed when the profile changes. To apply the new profile to existing documents, delete and re-upload them, or run a full reindex from admin settings.
  • LLM Vision: page count × ~2 LLM calls (extraction + boundary correction)
  • Context Preservation: chunk count × 1 LLM call
For a 10-page PDF + 20 chunks: LLM Vision (19 calls) + Context Preservation (20 calls) ≈ 39 LLM calls. Bulk uploading large documents can cost a lot, so use selectively for important docs.

Dynamic Filters Deep-Dive

Filter internals, Manual vs AI, the 5-step search flow

Knowledge Graph

Connect Knowledge Bases + glossaries + DBs into one graph

Agents

Connect a Knowledge Base to an agent

Glossary

Improve AI understanding by defining domain terms