Lookalikes
On this page
Two records. Two histories. Two different answers to the same question.
Lookalikes finds records that describe the same real thing but are not typed the same way: "Acme Ltd" and "ACME Limited". It puts them in a queue, and a person merges them. Nothing changes until a person (or auto-merge, if you switch it on) merges the records.
Short answers
What is the difference between MDM matching and survivorship?
Matching decides which records are the same thing. It compares the records and gives each pair a score. Survivorship decides what the merged record looks like. It picks the winning value for each column. In Lookalikes, Columns to compare is matching. Which record stays and Which value wins are survivorship. A good match with a bad survivorship rule still gives you a wrong golden record.
Why do we have duplicate vendor records in our system?
A unique rule stops two records with the same value. It does not stop "Hartog Industrial Supplies" and "Hartog Industrial Supplies B.V.". Typical causes are a legal form written two ways, a typo, a second spelling from another buyer, and a list loaded from another system on top of the one you have. Lookalikes finds these pairs after they exist, and checks each new record after it is saved.
How can I deduplicate a historical customer database without replacing our current MDM?
Lookalikes works on records inside Primentra. It does not connect to another MDM and it does not write back to one. To use it on an old customer list, load that list into a Primentra entity first, with Import from Excel or CSV, the REST API or staging. Then run Lookalikes on that entity, merge the duplicates, and export the clean list. Your current system stays as it is.
What a lookalike is
Take three records in a supplier list:
| Code | Name | City | VAT number |
|---|---|---|---|
| SUP-1001 | Hartog Industrial Supplies | Rotterdam | NL812345678B01 |
| SUP-1002 | Hartog Industrial Supplies B.V. | Rotterdam | NL812345678B01 |
| SUP-1003 | Hartog Industrial Suplies | Rotterdam | (empty) |
A person sees one supplier. A computer sees three different names. Lookalikes compares the records column by column, gives each pair a score from 0 to 100, and puts pairs with a high score in one group. The group is Hartog Industrial Supplies, with three records.
Before it compares, Lookalikes cleans a copy of each value: lower case, no accents, no punctuation and one space between words. "Müller" becomes "muller", not "mueller". From the Name, and from any column compared with Typos, it also removes the legal form (B.V., GmbH, Ltd, S.p.A., AG, Inc. and more). The stored values never change.
Watch the whole road in 7:20. The video sets up the rules from a template and runs them. Then it dismisses a pair that is not a match, merges the three Hartog records, and undoes the merge:
Turn it on for an entity
Only an administrator sets this up. Open Settings > Manage Models, open the entity, and click the Lookalikes tab.
These settings only find lookalikes. No record changes until someone merges. Auto-merge is the one exception: it merges by itself, and it stays off until you switch it on. The road to a merge: the settings find pairs, a pair goes to the queue, and a person opens Review and merge there.
- Switch on Find lookalikes for this entity.
- Pick the columns to compare (see below). A template gives you a first draft.
- Click Test these rules and read the result.
- Click Save settings.
The explanation at the top of the tab, How a lookalike rule works, is open while Lookalikes is off for the entity, and folded once it is on. Click Hide or Show to change it. Primentra keeps your choice on your account, so it follows you to another browser. The info icon next to a numbered heading opens the explanation at that step.
Nothing on this tab saves until you click Save settings. When Lookalikes is on, every saved record is checked in the background. A save never waits for the check and a save is never refused because of a lookalike.

