Version: latest
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 labelledChunk, or is a property dictbool– with the chunk-only fields. False for any other value.