Version: 0.0.5 (stable)
agrag.common.schema_fingerprint.RunRecord
RunRecord(schema_name:str, schema_version:str, schema_fingerprint:str, extraction_fingerprint:str) -> None
What a document and its chunks record about the run that wrote them.
Attributes:
- schema_name (
str) – The name of the schema of the run. - schema_version (
str) – The version string of the schema of the run. - schema_fingerprint (
str) – The structure hash of the schema. - extraction_fingerprint (
str) – The hash of descriptions, settings, effective mode and LLM inputs.
Functions:
- stamp – Return a copy of a document that carries this record.
extraction_fingerprint
extraction_fingerprint: str
schema_fingerprint
schema_fingerprint: str
schema_name
schema_name: str
schema_version
schema_version: str
stamp
stamp(document:Document) -> Document
Return a copy of a document that carries this record.
Parameters:
- document (
Document) – The document to stamp. It is not changed.
Returns:
Document– A copy with the four run-record fields set.