Document Management
Document management is a core feature of Knowledge Base, supporting multiple document sources and formats.
π₯ Adding Documentsβ
Supported Document Sourcesβ
| Source | Description |
|---|---|
| File Upload | Upload files from local computer |
| Text Paste | Paste text content directly |
| External Table | Import from DingTalk/Feishu tables |
| Web Scraping | Scrape content from URL |
| External Wiki | Bind Wiki.js pages with daily automatic sync |
File Uploadβ
- Click Add Document β Upload File
- Select file(s) from your computer
- Configure chunking settings (optional)
- Click Upload
Supported formats:
.txt- Plain text files.md- Markdown files.pdf- PDF documents.doc,.docx- Word documents
Text Pasteβ
- Click Add Document β Paste Text
- Enter document title
- Paste or type content
- Click Save
Suitable for quickly creating small documents.
External Tableβ
- Click Add Document β External Table
- Enter table URL (DingTalk/Feishu)
- Configure sync settings
- Click Import
Supports importing data from online table services.
Web Scrapingβ
- Click Add Document β Web URL
- Enter the webpage URL
- System scrapes and processes content
- Click Import
Web documents support re-scraping for updates. When webpage content changes, use the refresh feature to get the latest content.
External Wikiβ
Bind Wiki.js pages as synchronized documents with daily automatic sync. See External Wiki Sync.
π Document Listβ
List Featuresβ
- Search: Search documents by name
- Sort: Sort by name, size, or date
- Filter: Filter documents by status
- Folder filter: Open APIs can list documents directly under a specific folder by
folder_id
Document Statusβ
| Status | Description |
|---|---|
| Enabled | Document is indexed and searchable |
| Disabled | Document exists but excluded from search |
| Queued | Document waiting to be processed |
| Pending Conversion | Document waiting for format conversion (PDF/PPTX etc.) |
| Converting | Document being converted to Markdown |
| Indexing | Document being indexed for RAG |
| Error | Indexing failed |
π Folder Managementβ
Knowledge base documents can be organized by folders. Folders are document metadata, not attachment metadata; the generic attachment upload API does not accept folder_id.
Folder ID semantics:
folder_id=0means the root folder.- Omitting
folder_idmeans no folder filter. - When listing documents by folder, the folder filter returns only direct documents in that folder and does not recursively include subfolders.
- For the complete open APIs for creating, moving, deleting folders, and moving documents, see Knowledge Open API.
π Scoped Open Searchβ
Open search can be scoped to folders or specific documents. This is useful when you only want to search inside a topic folder, root-level documents, or a selected document set.
Parameter rules:
- Whole-knowledge-base search: omit both
folder_idsanddocument_ids. - Root-folder search: pass
folder_ids: [0]. - Subfolder search: pass
folder_ids: [10]and useinclude_subfoldersto control whether descendants are included. - When both
folder_idsanddocument_idsare provided, the scope is their union. folder_ids=[]ordocument_ids=[]is invalid. Empty arrays must not be used to mean whole knowledge base.- If the specified scope contains no documents, the API returns empty results and does not fall back to whole-knowledge-base search.
- For request examples and the full parameter reference, see Knowledge Open API.
βοΈ Management Operationsβ
Basic Operationsβ
| Operation | Description |
|---|---|
| View Details | View document content and metadata |
| Edit | Modify document name and settings |
| Enable/Disable | Toggle document search participation |
| Re-index | Reprocess document with new settings |
| Delete | Remove document permanently |
| View Chunks | Inspect how document was split |
Batch Operationsβ
Support multi-select for batch operations:
- Use checkboxes to select multiple documents
- Click Select All to select all documents
- Click Batch Delete to delete selected documents
π Document Selection in Notebook Modeβ
In Notebook mode, the document list supports selection features:
Selection Featuresβ
- Select Specific Documents: Check documents to include in context
- Select All / Deselect All: Quickly select or deselect all documents
- Auto-selection: Newly uploaded documents are automatically selected
Context Injectionβ
Selected documents are provided as context to the AI during conversations, helping the AI better understand and answer questions.
π Document Editingβ
Editable Contentβ
- Document Name: Modify the display name
- Chunking Settings: Adjust document chunking strategy
- Enable Status: Control whether document participates in retrieval
Editing Limitationsβ
- Source Type: Cannot change document source type
- File Content: File-type document content cannot be directly edited
- Table URL: External table URLs cannot be directly modified
π Web Document Refreshβ
Web documents support re-scraping:
- Find the web document in the document list
- Click the Refresh button
- System will re-scrape the webpage content
- Updated content will be automatically re-indexed
Suitable for tracking frequently updated web content.
π‘ Best Practicesβ
Document Organizationβ
| Practice | Description |
|---|---|
| Meaningful names | Use descriptive document names |
| Consistent format | Standardize document formatting |
| Regular updates | Re-index when documents change |
| Clean content | Remove irrelevant headers/footers |
Document Sizeβ
- Single file recommended not to exceed 50MB
- Large documents can be split into multiple smaller documents
- Text documents are easier to process than scanned PDFs
π Related Documentationβ
- User Guide - Complete knowledge base guide
- Chunking Strategies - Learn how documents are split