Version: latest
agrag.ingestion.resolve.resolution.resolve_created
resolve_created(created:list[Entity], *, graph_store:GraphStore, embedder:Embedder, entity_labels:Sequence[str], tracer:Tracer | None, max_llm_pairs:int, error_policy:ErrorPolicy, schema:GraphSchema | None = None, vector_store:VectorStore | None = None, llm_concurrency:int = DEFAULT_LLM_CONCURRENCY, llm_enabled:bool = True) -> tuple[list[Entity], ResolutionResult, list[StageFailure]]
Resolve newly committed entities against everything committed.
Each created entity looks up its committed candidates, so a near-duplicate that another job committed first becomes a pair. Only the created entities start a comparison; the candidates they find are compared with them and never with each other. When the search finds no candidate for any entity and the label holds few committed entities, all of them are candidates.
Parameters:
- created (
list[Entity]) – The committed entities to resolve. - 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. - schema (
GraphSchema | None) – Declared entity types. Each LLM request describes the types present in its pairs, with their descriptions. - 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. - llm_enabled (
bool) – Whether ambiguous pairs may be sent to a server-side LLM. - 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:
list[Entity]– The created entities followed by the candidates they found, theResolutionResult– resolver result indexed like that list, and candidate-read failures.
Raises:
Exception– A candidate read failed anderror_policyis RAISE.