Skip to main content
Version: latest

agrag.common.data_models.evidence.DiscoveryHit

Bases: BaseModel

One visible passage found by discovery.

Attributes:

  • evidence_id (str) – The evidence id of the passage. Pass it to fetch and check_citations.
  • document_key (str) – The key of the document the passage belongs to.
  • title (str) – The title of that document.
  • content_hash (str) – The full sha256 content hash of the current version.
  • location (EvidenceLocation) – The offsets or pages of the passage. The passage is a whole chunk, so the range can be wider than the text that matched.
  • snippet (str) – The first characters of the passage text.
  • score (float) – An ordering value. Higher scores rank first within one result. A score is not a confidence, and it is not a probability that the passage supports a claim. Its scale depends on the legs that found the passage.
  • legs (list[DiscoveryLeg]) – The legs that found the passage.

content_hash​

content_hash: str

document_key​

document_key: str

evidence_id​

evidence_id: str

legs​

legs: list[DiscoveryLeg]

location​

location: EvidenceLocation

score​

score: float

snippet​

snippet: str

title​

title: str