Skip to main content

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

    document_id Document Idrequired
    pipeline_id uuidrequired

Cookie Parameters

    session any

Responses

Successful Response

Schema

  • Array [

  • id_ Id (string)

    Unique ID of the node.

    embedding

    object

    Embedding of the node.

    anyOf

  • Array [

  • number

  • ]

  • extra_info object

    A flat dictionary of metadata fields

    excluded_embed_metadata_keys string[]

    Metadata keys that are excluded from text for the embed model.

    excluded_llm_metadata_keys string[]

    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_id Node Id (string)required

    node_type

    object

    anyOf

    string

    Possible values: [1, 2, 3, 4, 5]

    metadata object

    hash

    object

    anyOf

    string

    class_name Class Name (string)
    Default value: RelatedNodeInfo
    metadata_template Metadata Template (string)

    Template for how metadata is formatted, with {key} and {value} placeholders.

    Default value: {key}: {value}
    metadata_separator Metadata Separator (string)

    Separator between metadata fields when converting to string.

    Default value:
    text Text (string)

    Text content of the node.

    Default value:
    mimetype Mimetype (string)

    MIME type of the node content.

    Default value: 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

    metadata_seperator Metadata Seperator (string)

    Separator between metadata fields when converting to string.

    Default value:
    text_template Text Template (string)

    Template for how text is formatted, with {content} and {metadata_str} placeholders.

    Default value: {metadata_str} {content}
    class_name Class Name (string)
    Default value: TextNode
  • ]