- Print
- DarkLight
- PDF
/api/v2/files/{id}/ask-question
Article summary
Did you find this summary helpful?
Thank you for your feedback
Post
/api/v2/files/{id}/ask-question
This endpoint can be used to ask a question about a document.
The question is required and should be a string .
The id of the document is a path parameter.
Path parameters
id
integerRequired
Body parameters
ExampleQuestionString
example question string
{
"question": "example question"
}
object
question
string Required
Max length2048
object
question
string Required
Max length2048
object
question
string Required
Max length2048
Responses
200
object
Serializer for the result of a query.
response
string
chunks
Array of object (ListDocumentChunk)
object
id
integer
text
string
title
string
Was this article helpful?