Endpoint Examples
Chat Collection
This endpoint allows the user to make an HTTP POST request to submit a query to the specified collection.
Request Body
-
collection_id
(text): The ID of the collection to which the query is being submitted. -
message
(text): The message being submitted to the collection. -
chat_history
(text): History of chat between user and system.
Response
The response for this request is a JSON schema with the following structure:
-
response
(object): The JSON schema for the query response. -
tokens
(number): The number of tokens. -
success
(boolean): Indicates whether the request was successful.
POST
Authorizations
Body
multipart/form-data
Response
200
application/json
OK
The response is of type object
.