Skip to main content
Version: latest

agrag.common.data_models.structure.chunk_id

chunk_id(document_id:UUID, version:str, chunker_hash:str, index:int) -> UUID

Return the id of a chunk.

Parameters:

  • document_id (UUID) – The id of the Document node.
  • version (str) – The document version from version_id.
  • chunker_hash (str) – The fingerprint of the chunker settings.
  • index (int) – The position of the chunk in the document.

Returns:

  • UUID – The id. It changes with the version and with the chunker settings.