Version: latest
agrag.chunking.chunker.ChunkPlacement
ChunkPlacement(chunk_index:int, parent_node_id:UUID, order:int) -> None
Where one chunk hangs in the structure of its document.
Attributes:
- chunk_index (
int) – The index of the chunk inChunkedDocument.chunks. - parent_node_id (
UUID) – The id of the table node the chunk came from, or of the lowest section that holds its text, or of the document node when no section does. - order (
int) – The edge order under the parent: the reading position of the first unit in a text chunk, or the chunk index for a table chunk.
chunk_index
chunk_index: int
order
order: int
parent_node_id
parent_node_id: UUID