Skip to main content
Version: 0.0.5 (stable)

agrag.retrieval.chunking.is_chunk_node

is_chunk_node(value:object) -> bool

Tell whether a node value is a stored Chunk node.

A driver node is judged by its labels. A plain property dict carries no labels, so it is judged by the fields only a Chunk node holds.

Parameters:

  • value (object) – The node value from a graph row.

Returns:

  • bool – True when the value is labelled Chunk, or is a property dict
  • bool – with the chunk-only fields. False for any other value.