Skip to main content
Version: latest

agrag.ingestion.resolve.resolution.resolve_among

resolve_among(entities:list[Entity], *, embedder:Embedder, tracer:Tracer | None, max_llm_pairs:int, schema:GraphSchema | None = None, llm_concurrency:int = DEFAULT_LLM_CONCURRENCY, graph_store:GraphStore | None = None, llm_enabled:bool = True) -> ResolutionResult

Resolve a fixed set of persisted entities by comparing same-label pairs.

Parameters:

  • entities (list[Entity]) – The persisted entities to compare. Nothing outside this set is read or compared.
  • embedder (Embedder) – Embeds entity names for fuzzy review.
  • tracer (Tracer | None) – Traces the resolver.
  • max_llm_pairs (int) – The most ambiguous pairs per label sent to the LLM.
  • schema (GraphSchema | None) – Declared entity types. Each LLM request describes the types present in its pairs, with their descriptions.
  • llm_concurrency (int) – Maximum simultaneous verification requests.
  • llm_enabled (bool) – Whether ambiguous pairs may be sent to a server-side LLM.
  • graph_store (GraphStore | None) – When set, blocks already stored for a pair keep it out of the comparison.

Returns: