Prerequisites
Before you start:- Complete alias and match-field preparation on enterprise targets. See Prepare aliases and match fields.
- Functional locations and sources live in the enterprise layer with stable identities. Functional locations are assets in the graph. See About contextualization.
- Decide whether you run matching in the CDF UI (Match entities) or a Cognite Toolkit workflow.
Run and maintain pipelines
1
Scope candidates by site, plant, or unit
Limit each run by site, plant, or unit. Identical tags at different sites must not match each other. Aliases make the same tag text match across sites, and scope stops those false matches. Pick one scoping mechanism and use it consistently.
A location filter scopes search and 3D in apps. It does not replace instance-space or data set scoping for matching pipelines.
2
Apply deterministic links before machine learning
Run the simplest approach that can create the relationship:
- Exact business key. Write the link in a transformation when source and target share a stable key.
- Manual expert mappings. Load curated source-to-target pairs (the CDF Entity Matching deployment pack stores these in
contextualization_manual_input). - Regex rules. Encode repeatable patterns (the CDF Entity Matching deployment pack stores these in
contextualization_rule_input; the CDF UI can save generated rules with a pipeline). - Machine learning. Use entity matching for the remainder.
3
Store and review unresolved matches
Not every run produces a link. Plan for review instead of treating low coverage as a model-only problem.
- In the CDF UI, filter for Unmatched entities or Different recommendation when you validate a pipeline. See Match entities.
- In the CDF Entity Matching deployment pack, scores below
autoApprovalThresholdland incontextualization_bad; approved matches land incontextualization_good. Review bad rows for missing targets, bad aliases, or scope that is too narrow or too wide. - For diagram annotation, inspect files that returned no tag links before you rerun OCR or parsing. Low recall often means voided tags or missing
aliaseson assets, not a weak parser. If aliases look correct, see Troubleshooting interactive diagrams for parser configuration.
4
Configure incremental reruns
After the first pass, process only what changed unless you have a documented reason to reprocess everything.CDF UI
- Save a pipeline tied to data sets. New ingested entities then enter the same model. When a data set receives new data, select Rerun pipeline on the entity matching overview. See Rerun a matching model.
- Confirmed matches and saved rules persist with the pipeline. Reruns apply to new or unmatched entities according to the filters you selected.
- Set
runAll: false. The Entity Matching function then processes only entities updated since the last run. State is stored incontextualization_state_store. See Incremental processing and state management. - For File Annotation, keep
cleanOldAnnotationsfalse on incremental runs so annotations from earlier runs stay. Set it totrueonly when you need to replace those annotations. See Matching.
runAll: true for first deployment. Switch to incremental mode after you validate the initial match rate.5
Decide when a full reprocess is justified
Reprocess all entities or files only when the change affects matching logic globally, for example:
- You replaced the enterprise asset hierarchy or moved instance spaces.
- You changed
targetViewSearchProperty,entityViewSearchProperty, or tokenizer-related fields across the project. - You merged rename lists into
aliaseson a large share of targets and need to re-evaluate prior ML suggestions.
runAll: true or clear the relevant state table, then run the workflow. In the CDF UI, open the pipeline, adjust scope or model settings, and rerun on the full data set.If you change autoApprovalThreshold in the CDF Entity Matching deployment pack, clean up relationships created by previous automated runs before you re-run. The deployment pack reference notes that manually created relationships are preserved. See Runtime parameters.6
Trigger reruns when inputs change
Schedule or trigger pipelines when any of these change:
Use CDF Workflows or scheduled triggers to run Cognite Toolkit modules after upstream transforms finish ingesting data.
UI and Cognite Toolkit at a glance
If you are deciding where to run matching day to day, use this table to compare the CDF UI with Cognite Toolkit deployment packs before you return to the steps above for scoping and rerun rules.Next steps
- Read Understanding contextualization quality, then deploy the Contextualization Quality Dashboard deployment pack to score in-scope coverage and orphans.
- Return to Prepare aliases and match fields when bad rows point to tokenization or blocking issues.
- See About contextualization for tool choice and enterprise prerequisites.