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.
{- "question": "stringstri",
- "additionalContext": "stringstri",
- "fileIds": [
- {
- "id": 0
}
]
}
{- "content": [
- {
- "text": "string",
- "references": [
- {
- "fileId": 0,
- "locations": [
- {
- "pageNumber": 0,
- "left": 0,
- "right": 0,
- "top": 0,
- "bottom": 0
}
]
}
]
}
]
}