Start from a template
The Company, Person, Address and Product templates each map their fields to the columns of your entity by name and data type. A template shows a draft. Click Show draft, read it, and accept it. A card names the fields it could not find, for example Missing: VAT number. A draft replaces the rules on the screen. Picking a template saves nothing, and nothing is saved until you click Save settings.
The Company, Address and Person templates compare the postcode with Normalized, which ignores spaces and case: 3511 AB equals 3511AB, and 3512 AB is another postcode. A rule you saved keeps its own setting.
A template has one known limit. An entity that keeps street and house number in one column ("Oudegracht 231") maps that column to Street. The name comparison cannot tell "Oudegracht 231" from "Oudegracht 233", and the House number field stays empty. For such an entity, compare that column with Exact or Normalized instead of a typo comparison.
Columns to compare
Each column in the rule has these settings:
| Setting | What it does |
|---|---|
| Column | The column to compare. Code and Name can be used too. |
| Compare | How two values are compared: Exact, Normalized, Typos (Jaro-Winkler) or Edits (edit distance). See the table below. A Domain column offers only Exact and Normalized, because two codes one character apart are two records. |
| Role | Must be close: if these values differ too much, the two records are never lookalikes, whatever the other columns say. A value empty on one record does not refuse the pair. Use it where a difference settles it: two people with another date of birth are two people. Extra proof: the column only moves the score, up when the values match and down when they differ. Use it where a difference can happen: a company can move to another city. |
| Weight | How much the column counts, from 1 to 10 (the header shows the range). A VAT number with weight 3 counts three times as much as a city with weight 1. |
| Minimum | How close a Must be close column must be, from 0% to 100%. Only Typos and Edits use it, because Exact and Normalized give only equal or different. Those two show n/a here. With Name at 88%, Jansen Transport B.V. and Janssen Transport BV score 93.8% and pass. Van den Berg Logistiek and v.d. Berg Logistiek score 79.9%, so those two are never lookalikes. On Extra proof the minimum never changes the score. It only decides whether the reason says similar or different. On an Extra proof row the field is gray, with that note above it. When you change Compare to Typos or Edits, Primentra fills in 85% and lights up the field for a moment. |
| Compare records that share | Which records get compared at all: the whole value, the first letters, a pair of words or nothing. See below. At least one column must do this. The table shows a warning at once when no column does. |
A column that is empty on either side does not count for that pair. It does not raise the score and it does not lower it.
In the run status, the pairs and groups open the queue, and the not-checked records open Not checked. A change takes effect at the next run. Cancel asks first: Discard changes puts back the saved settings, and Keep editing keeps your changes. To leave the tab with unsaved changes, the app asks too: Keep editing stays, and Discard & leave throws the changes away. With Find lookalikes for this entity on and no column under Compare records that share, Save settings saves nothing: it scrolls to the warning under the columns and lights it up.
!The columns of a rule: Name must be close, VAT number and City are extra proof Under each column row, the screen shows one real pair of the entity and the similarity the setting gives it, for example Example: Brandt Verpackungen GmbH and Brandt Verpackungen: 100% similar by Typos. Change the setting and the number changes. The pair comes from the last run, or, before a run, from records next to each other in the name order. Below the table, a line says about how many pairs a run compares for your Compare records that share choice. It cleans each value as a run does, and it names the values that more records share than Most records sharing a value allows, with their record counts: those are not compared. Test these rules names the same values. The pair count is an estimate: a pair found under two values counts twice.
Compare: the four choices
| Choice | What it does | Example | When to pick it |
|---|---|---|---|
| Exact | Letter for letter the same. Capitals count. | NL001234567B01 and nl001234567b01: 0% | Codes and fixed values that one system always writes the same way. A date or a number column offers only this choice. |
| Normalized | The same once you ignore capitals, accents, spaces and punctuation. | NL 0012.34.567.B01 and NL001234567B01: 100%. 3511 AB and 3512 AB: 0% | VAT and KvK numbers and postcodes: values that people type in different ways. Not for names: one other letter gives 0%. |
| Typos (Jaro-Winkler) | Almost the same: a slip of the keyboard. Jaro-Winkler is the name of the method. It looks for the same letters in about the same order, and the start of the value counts extra. It ignores legal forms such as B.V. and GmbH. | Jansen Transport B.V. and Janssen Transport BV: 93.8%. 000012345678 and 000012345679: 96.7%, two numbers and still a high score | Names of companies, people, streets and products. Not for numbers or postcodes. |
| Edits (edit distance) | Counts how many characters differ, and divides that by the length of the longer value. That count is the edit distance. | 3511 AB and 3511AB: 85.7%. 3511 AB and 3512 AB: also 85.7% | Short codes where a typo can happen, as Extra proof. It cannot tell a typo from a real difference. |
Typos removes legal forms from any column. Normalized and Edits remove them only on the Name column. Exact never removes them.
How Lookalikes compares values shows each method step by step, with the numbers: how Jaro-Winkler and the edit distance work, how the score is made, and which records meet.
Try two texts
In the explanation at the top of the tab, under Compare, you can type two texts and read the similarity of the four ways to compare. The two boxes start empty, with an example in gray, and the table shows the scores of that example until you type. Legal forms such as B.V. and GmbH are removed as a run removes them from a Name; Exact keeps them. The server does the scoring with the same code as a run. A text longer than 500 characters is refused, never cut. Nothing is saved.
Compare records that share
Comparing every record with every other record takes too long. So Primentra only compares records that share something in a column you set here. Read the header and the choice as one sentence:
| Compare records that share | Two records are compared when they have |
|---|---|
| the whole value | the same value, as Compare reads it |
| the first letters | the same start, 4 letters by default |
| a pair of words | the same first letters in two of the first three words, so a typo in one word still leaves a match. Bakkerij De Vries and Bakkerij De Vris share all three pairs |
| nothing | nothing: this column picks no records, and it still counts in the score |
An example: Postcode, with Compare on Normalized and Compare records that share on the whole value.
| Record | Postcode | What happens |
|---|---|---|
| A | 3511 AB | Compared with B. Normalized reads both as 3511ab. |
| B | 3511AB | Compared with A. |
| C | 3512 AB | Not compared with A or B: 3512ab is another value. |
C can still meet A or B when they share something in another column you set here, such as a pair of words in Name.
A bad choice loses pairs. A column that is empty or differs on real duplicates does not bring them together, so that pair is never found. When more records share a value than Most records sharing a value allows, Primentra skips that value. A record with only such values, or empty in every column set here, shows under Not checked.
Good starting points
These values come from the four templates: Company, Person, Address and Product. Try them with Test these rules before you save.
| Setting | Where to start |
|---|---|
| Weight | 3 for a column that identifies on its own: VAT number, KvK number, email address. The Product template gives the GTIN 4. 1 for a column that only supports: city, postcode. The Address template gives the postcode 2. A higher weight counts in both directions: Jansen Transport B.V. and Janssen Transport BV with the same VAT number and another city score 83.1 with City at weight 1, so they are in the queue. With City at weight 3 they score 64.6 and are not shown. |
| Compare | Normalized for numbers and codes that people format in different ways: VAT, KvK, GTIN, email. Typos for names. Exact for fixed codes. No template uses Edits; choose it yourself for a column where one or two wrong characters still mean the same value. |
| Minimum | The Company template uses 88% on the name. Person, Address and Product use 90% on the name or the street. Raise it and you find fewer pairs and fewer wrong ones. Lower it and you find more pairs and more wrong ones. At 95% Jansen Transport B.V. and Janssen Transport BV (93.8%) are refused, and Bakkerij De Vries and Bakkerij De Vos, two bakeries at 95.1%, still pass. A second column must tell those two apart. |
Score thresholds
The score is a number from 0 to 100. It is the average similarity of the columns that have a value on both records, counted by their weight. Two thresholds divide it into three ranges. With the defaults:
Under the ranges, a histogram shows the scores of the pairs of the last run, with the count per range. The counts move at once when you change a threshold. A run keeps only the pairs from its review threshold up, so a lower threshold shows no new pairs until the next run.
| Score | What happens |
|---|---|
| Under 80 | The pair is not shown at all. |
| 80 to under 95 | The pair goes to the queue. A person decides. |
| 95 or higher | The pair can merge by itself, only when auto-merge is on. Otherwise it also waits in the queue. |
Auto-merge asks more than the score. At least 2 columns must count for the pair, and they must carry at least 70% of the total weight. A group merges only when every pair in it passes. Else the group waits in the queue, whatever the score. A pair that a Must be close column refuses is not shown at all, whatever its score.
Worked example. The rule has Name (weight 3), VAT number (weight 3) and City (weight 1). SUP-1001 and SUP-1003 have a Name that is 99% similar, the same City and an empty VAT number on one side. The VAT number does not count. The score is (0.99 x 3 + 1 x 1) / (3 + 1), about 99. That score is above 95, but Name and City carry 4 of 7, which is 57%. So auto-merge leaves this pair alone, and a person looks at it.
A good start is the defaults, 80 and 95. Lower the Review threshold and you get more pairs, and more wrong ones to read. Raise it and you get fewer pairs, and you can miss real duplicates. Lower the Auto-merge threshold and more groups merge without a person, so a wrong merge gets more likely. Raise it and more groups wait for a person.
Test these rules counts the pairs in the top two ranges before you save.
Test these rules
Test these rules runs the rules on the current records. It saves nothing and writes nothing. It shows the records, the pairs For review, the pairs that Can auto-merge, the groups and the records Not checked, with examples and the reason for each score. Change a weight, test again, and compare. When you change the rules after a test, the screen says the result is old.
The result also holds a Simulation: how many groups auto-merge would merge by itself with these rules and thresholds, and why the other groups wait for a person (a pair under the auto-merge threshold, a group that is too large, a Must be close column that refuses two records, or the limit for one run). It is a simulation: nothing is merged.
Which record stays
A merge keeps one record. Pick the rule for the entity:
- Oldest record (default): the record with the lowest id.
- Most recently changed: the record saved last.
- Most complete record: the record with the most filled columns.
A person can pick another record in the merge screen. Auto-merge uses this rule.
Which value wins
For each column, set which value the kept record takes. This is survivorship. The list keeps the order of the columns; type in the filter box to find a column. You can set it on any column, also on a column that is not compared. An empty value never wins over a filled value: if record A has no phone number and record B has 030 123 4567, the merged record keeps 030 123 4567, whatever the rule says. If the person who merges may not see a column, the merge leaves that column as it is on the record that stays.
| Rule | The kept record takes |
|---|---|
| Kept record (default) | its own value |
| Most complete (longest text) | the longest text. Text columns only. |
| Most frequent value | the value most records of the group hold. A tie goes to the kept record. |
| Most recently changed | the value of the record saved last |
| Oldest record | the value of the oldest record |
An empty value never wins over a filled value. Code always stays the Code of the kept record.
Auto-merge
Auto-merge is off by default. When you switch it on, a scheduled run and Find lookalikes now merge a group only when every pair in it is at the auto-merge threshold or higher, with the rules for which record stays and which value wins. A save or a bulk load never merges.
- Max per run (default 100): the most groups one run merges. The others wait for the next run.
- Largest group (default 5): a group with more records goes to the review queue.
Auto-merge leaves a group in the queue when a person unmerged its records or said Not a match. You can unmerge every merge.
Auto-merge also leaves a group when a Must be close column refuses two of its records and a third record links them (its value in that column is empty, for example); the queue and the merge screen name the column and the two records, and you decide.
Schedule and run logs
| Setting | Default | What it does |
|---|---|---|
| Run on a schedule | off | On: a full run starts by itself at each time of the picked schedule. Off keeps the pick, so you can switch it on again later. |
| Schedule | none | A named schedule, for example Every night at 02:00. Pick one from the list, or press New schedule and make one here. Under the list you see the schedule in words. The status at the top of the tab says the next run of this entity, in server time. |
| Keep run logs | 90 days | How long the list of runs is kept. Decisions stay. |
Matching limits
| Setting | Default | What it does |
|---|---|---|
| Most records sharing a value | 1,000 | When more records than this share one value in a column set under Compare records that share, Primentra does not compare them on that value. The test and the run say so, and a record with only such values shows under Not checked. |
| Bulk-run threshold | 2,000 | A load of more records than this (an import, a staging run, a bulk API call) asks for one full run. A smaller load checks each record on its own. |
You make and change schedules under Settings › [Schedules](/docs/administration/schedules). One schedule can run Lookalikes and staging on many entities. A scheduled run checks every record, the same as Find lookalikes now. The Primentra service starts it: it needs no SQL Agent job.
0 2 * * * becomes a named schedule with the switch on. Primentra removes a line that fits no daily, weekly, monthly or every-N-minutes schedule, and the tab shows a message until the next save.Legal forms
The Legal forms button opens the list of forms that Lookalikes removes from the Name and from Typos columns before it compares. A column with Exact keeps them, also on Name. Other columns keep them. The list is global: it holds for every entity. Add the forms of your own countries.
Work the queue
Open the queue from the badge next to the entity in the sidebar, from Open Lookalikes in the entity menu, or from the Lookalikes card on the dashboard. The badge shows how many open groups the entity has. You need the Read right on the entity.

