Send a question to the specified knowledge base and receive a response. Optionally pass a conversation history for the assistant to take into consideration while generating responses.
Retrieve your API Key from Dashboard API Keys Section.
The ID of the knowledge base to train.
Optional parameter - The GPT model to use for generating responses
gpt-4o, gpt-4o-mini [DEPRECATED. USE "messages" instead] The query prompt to send to the knowledge base.
A list of messages to query with. Note that "messages" and "prompt" cannot be used together. If both are found in the request, "messages" takes precedence and "prompt" is ignored.
Temperature controls the randomness in the output of the underlying language model; while lower values produce predictable and factual replies, higher values allow the model to be creative and reword the responses.
0 <= x <= 20.1
Seed initializes the random number generator in the underlying language model, ensuring reproducible outputs for the same prompt and settings.
42
Determines whether to stream the generated response back instead of returning it all at once. When stream = true, the response is a list of JSON objects of the form {"response": string} separated by newline characters
Successful response
The response from the knowledge base.
"string"