This API endpoint uses a language model to answer questions about documents. Provided with a natural language question and a list of files, the API returns a multi-part answer with references to the locations in the documents that were used to build the answer.
Successful Response
The response for a failed request.
{- "additionalContext": "stringstri",
- "fileIds": [
- {
- "id": 0
}
], - "ignoreUnknownIds": false,
- "language": "Chinese",
- "question": "string"
}
{- "content": [
- {
- "references": [
- {
- "externalId": "string",
- "fileId": 0,
- "fileName": "string",
- "instanceId": {
- "externalId": "string",
- "space": "string"
}, - "locations": [
- {
- "bottom": 0,
- "left": 0,
- "pageNumber": 0,
- "right": 0,
- "top": 0
}
]
}
], - "text": "string"
}
]
}