The queue has five tabs:
- Open groups: groups waiting for a person, best score first. Each pair shows its score, For review or Can auto-merge, and its reasons, for example "Name 99% similar", "City exact" and "VAT number empty on one side, not counted".
- Not checked: records Lookalikes could not compare. They are not lookalikes, and they are not cleared. No value to compare: every column set under Compare records that share is empty on the record. Value shared by too many records: each value of the record is shared by more records than Most records sharing a value allows.
- Dismissed: pairs a person marked as Not a match. A pair stays out of the queue until a matched value of one of its records changes. Restore puts it back.
- Merges: every merge, with Unmerge.
- Runs: each run, with what it found and what auto-merge did.
The line above the tabs gives the last run: pairs, groups, and how many records were not checked.
On a group you can:
- Review and merge: open the merge screen.
- Not a match: dismiss the whole group. You confirm first when it has more than two records.
- Remove (next to a record): take one record out of the group. The others stay a group if they still have a pair.
- Dismiss below a score: above the groups, type a score, for example 85. Primentra says how many open groups have a top score below it, and marks them as Not a match after you confirm.
All of these need the Merge right. A user with only Read sees the groups and no buttons.
Merge records
Click Review and merge on a group.

- Read the line under the title. It says which record the rule of the entity keeps, and how many references and children the merge moves.
- Choose the record to keep with Keep this record. The kept record keeps its Id and its Code.
- Look at Columns that differ. They come first. Columns with the same value are folded away.
- For each column that differs, click the value the kept record must take. Without a click, the rule of the column decides, and the screen says "By rule" and which one.
- Click Merge 3 records.
The After the merge column shows the result before you click.
Name. When a business rule builds the Name from other columns, the merge builds it from the values you picked and shows the result. When that rule reads a column you cannot see, the merge does not build the Name. It stays as it is, and the screen says so.
References and children. Every record that pointed at a merged record now points at the kept record, in every model. Child records move too. This covers domain links and parent links. The merge refuses a pair where one record is the parent of the other: move it first.
Groups larger than 50 records. One merge takes up to 50 records. When a group is larger, the screen first asks you to pick the records of this part. Merge the part, then merge the next part into the same kept record. Pick other records takes you back to the list.
Columns you cannot see. A column with the permission None is not shown. The merge does not change it: the kept record keeps its own value, also when empty.
One merge at a time. One merge or unmerge runs per entity at a time. A second one waits up to 10 seconds, then asks you to try again.
Merges and Unmerge
The Merges tab lists every merge: the kept record, the merged records, who did it, when, and the status.

