Interact with the Chat Application
This endpoint allows users to interact with a Chat Application based on a knowledge base or application.
Request Body — REQUIRED |
---|
question string — REQUIREDThe question to be searched. |
sessionId stringThe session ID for the chat. |
modelName stringThe name of the model to use for generating the response. |
temperature numberThe temperature value for response randomness. Must be a float between 0.0 and 1.0. |
maxTokens integerThe maximum number of tokens in the response. Must be an integer between 0 and 2000. |
Responses |
---|
Schema — OPTIONAL |
---|
status integer — OPTIONAL | message string — OPTIONALA message describing the response. | data object — OPTIONALtext string — OPTIONAL | sourceDocuments object[] — OPTIONALpageContent string — OPTIONALThe content of the source document page. | metadata object — OPTIONALloc.lines.from integer — OPTIONALStart line number of content in source document. | loc.lines.to integer — OPTIONALEnd line number of content in source document. | reference_url string — OPTIONALURL of the reference source document. | source string — OPTIONAL |
|
|
| sessionId string — OPTIONALThe session ID for the chat. | history array[] — OPTIONAL |
|
400
Knowledge Base validation error Schema — OPTIONAL |
---|
status number | message string | errors undefined[] |
|
Schema — OPTIONAL |
---|
message string |
|