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
- MOD2
- MOD1
Array [
- ObjectType
- MOD2
- 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
, 5
]
string
hash
object
anyOf
string
RelatedNodeInfo
node_type
object
anyOf
string
Possible values: [1
, 2
, 3
, 4
, 5
]
string
hash
object
anyOf
string
RelatedNodeInfo
Template for how metadata is formatted, with {key} and {value} placeholders.
{key}: {value}
Separator between metadata fields when converting to string.
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
Separator between metadata fields when converting to string.
Template for how text is formatted, with {content} and {metadata_str} placeholders.
{metadata_str}
{content}
TextNode
[
{
"id_": "string",
"embedding": [
null
],
"extra_info": {},
"excluded_embed_metadata_keys": [
"string"
],
"excluded_llm_metadata_keys": [
"string"
],
"relationships": {},
"metadata_template": "{key}: {value}",
"metadata_separator": "\n",
"text": "string",
"mimetype": "text/plain",
"start_char_idx": 0,
"end_char_idx": 0,
"metadata_seperator": "\n",
"text_template": "{metadata_str}\n\n{content}",
"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"
}
]
}