> For the complete documentation index, see [llms.txt](https://docs.zingg.ai/zingg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zingg.ai/zingg/entity-resolution/rule-based-entity-resolution.md).

# Rule based entity resolution

Why custom matching logic breaks down

Rule-based entity resolution fails for three reasons:

1. **Rules cannot enumerate variation**. The number of ways a name, address, or company identifier can vary is unbounded. For every rule you write, new variations appear in production data that the rule does not cover. Maintaining a ruleset for a live dataset is a permanent, open-ended engineering commitment.
2. **Rules cannot score confidence**. A rule fires, or it does not. It cannot tell you that two records are probably the same entity or that a cluster has a weak link worth human review. Entity resolution at production scale requires a graded confidence signal; not a binary match/no-match.
3. **Rules do not scale to the comparison space**. At one million records, the naive approach requires evaluating 500 billion record pairs. At ten million, it is 50 trillion. A rule engine applied to every pair is computationally impossible.

Zingg's ML models solve all three:

* Zingg learns variation from your data - roughly 30 - 50 labeled examples are enough to build a model that generalizes to patterns it has not seen before.
* It produces a graded confidence score (`Z_MINSCORE` and `Z_MAXSCORE`) per cluster, so you can route high-confidence matches to automated processing and low-confidence matches to human review.
* It learns a blocking model to cut down the comparison space from billions of pairs to a tiny fraction without losing recall, so the similarity model only checks candidate pairs that could plausibly match.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zingg.ai/zingg/entity-resolution/rule-based-entity-resolution.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
