Query Knowledge Base
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.
Documentation Index
Fetch the complete documentation index at: https://docs.interactly.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Retrieve your API Key from Dashboard API Keys Section.
Path Parameters
The ID of the knowledge base to train.
Body
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
Response
Successful response
The response from the knowledge base.
"string"