Skip to main content
Version: 0.0.7

agrag.ingestion.resolved_entities.fetch_active_component_members

fetch_active_component_members(transaction:GraphStoreTransaction, seed_ids:Sequence[str], job_id:str | None) -> list[dict[str, Any]]

Return the entities joined to each seed by active matches, seed included.

The component grows one match at a time, so the work follows the size of the component and not the number of paths through it.

Parameters:

  • transaction (GraphStoreTransaction) – The transaction to read in.
  • seed_ids (Sequence[str]) – Ids of the entities to start from.
  • job_id (str | None) – The in-flight job's id, or None outside a job.

Returns:

  • list[dict[str, Any]] – One {"seed_id", "member"} row per seed and member, where member
  • list[dict[str, Any]] – is the node's property dict. A seed that is not visible has no rows.