Knowledge Bases
Add Document
Adds a new document to the specified knowledge base. Supports two types of documents:
- Files (PDFs, Word documents, etc.) - Upload document files directly
- Websites - Provide a URL for automatic crawling and content extraction
The document processing happens asynchronously in the background. The API immediately returns a processing status and document ID, while the actual document processing, text extraction, and vector embedding generation continue in the background.
POST
Path Parameters
Body
multipart/form-data
Response
200 - application/json
Response model for adding documents to a Knowledge Base.
Status information about the document addition process, including progress and any errors.