> ## Documentation Index
> Fetch the complete documentation index at: https://docs.helix-db.com/llms.txt
> Use this file to discover all available pages before exploring further.

# What is entity resolution?

> Entity resolution decides when different records or mentions refer to the same real-world thing, so its facts are joined into one entity instead of scattered.

Concept

Entity resolution is the work of deciding when different records or mentions refer to
the same real-world thing. Think of a receptionist who knows that "J. Smith", "Jane
Smith", and "[jane@example.com](mailto:jane@example.com)" are one visitor. In data, it joins a customer in the
billing system, the same company in the CRM, and "the Client" in a contract into one
entity, so every fact about it lands in one place in the
[knowledge graph](https://docs.helix-db.com/learn/graph-databases/what-is-a-knowledge-graph.md).

> [card] Learning objectives
>
> After reading this article you will be able to:
>
> * Explain what entity resolution does and the two ways it can fail
> * Describe the main matching techniques, from exact keys to embeddings
> * Outline a resolution pipeline with blocking, scoring, and review
> * Describe how to keep resolution decisions across reloads

## Why is entity resolution needed?

Because every system names things its own way. Billing knows a customer by account ID,
the CRM by company name, support by email domain, and a contract by whatever the
lawyers wrote. Without resolution, a question such as "how much has this customer paid,
and what did they complain about?" sees four strangers instead of one customer.

It goes by other names depending on the field: record linkage, deduplication, identity
resolution, or entity matching. When the input is free text, linking a mention to a
known record is also called entity linking.

## How can entity resolution go wrong?

It fails in two directions, and both corrupt answers:

| Failure | What happens | Example |
| - | - | - |
| False merge | Two different things become one entity | Two companies named "Acme" share contracts and invoices |
| Missed match | One thing stays split across several entities | "Northwind Ltd" and "Northwind Limited" each hold half the history |

A false merge is usually worse: it attaches facts to the wrong entity, and an AI answer
built on it, as in [GraphRAG](https://docs.helix-db.com/learn/ai-memory/what-is-graphrag.md), confidently reports
the wrong customer. A missed match makes answers incomplete. Good pipelines prefer to
hold an uncertain match for a person rather than guess.

> [card] [Try Helix Foundry](https://docs.helix-db.com/foundry/start-here/quickstart.md)
>
> Link your tables and documents into one graph in HelixDB, and review the matches a load is unsure of.

## How does entity resolution match records?

Start with the strongest evidence and fall back to weaker signals: shared identifiers
first, then normalized names and attributes, then similarity of meaning.

* **Exact identifiers.** Shared keys such as a tax ID, an email address, or a domain
  match records with near certainty. An
  [ontology](https://docs.helix-db.com/learn/ontologies/what-is-an-ontology.md) usually names each type's
  identifiers.
* **Normalized values.** Lowercasing, stripping suffixes such as "Inc." or "Ltd", and
  standardizing phone numbers turn near-duplicates into exact matches.
* **Fuzzy string similarity.** Edit distance or token overlap scores names that differ
  by typos or word order.
* **Embedding similarity.** [Vector embeddings](https://docs.helix-db.com/learn/vector-search/what-are-vector-embeddings.md)
  of names and descriptions find candidates that mean the same thing in different
  words, such as "the billing page" and "the invoices screen". A
  [vector search](https://docs.helix-db.com/learn/vector-search/what-is-vector-search.md) returns the nearest
  existing entities to compare against.
* **Context.** Two mentions that share neighbors, such as the same contact person or
  the same address, are likelier to be the same entity. A
  [graph database](https://docs.helix-db.com/learn/graph-databases/what-is-a-graph-database.md) makes these
  neighbor checks a short traversal.

An LLM can judge hard candidates by reading both records and their context, but treat
its verdict as one score among several, not as the final word.

## What are the steps of an entity resolution pipeline?

Narrow the candidates, score each pair, decide automatically where the evidence is
strong, and send the rest to a person.

**1. Standardize**

Normalize names, addresses, and identifiers so equal things look equal.

**2. Block**

Comparing every record with every other grows with the square of the data. Blocking
compares only records that share a cheap key, such as the same domain or the same
first letters of a name, or that are nearest neighbors in an embedding index.

**3. Score**

Combine the signals for each candidate pair into a match score.

**4. Decide**

Merge above a high threshold, keep apart below a low one, and hold everything in
between for review.

**5. Review and record**

A person settles held pairs, and each decision is stored so it applies again next
time instead of being asked twice.

## How do you keep entity resolution correct over time?

Treat matches as decisions with a history, not as a one-time merge.

* **Keep the evidence.** Record why two records were linked, with the
  [provenance](https://docs.helix-db.com/learn/ontologies/what-is-data-provenance.md) of each, so a bad merge can be
  found and undone.
* **Link, don't overwrite.** Keep source records intact and link them to one resolved
  entity. Splitting a false merge is then a matter of removing links.
* **Store human decisions.** A person's "these are the same" or "these are different"
  should survive every reload and outrank automatic scores.
* **Re-resolve as data arrives.** A new record can reveal that two existing entities are
  one, or that one should be split. The same applies to
  [AI agent memory](https://docs.helix-db.com/learn/ai-memory/what-is-ai-agent-memory.md), where facts about one
  user arrive over many conversations.

## How does Helix Foundry resolve entities?

[Helix Foundry](https://docs.helix-db.com/foundry/start-here/introduction.md) links what documents mention to the
records its tables load into HelixDB, and holds what it is unsure of for a person:

* **Identifiers in the ontology.** Each type in a version lists its keys and
  identifiers, and an [edit](https://docs.helix-db.com/foundry/ontologies/generate-and-version.md#edit-a-version)
  can change a type's identifiers as a new version.
* **Names in documents.** A [load](https://docs.helix-db.com/foundry/ontologies/load-data.md) links the names a
  document mentions to records. A name it matched to no record, to several, or only
  loosely waits on the [Review](https://docs.helix-db.com/foundry/ontologies/review.md) page, grouped under reasons
  such as **Could mean more than one entity**.
* **Saved decisions.** **Link this name to** a record applies here and in other
  documents where nothing else links that name; **Not in data** says no record is meant,
  for that document only. Decisions are saved for the ontology, so later loads read
  them too, and **Undo link** takes a loose link back from the next load.

## Frequently asked questions

### Is entity resolution the same as deduplication?

Deduplication is entity resolution within one dataset: finding repeated records and
keeping one. Entity resolution also links records across datasets and links text
mentions to records.

### Can embeddings alone resolve entities?

No. Embeddings are good at finding candidates that mean the same thing, but two
different companies in the same industry can have very similar embeddings. Combine them
with identifiers, attributes, and review.

### How accurate does entity resolution need to be?

It depends on the cost of each failure. For billing or compliance, prefer holding
uncertain matches over guessing. For exploratory search, a few missed matches may be
acceptable.

### Should entity resolution happen before or after loading a graph?

Both. Resolve what you can while loading, using identifiers and normalized values, then
keep resolving as new records and documents arrive, because new evidence changes old
decisions.

## Related topics

> [card] [What is an ontology?](https://docs.helix-db.com/learn/ontologies/what-is-an-ontology.md)
>
> Shared types, links, identifiers, and rules for data from many systems.

> [card] [What is data provenance?](https://docs.helix-db.com/learn/ontologies/what-is-data-provenance.md)
>
> Recording where every value came from, so answers can be checked.

> [card] [What is a knowledge graph?](https://docs.helix-db.com/learn/graph-databases/what-is-a-knowledge-graph.md)
>
> Connected facts organized by an ontology, with their sources.

> [card] [What are vector embeddings?](https://docs.helix-db.com/learn/vector-search/what-are-vector-embeddings.md)
>
> Numbers that capture meaning, used to find similar candidates.

> [card] [What is GraphRAG?](https://docs.helix-db.com/learn/ai-memory/what-is-graphrag.md)
>
> Retrieval that follows relationships, and why resolution matters to it.

> [card] [What is AI agent memory?](https://docs.helix-db.com/learn/ai-memory/what-is-ai-agent-memory.md)
>
> Working, episodic, and semantic memory for LLM agents.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.