Skip to main content

agrag.ingestion.merge.next_chunk_id

next_chunk_id(from_chunk_id:UUID, to_chunk_id:UUID) -> UUID

Return the deterministic id for a Chunk -[:NEXT_CHUNK]-> Chunk edge.

Parameters:

  • from_chunk_id (UUID) – The id of the earlier chunk in sequence.
  • to_chunk_id (UUID) – The id of the chunk that follows it.

Returns:

  • UUID – The edge id. Same pair always returns the same id.