Click Unmerge and read the question. Then:
- Comes back: the merged records, with the same Id, Code and values. A link goes back when it still points at the kept record. A picked value goes back when the kept record still holds it.
- Stays: every link and value a person changed after the merge. A value of a column that you deleted since the merge does not come back, and the answer says how many.
Unmerge has an order. Undo the newest merge of a record first. When a later merge of the same records stands, the screen names it. When someone deleted the kept record, the merge cannot be undone.
Where you meet Lookalikes outside the queue
- A new row in the grid. While you type a new row, a hint such as "2 lookalikes" appears. Click it to see the records that look like the row, with their score. It is a hint. You can still save the row.
- Row history. The history of a kept record has a Merged line (which records, which values picked) and a Merged records section with the full history of each record that went away. An unmerge has its own line.
- Old codes. The Code of a merged record becomes an old code of the kept record. The domain picker answers an old code with the kept record and the words "SUP-1002 was merged into SUP-1001." A link by an old code in an import or a staging load goes to the kept record. A new or renamed record cannot take an old code: the save is refused with "Code SUP-1002 was merged into SUP-1001. Use SUP-1001, or pick another code." A staging row with an old code as its Code or NewCode fails with error 524288, for every action, so a source that still sends the old code cannot overwrite the merge. The REST API answers
409 CODE_MERGED_AWAY. - Imports. The import result says "Lookalike check running", and then how many records have lookalikes, with a link to the queue.
Rights
A new right, Merge, covers merge, unmerge, Not a match, Dismiss and Restore. You set it per role and entity, in the Roles screen. Administrators always have it. The Moderator setting does not include it.
| Action | Rights needed on the entity |
|---|---|
| See the queue | Read |
| Merge | Merge, Update and Delete |
| Unmerge | Merge, Create and Update |
| Not a match, Remove, Dismiss, Restore | Merge |
| Settings, Find lookalikes now | Administrator |
A column with the permission None is never shown in the merge, never named in a reason or an error, and never changed by a merge.
Approvals
On an entity that requires approval, a merge and an unmerge become approval requests. The merge screen then says Submit for approval, and has a Note for the approver box. The approver sees the kept record, the records that go, and the picked values. When the approver approves, the same merge runs.
Three warnings protect the approver. If a record changed since the request, the approver sees "changed since the request", and the merge fails and the request closes when approved. The same happens when a person said Not a match for a record after the request. And when a Must be close column keeps two of the records apart, the approver sees the same warning the requester saw on the merge screen; the merge still runs when approved. A record with a pending request cannot be merged until that request is decided. See Approval workflows.
REST API
An API client can find lookalikes when it saves a record, list open groups, merge, and unmerge. One merge call takes up to 1,000 records. See the Lookalikes sections of the REST API page for the calls, the error codes and the old-code answers.
AI assist
AI assist gives a second opinion on a group, and suggests a rule. It is off by default. It gives advice only: it never merges, never dismisses and never picks a value. Lookalikes works the same without it. An administrator sets it up in Settings > General Settings > AI assist.

