Skip to main content
Version: latest

agrag.common.data_models.entity_search.ExplorationEdge

Bases: BaseModel

One relation between two entities found by exploration.

Attributes:

  • source_id (str) – The id of the entity at the start of the stored relation.
  • target_id (str) – The id of the entity at the end of the stored relation.
  • relation_type (str) – The relation type.
  • kind (EdgeKind) – Whether the edge is an assertion or a path.
  • evidence (list[SupportingPassage]) – The visible supporting passages. Empty for a path.

evidence​

evidence: list[SupportingPassage] = Field(default_factory=list)

kind​

kind: EdgeKind

relation_type​

relation_type: str

source_id​

source_id: str

target_id​

target_id: str