Version: latest
agrag.common.data_models.evidence.EvidenceReference
Bases: BaseModel
A stable pointer to passage text of one version of a document.
The reference holds only the first 16 hex characters of the content hash, because that is what the evidence id carries. Fetch results give the full hash.
Attributes:
- kind (
EvidenceKind) – Whether the reference names a span or a chunk. - document_node_id (
UUID) – The id of the Document graph node. - content_hash_prefix (
str) – The first 16 lowercase hex characters of the sha256 content hash of the version. - char_start (
int | None) – The start offset of a span, in the document text. - char_end (
int | None) – The exclusive end offset of a span, in the document text. - chunk_id (
UUID | None) – The id of the chunk node of a chunk reference.
char_end
char_end: int | None = None
char_start
char_start: int | None = None
chunk_id
chunk_id: UUID | None = None
content_hash_prefix
content_hash_prefix: str = Field(pattern='^[0-9a-f]{16}$')
document_node_id
document_node_id: UUID
kind
kind: EvidenceKind