Skip to main content
Version: latest

agrag.common.data_models.theme_search.ThemeHit

Bases: BaseModel

One theme found by theme search.

Attributes:

  • theme_id (str) – The id of the community node.
  • score (float) – The vector similarity of the query to the community report embedding. An ordering value. Higher scores rank first. It is not a confidence, and it is not a probability that the theme is relevant.
  • entities (list[str]) – Up to five names of member entities that a visible in-scope passage mentions.
  • passages (list[SupportingPassage]) – Visible in-scope passages that mention member entities, best first. Each passage is an evidence id. Fetch it to read the text.

entities​

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

passages​

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

score​

score: float

theme_id​

theme_id: str