What it does
- Second opinion. When a steward opens a group of up to 10 records with a pair for review, Primentra asks the AI whether the records are the same. The answer is "Same record", "Not the same record" or "Unsure", with one sentence. It is not fetched for all groups after a run. If the call fails, the screen says "No AI opinion" and everything else works.
- Rule suggestion. An administrator ticks columns on the Lookalikes tab, reads the whole request, and gets a draft rule. Nothing saves before Save settings.
What is sent
A second opinion sends only the matched fields of the group's records: the columns of the rule and their values. Code and Name go too when the rule compares them. It sends no other column and never a column with the permission None. A person who cannot see a matched column gets no opinion. A rule suggestion sends only the ticked columns, with at most 50 values per column.
The settings screen shows an example request before you switch AI assist on. The prompts are fixed in Primentra, and you can read them there.

Your own instructions per entity
Primentra keeps its fixed prompts, and the AI always answers in the same form. On top of them you can give the AI your own rules for one entity. An administrator types them in the AI instructions section of the entity's Lookalikes tab, in two boxes. The first box is for the second opinion, for example: "The same VAT number means the same company. A missing VAT number proves nothing." The second is for the rule suggestion, for example: "The VAT number must be close."
Each box holds up to 2,000 characters. Save settings refuses a longer text and tells you its length. Primentra never cuts it.
- Start from a template fills both boxes with a text for companies, people, addresses or products. You can change the text after that.
- Reset to default empties both boxes. AI assist then uses the fixed prompts alone.
- A template over text you typed asks first, and so does Reset. The question says how many characters you lose.
- Primentra saves nothing before you press Save settings. The save writes both texts in the audit log.
- A model export leaves this text out, and a model import keeps the text of the entity it writes to. A clone of the entity copies it.
Show the system prompts as they are sent shows the fixed prompt with your text after it, while you type. Primentra sends the records in a separate message, never in the prompt. A second opinion and a rule suggestion use the saved text. After you change the text, the next second opinion asks the AI again, so you never see an opinion of the old text.

