OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Data & Analytics

Linktransformer

Linktransformer is a Python package for semantic record linkage and other operations on tabular data, including candidate retrieval, row transformation, clustering and text classification. Its dataframe APIs support matching records across tables, with an optional workflow that combines embedding retrieval and LLM adjudication.

Independent OpenViST project profile, based on linked sources.

Linktransformer — OpenViST project profile in AI Data & Analytics.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Linktransformer when a Python workflow needs to match, retrieve, transform or group records in dataframes. Choose the retrieval-and-judge workflow when candidate generation followed by LLM match decisions fits the task.

Who it is for

  • Python users matching records across tabular datasets
  • Data teams cleaning or standardizing values in dataframe columns
  • Users grouping rows, mapping detailed records to broader labels, or classifying text associated with tables

Documented uses

  • Link records between two dataframes using semantic similarity.
  • Retrieve likely record pairs for review or adjudication.
  • Normalize, rewrite or standardize values in dataframe columns.
  • Cluster rows or map fine-grained rows to coarser labels.
  • Classify text associated with tabular data.
Before you choose

Requirements & limits

The repository documents installation with pip and usage through Python code.

  • The package offers different linkage paths: direct semantic merge, top-k retrieval, fuzzy matching within exact-match blocks, and retrieval followed by LLM adjudication.
  • The documented quick start uses pandas dataframes and a sentence-transformers model.
  • LLM adjudication requires configuring a judge model and provider; the example uses an OpenAI API key.
  • The README describes combining OpenAI retrieval embeddings with Gemini adjudication through explicit model and provider settings.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install Linktransformer and prepare a dataframe merge

Install the Python package and set up the documented semantic merge example.

Before you start

  • Python environment with pip
  • pandas dataframes containing the columns to match

Steps

  1. Install the package with the command below.

    Documented command
    pip install linktransformer
  2. Import pandas and Linktransformer as lt in a Python script or notebook.

  3. Prepare left and right dataframes with corresponding fields, such as company name and country.

  4. Call lt.merge with the dataframes, matching columns and a model name; the README example uses sentence-transformers/all-MiniLM-L6-v2.

Expected outcome

A merged result dataframe with paired record fields and a similarity score, as shown in the README example.

Guide limitations

  • The documented example demonstrates a dataframe merge; it does not establish performance or accuracy for a particular dataset.
Source-based practical guide

Set up retrieval and LLM adjudication for record linkage

Configure the documented `merge_k_judge` workflow to retrieve candidate pairs and request LLM match decisions.

Before you start

  • Two dataframes and the columns used to compare records
  • An embedding model and an LLM judge model
  • Provider configuration and credentials appropriate to the selected provider

Steps

  1. Pass the two dataframes and matching columns to lt.merge_k_judge.

  2. Set the number of candidates with k and configure the embedding retrieval model.

  3. Set the judge model and provider; the README example uses gpt-4o-mini with the OpenAI provider and an OPENAI_API_KEY environment variable.

  4. Read the documented output fields: retrieval score, is_match, and confidence when available.

Expected outcome

A linkage result containing candidate retrieval scores and LLM match decisions, with confidence values when available.

Guide limitations

  • Confidence is documented as available only in some cases.
  • The README describes OpenAI retrieval with Gemini adjudication as an example requiring explicit provider and model settings; it does not provide a complete Gemini code example.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
13 October 2026
Original website title
GitHub - dell-research-harvard/linktransformer: A convenient way to link, deduplicate, aggregate and cluster data(frames) in Python using deep learning · GitHub · Official homepage title · retained in its source language