Platform Guide for Microsoft Fabric
End-to-end guide to running Zingg on Microsoft Fabric from workspace setup and Lakehouse creation to your first match result. Covers Community (open source) and Enterprise.
Microsoft Fabric paired with Zingg gives you entity resolution with built-in data governance via Microsoft Purview. Fabric's OneLake provides a single storage layer for all your data. Zingg runs on Fabric Spark pools using the same Python API as on other platforms.
Uses Arguments, FieldDefinition, CsvPipe, and ZinggWithSpark. The workflow runs across four notebooks.
Fabric workspace setup
Complete these four steps in the Fabric UI before opening any notebook.
Step 1: Create a Fabric workspace
If you are new to Fabric, sign up for a free trial at microsoft.com/fabric.
Go to Workspaces and click New workspace.
Name it something like
Zingg-Fabric.When prompted for a session cluster, choose New Standard Session.

Fabric session dropdown with New standard session selected.
Step 2: Create a Zingg Environment
Fabric Environments let you install JARs that persist across notebook sessions. Zingg requires its JAR to be installed in an Environment before any notebook runs.
Inside your workspace, go to the Environment tab and click New Environment.
Name it
Zingg Environment.
Fabric notebook toolbar with the environment dropdown open on New environment.
Step 3: Install the Zingg JAR in the Environment
The Zingg JAR must be installed as a Custom Library in your Environment so Fabric's Spark runtime can find it.
Go to
github.com/zinggAI/zingg/releasesand download the latest releasetarfile.
Zingg GitHub release page showing the spark tar.gz file under Assets. Extract the
tarfile and locate the JAR file inside it.
Extracted Zingg release folder with the zingg jar file highlighted. Open your
Zingg Environment, go to Custom Library, and upload the JAR file.
Fabric Environment Custom libraries page showing the uploaded Zingg jar with Success status. Click Save and then Publish the Environment.
Step 4: Create a Lakehouse and upload your data
Zingg reads from and writes to OneLake. Create a Lakehouse to give Zingg a storage location for your data, model files, and output.
Inside your workspace, click New Item → Lakehouse.

Fabric New item panel with Lakehouse selected under Store data. Give the Lakehouse a name (for example
ZinggLakehouse).Go inside the Lakehouse, click Get Data, and upload your CSV file.

Lakehouse Get data menu with Upload files selected.
Notebook 01: Set up Zingg
Create a new notebook in your workspace, attach it to the Zingg Environment, and select PySpark as the kernel. All four notebooks in this workflow call %run 01-setting_up_zingg at the top — so everything configured here is inherited by Notebooks 02, 03, and 04 automatically.
To use the sample notebooks instead of writing your own, use Import → Notebook → From this computer in your workspace.

Step 5: Verify Spark is configured correctly
Confirm Fabric's Spark runtime is running before proceeding.
Step 6: Set the checkpoint directory and install Zingg
Zingg uses a checkpoint directory to store intermediate Spark computation state. Set this to a path inside your OneLake Files directory.
Install the Zingg Python package:
Verify the installation:
Step 7: Set the model ID and storage paths
zinggDir is the root path for all Zingg model files, training data, and output. modelId is the unique name for this model run. Use the same values across all four notebooks.
Replace <workspace-id> and <lakehouse-id> with the actual IDs from your Fabric workspace and Lakehouse. You can find them in the browser address bar when viewing your Lakehouse.
MARKED_DIR and UNMARKED_DIR are derived automatically. Zingg writes labeled training pairs to MARKED_DIR during the label phase and reads them back during train.
Step 8: Import libraries and set up helper functions
Step 9: Build the arguments object
Arguments is the central configuration object. Every phase in this workflow reads from the same args instance.
Step 10: Configure performance settings
numPartitions controls how data is distributed across Spark workers. Disabling Adaptive Query Execution gives Zingg more predictable Spark behavior.
Step 11: Preview your data
Read your CSV from OneLake and preview it before configuring the Zingg pipes. This is for your own verification—the Zingg input pipe is configured in Step 12.

Step 12: Configure input and output pipes
CsvPipe connects Zingg to your OneLake data. The schema string must match your dataset column names exactly.
Step 13: Define fields and match types
Every field in your input schema must appear in fieldDefinition. List the most important fields first as field order affects blocking quality.
Notebook 02: Find training data and label pairs
This notebook runs findTrainingData and label. It calls %run 01-setting_up_zingg at the top so all configuration from Notebook 01 is inherited automatically.
Step 14: Set labelDataSampleSize
labelDataSampleSize controls how much of your dataset is scanned when finding candidate pairs.
Step 15: Find candidate pairs
Zingg scans your dataset using the field rules defined in Step 13 and selects the most informative pairs for labeling — edge cases where the model has the most to learn. Candidate pairs are saved to UNMARKED_DIR in your OneLake Lakehouse.
Step 16: Load pairs for labeling
Step 17: Label pairs in the widget
A widget displays each candidate pair side by side. For each pair, select Match, No Match, or Uncertain.

Step 18: Save labeled pairs
After labeling pairs in the widget, run this cell to save your labels to the training data folder in OneLake.
Notebook 03: Generate model documentation (optional)
This notebook runs generateDocs. It calls %run 01-setting_up_zingg at the top. Run it after labeling and before training to inspect label quality. Skip it if you are confident in your labeling and want to proceed directly to Notebook 04.
Step 19: Generate and view model documentation
Run generateDocs to produce readable HTML reports of your labeled training data — both matched and non-matched pairs. Use this to verify label consistency and share with subject matter experts before committing to training.

Notebook 04: Train and match
This notebook runs trainMatch and displays the output. It calls %run 01-setting_up_zingg at the top.
Step 20: Train and match
trainMatch combines train and match into a single phase. Zingg builds a model from your labeled pairs and immediately applies it to the full dataset. This is the most compute-intensive step; Spark distributes the workload across all Fabric Spark nodes.
You can also run train and match as separate phases if you want to inspect the trained model before running the full dataset:
Step 21: View output
Match output is written to output_path in your OneLake Lakehouse. Read it back into a Spark DataFrame to inspect the resolved clusters.

Last updated
Was this helpful?