Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:24kchengYe MemoMind Entity Resolution

From Leeroopedia
Knowledge Sources
Domains NLP, Knowledge_Graph
Last Updated 2026-10-28 00:00 GMT

Overview

Process that identifies entity mentions in text and resolves them to canonical entities, enabling consistent references across facts even when the same entity is named differently.

Description

Entity resolution (also called record linkage or deduplication) solves the ambiguity problem: "Alice", "Alice Smith", and "she" may all refer to the same person. Without resolution, the knowledge graph fragments—each surface form becomes a separate node, and relationships cannot be traced.

The pipeline combines LLM-extracted entities with user-provided entities, merges them with case-insensitive deduplication, then resolves each to a canonical entity using fuzzy matching and controlled vocabularies (entity labels). Resolved entities are linked to facts via the unit_entities table and tracked with mention counts and co-occurrence statistics.

Usage

Use this principle when building knowledge graphs from heterogeneous text where entity names vary. It is essential for graph-based retrieval (link expansion, MPFP traversal) where connections between facts flow through shared entities.

Theoretical Basis

Entity resolution involves two stages:

  1. Entity Extraction: NER (spaCy) or LLM extraction identifies entity mentions with types (PERSON, ORG, CONCEPT).
  2. Canonical Resolution: Each mention is matched against existing entities using:
    • Exact string match (case-insensitive)
    • Fuzzy matching (trigram similarity via pg_trgm)
    • Controlled vocabulary labels (key:value pairs)
# Abstract resolution pipeline (not real implementation)
mentions = extract_entities(fact_text)           # LLM + spaCy
mentions = merge_with_user_entities(mentions)    # Deduplicate
entity_ids = resolve_batch(mentions, bank_id)     # Match to canonical

Co-occurrence statistics track which entities appear together, enabling graph traversal.

Related Pages

Implemented By

Uses Heuristics

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment