/api/v2/files/{id}/ask-question
  • 23 Jul 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

/api/v2/files/{id}/ask-question

  • Dark
    Light
  • PDF

Article summary

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
Expand All
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?

What's Next