This API endpoint uses an LLM to answer questions about documents. Given a question in natural language, and a list of files, this API returns a multi-part answer with references to the locations in the given documents which 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": {
- "space": "string",
- "externalId": "string"
}, - "locations": [
- {
- "bottom": 0,
- "left": 0,
- "pageNumber": 0,
- "right": 0,
- "top": 0
}
]
}
], - "text": "string"
}
]
}