Skip to content

Knowledge Base Overview

← User Guide · 简体中文

A knowledge base (RAG) gives the AI access to your own material: imported documents are split into segments and indexed; when you ask, the system retrieves the most relevant segments and injects them into the model, grounding answers with traceable citations.

Good use cases: policy Q&A, product-manual support, personal notes search, domain assistants.

Overall Flow

Create knowledge base → Import documents (pick segmentation mode) → Index (vectorize / graph) → Q&A or link to a character
StepWhatSee
1. CreateRetrieval and splitting settingsCreate & Configure
2. ImportForm entry or file upload, choose segmentation modeImport Documents
3. IndexVectorization (required) and graph extraction (optional)Import Documents
4. MaintainSegment enable/disable, QA maintenance, retriesSegment Management, Q&A Import & Generation
5. UseKnowledge base Q&A, or link the base to a characterKnowledge Base Q&A, Character Settings
Knowledge base Q&A page
Knowledge base Q&A page
My knowledge bases page
My knowledge bases page

Two Entry Points

  • Knowledge base Q&A: the Knowledge Base menu item — pick a base and ask;
  • Knowledge base management: the Knowledge base management button at the bottom of the Q&A sidebar (or visit the "My knowledge bases" page directly) — creating and maintaining.

Three Segmentation Modes

The segmentation mode decides how documents are chunked and retrieved. It is a document-level property — chosen when importing or editing a document; one knowledge base can mix modes.

ModeBest forRetrieval
Plain segmentationContinuous text: manuals, articlesAuto-chunks per the base's splitting strategy; semantic similarity recall
Q&APaired content: FAQs, support scriptsQuestion-answer pairs; hitting any question recalls the answer
Parent-childLong, hierarchical documentsSmall chunks (children) match precisely; the hit returns its parent (larger context) to the model

How to choose:

  • Material is naturally question-answer → Q&A (highest accuracy, but requires reformatting);
  • Continuous prose with clear paragraphs → plain (easiest);
  • Long documents needing both precise hits and full context → parent-child (e.g. a manual: child hits a spec item, parent returns the section).

NOTE

Q&A mode only imports XLSX / XLS / CSV files; parent-child mode has its own child max-token setting (default 200).

Two Index Types

IndexPurposeNote
Vector indexEmbeds segments for semantic similarity searchThe foundation; prerequisite for Q&A
Graph indexExtracts entities and relations into a knowledge graphOptional; extraction uses an LLM and consumes tokens

Both can coexist; answers can be traced via citations and the citation graph (see Knowledge Graph). They complement each other: vectors are best at "semantically similar" content, graphs at "multi-hop relations" (who is the head of A's department).

Strict vs Lenient Mode

A knowledge-base-level answering strategy (set at creation, see Create & Configure):

  • Strict: with no relevant hits, returns "[No answer]" instead of making things up — for policies and compliance;
  • Lenient: with no hits, the question goes to the LLM for a free-form answer — for assistant scenarios.

Public vs Private

  • Private: visible and usable only by the creator;
  • Public: every user can see and use it (read-only) under the "Public" tab.

Where to Go Next

GoalPage
Build a base from scratchCreate & Configure
Import Word / PDFImport Documents
Already have an FAQ sheetQ&A Import & Generation
Keep one segment out of retrievalSegment Management
Try graph retrievalKnowledge Graph
Ask the base directlyKnowledge Base Q&A

Previous: Gallery · Next: Create & Configure