Skip to main content
POST
Generate an answer with a single document

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer
required

Body

Request serializer for asking a question about a document.

question
string
required

The question to ask about the document

Maximum string length: 2048

Response

200 - application/json

Response serializer for the result of asking a question about a document.

response
string
required

The generated response to the question

chunks
object[]
required

Relevant document chunks used to generate the response