Version: 0.0.5 (stable)
agrag.common.data_models.structure.version_id
version_id(document:Document) -> str
Return the id of one version of a document, as HAS_PART edges use it.
A version is one content together with the schema structure that ran against it. A new structure makes new sections and chunks. A change of descriptions or extraction settings keeps the version, so its chunks stay.
Parameters:
- document (
Document) – The document.
Returns:
str– The id, which changes when the content hash or the schema fingerprintstr– changes.