POST
/
chatbots
/
structured-rag
/
{
  "query_str": "<string>",
  "response": "<string>",
  "usage": {
    "input_tokens": 123,
    "output_tokens": 123,
    "model_type": "gpt-4o"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Api-key
string | null

Body

application/json
system_prompt
string
required
query
string
required
chatbotRequest
object
required

Response

Returns the response of the chatbot based on the conversation history

query_str
string
required
response
string
required
usage
object
required