Skip to main content

agrag.ingestion.merge.part_of_id

part_of_id(document_node_id:UUID, chunk_id:UUID, version_id:UUID | str) -> UUID

Return the id for one versioned Document -[:PART_OF]-> Chunk edge.

Parameters:

  • document_node_id (UUID) – The id of the Document graph node.
  • chunk_id (UUID) – The id of the Chunk.
  • version_id (UUID | str) – The identifier for this document version.

Returns:

  • UUID – The edge id. Each document version gets a separate relationship id.