Skip to main content
GET
/
v1
/
chunk-lineages
/
{chunk_id}
Get Chunk Lineage Handler
curl --request GET \
  --url http://localhost:8000/v1/chunk-lineages/{chunk_id}
{
  "nodes": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "content": "<string>",
      "chunk_type": "TEXT",
      "chunk_metadata": {
        "polygons": [
          {
            "page": 123,
            "polygon": {
              "x": 123,
              "y": 123,
              "width": 123,
              "height": 123
            }
          }
        ],
        "s3_urls": [
          "<string>"
        ],
        "summary": "<string>",
        "extracted_text_s3_uri": "<string>",
        "secondary_taxonomy": "picture",
        "sheet_name": "<string>",
        "block_type": "<string>",
        "source_uri": "<string>",
        "enriched_html": "<string>",
        "cell_range": "<string>",
        "dependency_summary": {},
        "formulas": [
          {}
        ],
        "key_cells": [
          {}
        ],
        "named_ranges": [
          {}
        ]
      },
      "tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "edges": [
    {
      "parent_chunk_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "chunk_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Headers

authorization
string | null

Path Parameters

chunk_id
string<uuid>
required

Query Parameters

max_depth
integer
default:3
Required range: 1 <= x <= 10

Cookies

ks_uat
string | null

Response

Successful Response

Complete lineage graph with nodes and edges.

nodes
LineageNodeResponse · object[]
required

Chunk nodes in the graph

edges
LineageEdgeResponse · object[]
required

Lineage edges in the graph