Using Knowledge Base—Creation and Interaction
This guide explains how to use the public REST API to manage knowledge base files, along with integration examples.
Overview
Knowledge Base Operations
Creating a Knowledge Base
{
"embeddingModel": "550e8400-e29b-41d4-a716-446655440000", // Embedding Model ID
"rerankerModel": "550e8400-e29b-41d4-a716-446655440000", // Reranker Model ID
"name": "Internal Training Manual",
"description": "This knowledge base is for internal training use, containing user manuals, product manuals, and troubleshooting guides, for new employee onboarding only",
"numberOfRetrievedChunks": 12, // Number of retrieved chunks
"enableRerank": true,
"chatbots": [
{
"id": "550e8400-e29b-41d4-a716-446655440000"
}
],
"groups": [
{
"id": "550e8400-e29b-41d4-a716-446655440000"
}
]
}Using an ID to Operate on a Single Knowledge Base
Querying Knowledge Base Files
Endpoint
File Status Values (key: Status)
Example: Query All PDF Files
File Operations
Uploading Files to a Knowledge Base
Endpoint
Example: Upload a Single Document -- Product Manual
Example: Upload Multiple Documents to Different Knowledge Bases
Updating Existing File Information
Endpoint
Deleting Files
Deleting a Single File
Batch Deleting Files
Use Cases
1. Automated Document Updates
Example Workflow
1
2
3
2. Content Management System Integration
Summary
Next Steps
Last updated
Was this helpful?
