List Pipeline Document Chunks
GET/api/v1/pipelines/:pipeline_id/documents/:document_id/chunks
Return a list of chunks for a pipeline document.
Request
Path Parameters
Cookie Parameters
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
Array [
- MOD1
Array [
]
- RelatedNodeInfo
- MOD2
- ObjectType
- MOD1
Array [
- ObjectType
- MOD1
]
- MOD1
- MOD1
]
Unique ID of the node.
embedding
object
Embedding of the node.
anyOf
number
A flat dictionary of metadata fields
Metadata keys that are excluded from text for the embed model.
Metadata keys that are excluded from text for the LLM.
relationships
object
A mapping of relationships to other node information.
property name*
object
anyOf
node_type
object
anyOf
string
Possible values: [1
, 2
, 3
, 4
]
hash
object
anyOf
string
RelatedNodeInfo
node_type
object
anyOf
string
Possible values: [1
, 2
, 3
, 4
]
hash
object
anyOf
string
RelatedNodeInfo
Text content of the node.
MIME type of the node content.
text/plain
start_char_idx
object
Start char index of the node.
anyOf
integer
end_char_idx
object
End char index of the node.
anyOf
integer
Template for how text is formatted, with {content} and {metadata_str} placeholders.
{metadata_str}
{content}
Template for how metadata is formatted, with {key} and {value} placeholders.
{key}: {value}
Separator between metadata fields when converting to string.
TextNode
[
{
"id_": "string",
"embedding": [
null
],
"extra_info": {},
"excluded_embed_metadata_keys": [
"string"
],
"excluded_llm_metadata_keys": [
"string"
],
"relationships": {},
"text": "string",
"mimetype": "text/plain",
"start_char_idx": 0,
"end_char_idx": 0,
"text_template": "{metadata_str}\n\n{content}",
"metadata_template": "{key}: {value}",
"metadata_seperator": "\n",
"class_name": "TextNode"
}
]
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}