Provider, key and limits
Pick a provider: Anthropic, OpenAI, Azure OpenAI, Google Gemini, xAI Grok, Microsoft Copilot / Azure AI Foundry, or Other OpenAI-compatible address for a model server on your own network. Enter the API key and pick the model.
After a save you see the key masked: its first 6 characters, 12 dots and its last 4, for example sk-ant••••••••••••x7Qa. That is enough to tell two keys apart. A key under 40 characters shows only dots. The key itself never goes back to the browser.
The Model field lists the models of the provider. On the saved provider and address, the list loads by itself, with the saved key or for a provider that needs no key. For anything else, press Load models. A key you type leaves the browser only when you press Load models, and the list loads after that press. When you pick another provider, the typed key goes. You can also type a name that is not in the list: Azure OpenAI and Azure AI Foundry take the name of your deployment. When the list does not load, a line under the field says why, for example a wrong key or an address without a model list, and you type the name. Loading the list is no AI call: it does not count toward the daily limit and is not in the call log. Primentra sends the saved key only to the saved provider and address. For another address, type the key.
Two limits apply to all users together:
- Daily call limit (default 100). Test calls count too.
- Time-out in seconds (default 30).
Make a test call checks the saved settings. The Usage card shows today's count. Open the call log opens the AI calls tab of the Log Viewer: time, purpose, entity, user, model, tokens and outcome of every call, without values. See AI Call Log.
Providers retire models every few months. When the saved model no longer exists, because it was retired or the name is wrong, every AI call says so: a second opinion, a rule suggestion and Make a test call. The words are "The model "…" is not available at the AI provider: it may have been retired, or this API key cannot use it." Check the model name and the key, pick another model in the Model field if needed, save, and press Make a test call. Asking again does not help, so the opinion does not offer it.
The address rule
- A link-local or cloud metadata address is refused for every provider.
- A loopback or private address (127.x, 10.x, 172.16-31.x, 192.168.x and the like) is refused for every named provider.
- Only Other OpenAI-compatible address reaches your own network.
- For an Anthropic-format gateway on your own network, give the gateway a public address.
If you change the provider or the address, enter the API key again. Primentra never sends a saved key to a new address.
Data protection
Primentra stores the API key encrypted (AES-256-GCM), in the database. The key to decrypt it is a file, mds-migration.key, next to mds-config.json. This protects the API key against a copy of the database. It does not protect it against a person who can read the files on the server. Keep access to the server folder as tight as the access to the database.
Questions
Does Lookalikes check every save, or only at night?
Both. Every saved record is checked in the background. A scheduled run and Find lookalikes now go over the whole entity.
Can I undo a merge?
Yes, with Unmerge on the Merges tab. The records come back with the same Id and values. A link or value a person changed after the merge stays as it is. See Merges and Unmerge above.
Why is a pair I can see with my own eyes not in the queue?
Look for these four causes. A column marked Must be close did not reach its minimum. The two records share nothing in the columns set under Compare records that share, so they were never compared. Each of those columns was empty on the record or held a value too many records share, so the record shows under Not checked. Or a person marked the pair Not a match, and it waits under Dismissed.
Does it match on a column that is empty on one side?
No. An empty column does not count for or against the pair.
Does it match records of two different entities?
No. Lookalikes compares records inside one entity.
Can I change the prompt that goes to the AI?
Not the fixed part. You can add your own instructions per entity, on its Lookalikes tab. See Your own instructions per entity above.
Related
- Business Rules Overview: stops exact duplicates at the point of entry
- Approval Workflows: the review step a merge can go through
- Roles and Permissions: where you give the Merge right
- REST API: lookalikes in an answer, merge and unmerge
- Audit Log: where a merge's history is recorded
- Performance: how long a run, a check and a merge take on 500,000 rows
Did not find what you need?
Try the troubleshooting pages, or ask us.