Skip to content

Knowledge Base & RAG

The Knowledge Base is the foundation of your AI bot. Upload your organization’s real documents — the bot learns from this data and answers questions using a smart RAG (Retrieval-Augmented Generation) pipeline.

Knowledge Base — Document List

  1. Go to Knowledge Base in the left menu.

  2. Click Upload Document and select a file (PDF, DOCX, or TXT).

  3. Wait for the system to process and index the document. Status will show Ready when complete.

  4. Test the bot in the Test Bot panel on the right to verify the bot can answer questions from the uploaded document.

Upload Document Dialog

v1.10.0

You can now upload multiple documents at once. Instead of adding files one at a time, select several PDF, DOCX, or TXT files in a single bulk upload. Each file is processed and indexed independently, and you receive a per-file result so you can see at a glance which documents succeeded and which need attention.

v1.10.0

You can download any document you have uploaded back to your machine — useful for auditing, sharing the source file, or moving content between workspaces. Downloads are authenticated and scoped to your organization, so only members of your team can retrieve your files. The download path is validated against the document record, which prevents path-traversal and guarantees you always receive exactly the file associated with a given document.

In addition to file uploads, you can create knowledge base entries directly from text:

  1. Click Create from Text
  2. Enter a Title for easy reference
  3. Paste or type the content in the text editor
  4. Click Save — the system will index immediately

This is useful for FAQs, policies, or any content you want to write directly without a file.

When a user asks a question, the system processes it through a 4-step RAG pipeline:

  1. Hybrid Search — Searches across all documents using both keyword and semantic vector search simultaneously, ensuring no relevant content is missed.

  2. Query Rewriting — Rewrites the user’s question to be more precise and search-friendly, improving retrieval accuracy even when questions are vague.

  3. Re-ranking — Scores and re-ranks retrieved document chunks by relevance, so the most relevant content is passed to the AI model first.

  4. Generate Answer — The AI model generates a natural-language answer grounded in the retrieved content, with source references.

FeatureDescription
Hybrid SearchCombines keyword + semantic vector search for higher recall
Query RewritingAuto-rephrases user questions to improve retrieval accuracy
Re-rankingCross-encoder re-ranking to surface the most relevant chunks
Smart Model RoutingRoutes queries to the appropriate model based on complexity and cost

Control how strictly the bot stays within the knowledge base:

ModeBehavior
StrictBot answers only from uploaded documents. Refuses to answer if no relevant content found.
HybridBot primarily uses the knowledge base but may supplement with general knowledge when needed.
OpenBot uses the knowledge base as context but can answer freely from its training data.

Use the Test Bot panel to verify your knowledge base before going live:

Test Bot Page

  • Type questions as a user would
  • Check that answers are grounded in your documents
  • Use the Source view to see which document chunks the bot retrieved
  • Adjust guardrail mode and re-test if needed

Changes to the knowledge base take effect immediately in the Test Bot — no redeployment required.

v1.6.0

KB Auto-Suggest

The auto-suggest feature analyzes unanswered questions from the Analytics dashboard and automatically generates draft knowledge base articles to fill content gaps:

  1. The system identifies topics from unanswered questions that have no matching document
  2. It generates a draft document with suggested content based on the question patterns
  3. Drafts appear in the Analytics → Unanswered section with a “Suggested Draft” badge
  4. Review, edit, and publish the draft to immediately improve bot coverage
v1.6.10

The RAG pipeline supports cross-lingual retrieval — visitors can ask questions in one language and receive answers sourced from documents written in a different language.

This works through two mechanisms:

  1. Query translation — The query rewrite service automatically translates non-English queries into English before searching, so English-language documents are discoverable regardless of the visitor’s language.
  2. Wider search net — When the reranker is enabled, the system uses a lower initial similarity threshold to ensure cross-lingual and colloquial queries with lower cosine similarity but high semantic relevance are not filtered out before the reranker can evaluate them.

No configuration is needed — cross-lingual search is enabled by default when the RAG pipeline’s query rewriting and reranking features are active. If query translation is unavailable, the system falls back to searching with the original query. The improvement is especially noticeable for organizations with English-language knowledge bases serving multilingual visitors.