Search
Create Knowledge Base
This endpoint allows you to create a new knowledge base for storing and querying documents.
BODY PARAMETERS
- collection (string, required): The name of the knowledge base collection to be created.
HEADERS
- X-CLIENT-TOKEN (string, required): The authentication token required for accessing the API.
EXAMPLES
Code
Get Knowledge Bases
Retrieve all existing knowledge bases.
EXAMPLE
Code
Delete Knowledge Base
Delete a specified knowledge base.
EXAMPLE
Code
Create Documents
Upload a file and extract text to create documents within a collection.
BODY PARAMETERS
- documents (array, required): List of documents to be added.
- collection (string, required): Name of the knowledge base collection.
- language (string, required): Language of the documents.
HEADERS
- X-CLIENT-TOKEN (string, required): The authentication token required for accessing the API.
EXAMPLES
Code
Get Uploaded Documents
Retrieve all documents within a specified knowledge base.
EXAMPLE
Code
Delete Document
Delete a specific document from a knowledge base.
EXAMPLE
Code
Query
Perform a search query within a specific knowledge base and language.
BODY PARAMETERS
- query (string, required): The query text to search within the knowledge base.
- language (string, required): The language of the query text.
HEADERS
- X-CLIENT-TOKEN (string, required): The authentication token required for accessing the API.
EXAMPLES
Code
RESPONSES
🟢 200 OK
The request was successful. Below is an example response body:
Code
RESPONSE BODY PARAMETERS
| Object |
|---|
| responses array required: An array containing the query responses. |
| response_text string required: Contains the query response text. |
🔴 400 Bad Request
The request was malformed or contained invalid data.
🟠 401 Unauthorized
The client token is missing or invalid.
🔴 500 Internal Server Error
An unexpected error occurred on the server.
Last modified on

