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.
Authorizations
Body
"{{collection_id}}"
"What were the major milestones during Queen Elizabeth II's reign?"
"[\n {\n \"role\":\"user\",\n \"content\":\"What is this all about?\"\n }, \n {\n \"role\":\"system\",\n \"content\":\"This is about Queen Elizabeth_II of England\"\n }\n]\n"
Response
The response is of type object
.