Version: 0.0.8 (stable)
agrag.ingestion.resolve.resolution.resolve_persisted
resolve_persisted(entities:list[Entity], *, graph_store:GraphStore, embedder:Embedder, entity_labels:Sequence[str], tracer:Tracer | None, max_llm_pairs:int, error_policy:ErrorPolicy, vector_store:VectorStore | None = None, llm_concurrency:int = DEFAULT_LLM_CONCURRENCY) -> tuple[ResolutionResult, list[StageFailure]]
Resolve persisted entities against each other.
ANN search bounds the pairs the resolver compares.
Parameters:
- entities (
list[Entity]) – The persisted entities to compare, all of one label. - graph_store (
GraphStore) – Where the candidate and neighbor reads run. - embedder (
Embedder) – Embeds entity names for candidate search and fuzzy review. - vector_store (
VectorStore | None) – External dense candidate index. None uses graph indexes. - entity_labels (
Sequence[str]) – The labels the schema defines. - tracer (
Tracer | None) – Traces the resolver. - max_llm_pairs (
int) – The most ambiguous pairs per label sent to the LLM. - llm_concurrency (
int) – Maximum simultaneous verification requests. - error_policy (
ErrorPolicy) – RAISE propagates candidate-read failures. Other policies record candidate-read failures and leave those entities out of this pass. Telemetry reads never change the result.
Returns:
ResolutionResult– The resolver result, indexed likeentities, candidate-readlist[StageFailure]– failures.
Raises:
Exception– A candidate read failed anderror_policyis RAISE.