Playground

Playground

Chunk

/api/v1/knowledge/chunks

A chunk of a Document used at retrieval time.

listgetcreatedeletesearch

Schema

FieldTypeNotes
id*uuidServer-assigned ULID with type prefix (e.g. per_…).
tenant_id*stringTenant scope — auto-stamped from the caller's JWT.
app_idstringApp scope. Stamped ONLY when the caller's JWT was minted for a specific Application (integration API keys). Absent for human-user sessions. Filters reads when present.
created_at*date-timeServer stamp.
updated_at*date-timeServer stamp; updated on every patch.
created_byuuidPerson id from the caller's JWT (sub).
updated_byuuidPerson id from the last writer's JWT (sub).
sourcestringProvenance tag — defaults to 'edm'.
source_typeenumfrontend | backend | server | system | apiWhere the write originated. Defaults to 'api'.
is_deletedbooleanSoft-delete flag. Excluded from default list queries.
deleted_atdate-timeStamped when soft-deleted; null otherwise.
deleted_byuuidPerson id who soft-deleted; null otherwise.
schema_versionnumberDocument schema version. Bumped on incompatible writes.
document_idstringID of the parent Document (doc-<uuid>).
chunk_numbernumberSequential position of this chunk within the parent document.
textstringText content of this chunk.
tokensnumberToken count of the chunk text.
vectorjsonEmbedding vector (Array<Float32, 1536>), HNSW-indexed in ClickHouse.
embedding_modelstringEmbedding model used to generate the vector.
chunk_typestringStructural type of the chunk content.
page_numbernumberPage number in the source document where this chunk appears.
header_pathjsonHeading hierarchy leading to this chunk, e.g. ["Section 5", "5.2 Access Control"].
prev_chunk_idstringID of the preceding chunk in the document, for sequential traversal.
next_chunk_idstringID of the following chunk in the document, for sequential traversal.
entity_idsjsonIDs of KnowledgeEntity nodes mentioned in this chunk.
keywordsjsonExtracted keywords from the chunk text.
languagestringBCP-47 language tag for this chunk's content.
sensitivitystringData sensitivity classification for this chunk.
statusenumactive | archived | supersededLifecycle status of this chunk.

API

client.knowledge.chunks.*
Loading manifest…