Knowledge Base
Uploading documents
Once you’ve created a knowledge base, you can upload, view, update, or delete documents to provide accurate information for your agents.
Your knowledge base
The knowledge base details page displays:
- A unique ID for your knowledge base (e.g., kb_2b747…)
- The name of your knowledge base
- A list of all documents in your knowledge base
- Document metadata including title, source URL, tags, and last updated time
Uploading documents
- Click the Upload Documents button in the top-right corner
- In the modal that appears, you can:
- Drag and drop a JSONL file into the designated area
- Browse and select a JSONL file
- The system will show a preview of the first few items
- Review the file information (file name, size, number of documents)
- Click Import to add the documents to your knowledge base
Note: JSONL files must be 100MB or less.
Example Documents
Documents can be imported via JSONL files with structured data. Each line in your JSONL file should contain a complete JSON object representing a document. Unlike JSON objects, JSONL files do not have opening and closing brackets:
Knowledge base documents:
Field | Type | Required | Description |
---|---|---|---|
title | string | Yes | The title of your document |
content | string | Yes | The content inside each document |
tags | string[] | No | Easily identifiable keywords associated with your document |
source | string | No | The url of the document |