This endpoint allows the user to make an HTTP POST request to submit a query to the specified collection.
collection_id (text): The ID of the collection to which the query is being submitted.
request_query (text): The query being submitted to the collection.
json_schema (text): The JSON schema for the query response.
json_schema_rules (text): Rules for the JSON schema.
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.
"{{collection_id}}"
"What were the major milestones during Queen Elizabeth II's reign?"
"{\n \"type\": \"object\",\n \"properties\": {\n \"question\": {\n \"type\": \"string\",\n \"description\": \"The question being asked.\"\n },\n \"milestones\": {\n \"type\": \"array\",\n \"description\": \"A list of significant milestones during Queen Elizabeth II's reign.\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"year\": {\n \"type\": \"string\",\n \"description\": \"The year when the milestone occurred.\"\n },\n \"event\": {\n \"type\": \"string\",\n \"description\": \"A brief description of the milestone or event.\"\n }\n },\n \"required\": [\"year\", \"event\"]\n }\n }\n },\n \"required\": [\"question\", \"milestones\"]\n}\n"
"[\n \"Ask for specific milestones or events during Queen Elizabeth II's reign, including years and brief descriptions.\",\n \"Ensure the year and event description for each milestone is accurate and clear.\",\n \"Limit event descriptions to concise, relevant information without excessive detail.\",\n \"Focus on significant events from Queen Elizabeth II's reign, starting from 1952 onward.\"\n]\n"
OK
The response is of type object.