List Chunks
GET/api/chunks/
List chunks.
Request
Query Parameters
collection any
Limit to chunks associated with this collection
document_id any
Limit to chunks associated with this document
page any
perPage any
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- Array [ 
- TextChunk
- ImageChunk
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- MOD1
- ] 
oneOf
id Idrequired
document_id Document Idrequired
kind Kind
Default value: text
text Textrequired
raw Rawrequired
start_char_idx
object
Start char index of the chunk.
anyOf
integer
end_char_idx
object
End char index of the chunk.
anyOf
integer
id Idrequired
document_id Document Idrequired
kind Kind
Default value: image
image
object
required
Image of the node.
anyOf
string
image_mimetype
object
required
Mimetype of the image.
anyOf
string
image_path
object
required
Path of the image.
anyOf
string
image_url
object
required
URL of the image.
anyOf
string
[
  {},
  {}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
- Array [ 
- Array [ 
- MOD1
- MOD2
- ] 
- ] 
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Messagerequired
type Error Typerequired
{
  "detail": [
    {
      "loc": [
        "string",
        0
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
Loading...
