agrag.ingestion.resolved_entities
Non-destructive match persistence and resolved-entity computation.
Classes:
- DeactivationResult – Resolved entities created after a match correction and stale ids removed.
- MatchDecision – A confirmed non-exact entity match ready to persist.
- PruningResult – Ids removed and clusters rebuilt by deletion-triggered pruning.
- RebuildResult – The derived entity created and prior derived ids it replaced.
Functions:
- compute_resolved_entity – Compute a resolved entity from its current member data only.
- deactivate_match_and_rebuild – Deactivate a match and return its replacements and deleted derived IDs.
- decisions_by_component – Map resolution evidence to raw ids and group it by connected component.
- match_decision_components – Group persisted match decisions by their connected raw component.
- matches_id – Return the order-independent deterministic id for an entity match.
- prune_orphaned_entities – Delete candidates with no open-chunk evidence and rebuild clusters.
- rebuild_resolved_entities – Rebuild the resolved entity of each committed component from its seeds.
- write_matches_and_rebuild – Persist matches and rebuild their supplied connected component.
Attributes:
- MatchComponent – One connected component: its match decisions and its raw member entities.