Skip to main content
Version: latest

agrag.common.data_models.entity_search.EntityResult

Bases: BaseModel

The result of one entity search call.

Attributes:

  • status (EvidenceSearchStatus) – The overall outcome. A failed leg never shows as NO_MATCH.
  • hits (list[EntityHit]) – The entities, best first.
  • truncated (bool) – True when a search leg reached its candidate ceiling and fewer than limit entities were returned.
  • index_state (IndexState | None) – Whether the needed indexes were ready. None when no index was checked.
  • failures (list[LegFailure]) – The legs that failed. Empty when every leg ran.
  • unmatched_scope (list[str]) – Scope keys and prefixes that matched no stored document.

failures​

failures: list[LegFailure] = Field(default_factory=list)

hits​

hits: list[EntityHit] = Field(default_factory=list)

index_state​

index_state: IndexState | None = None

status​

status: EvidenceSearchStatus

truncated​

truncated: bool = False

unmatched_scope​

unmatched_scope: list[str] = Field(default_factory=list)