Last updated
Last updated
A knowledge base is a collection of documents. Documents can be uploaded by developers or operators, or synchronized from other data sources. Each document in the knowledge base corresponds to a file in its data source—for example, a Notion document or an online webpage.
To upload a new document to an existing knowledge base, go to Knowledge Base > Documents and click Add File.
Enable: Documents that are currently in normal status can be edited and retrieved in the knowledge base. If a document has been disabled, you can re-enable it. For archived documents, you must first unarchive them before re-enabling.
Disable: If you don’t want a document to be indexed during use, toggle off the blue switch on the right side of the document to disable it. A disabled document can still be edited or modified.
Archive: For older documents that are no longer in use but you don’t want to delete, you can archive them. Archived documents can only be viewed or deleted and cannot be edited. You can archive a document from the Knowledge Base’s Document List by clicking the Archive button, or within the document’s details page. Archiving can be undone.
Delete: ⚠️ Dangerous Option. For incorrect documents or clearly ambiguous content, select Delete from the menu on the right side of the document. Deleted content cannot be restored, so proceed with caution.
The above options all support batch operations after multiple documents are selected.
Note:
If there are some documents in your knowledge base that haven’t been updated or retrieved for a while, the system will disable inactive documents to ensure optimal performance.
For Sandbox users, the "inactive document disable period" is after 7 days.
For Professional and Team users, it is after 30 days. You can revert these documents and continue using them at any time by clicking the "Enable" button in the knowledge base.
You can revert these disable documents and continue using them at any time by clicking the "Enable" button in the knowledge base. Paid users are provided with one-click revert function.
In the knowledge base, each uploaded document is stored as text chunks. By clicking on the document title, you can view the list of chunks and their specific text content on the details page. Each page displays 10 chunks by default, but you can change the number of chunks shown per page at the bottom of the web.
Only the first two lines of each content chunk are visible in the preview. If you need to see the full text within a chunk, click the “Expand Chunk” button for a complete view.
You can quickly view all enabled or disabled documents using the filter.
General Mode
Tap the document title at the top to quickly switch to other documents in the knowledge base.
Document chunking significantly influences the Q&A performance of knowledge-base applications. It’s recommended to perform a manual review of chunking quality before integrating the knowledge base with your application.
Although automated chunk methods based on character length, identifiers, or NLP semantic system can significantly reduce the workload of large-scale text chunk, the quality of chunk is related to the text structure of different document formats and the semantic context. Manual checking and correction can effectively compensate for the shortcomings of machine chunk in semantic recognition.
When checking chunk quality, pay attention to the following situations:
Overly short text chunks, leading to semantic loss;
Overly long text chunks, leading to semantic noise affecting matching accuracy;
Obvious semantic truncation, which occurs when using maximum segment length limits, leading to forced semantic truncation and missing content during recall;
You can add text chunks individually to the knowledge base, and different chunking modes correspond to different ways of adding those chunks.
General Mode
Click Add Chunks in the chunks list page to add one or multiple custom chunks to the document.
When manually adding text chunks, you can choose to add both the main content and keywords. After entering the content, select the “Add another” checkbox at the bottom to continue adding more text chunks seamlessly.
To add chunks in bulk, you need to download the upload template in CSV format first and edit all the chunk contents in Excel according to the template format, then save the CSV file and upload it.
General Mode
You can directly edit or modify the added chunks content, including modifying the text content or keywords within the chunks.
To prevent duplicate edits, an “Edited” tag will appear on the content chunk after it has been modified.
In addition to capturing metadata (e.g., title, URL, keywords, or a web page description) from various source documents, metadata is also used as structured fields during the chunk retrieval process for filtering or displaying citation sources.
Different correspond to different text chunking preview methods:
Chunks of text in are independent blocks. If you want to view the complete content of a chunk, click the full-screen icon.
In mode, content is divided into parent chunks and child chunks.
Adding text chunks is a paid feature. Please upgrade your account to access this functionality.