Mercado Libre matches products at 95% precision with LLMs
Mercado Libre added a multi-model LLM pipeline, built on its in-house Verdi platform, to decide whether two listings show the same product before the match feeds competitive pricing.
Mercado LibreLatin AmericaE-commerce and marketplacesIn productionWho built it Built in-house (OpenAI)Human oversight Acts on its ownKind of solution Data matching and enrichmentScale Millions of items and matchesScenario Product matching across marketplace listingsBusiness function Sales and marketingOrganization EnterpriseAI types Generative AI, Machine learningUnit cost less than $0.001 per request
- Who built it
- Built in-house (OpenAI)
- Human oversight
- Acts on its own
- Kind of solution
- Data matching and enrichment
- Scale
- Millions of items and matches
- Scenario
- Product matching across marketplace listings
- Business function
- Sales and marketing
- Organization
- Enterprise
- AI types
- Generative AI, Machine learning
- Unit cost
- less than $0.001 per request
tl;drMercado Libre's LLM pipeline matches products at 95% precision for less than $0.001 per request.See the results
Mercado Libre uses a pipeline of large language models (LLMs) to decide whether two product listings show the same item, so that its competitive pricing can act on the matches without human review1. The team built the pipeline on Verdi, the company’s in-house LLM orchestration platform1, 2.
Mercado Libre, a major Latin American e-commerce platform, described the product matching work in 20251. The final seven-node pipeline reached 95% precision and at least 50% recall at less than $0.001 per request, which let product matching run on its own across millions of items and matches1.
Before the deployment
Before it added LLMs, Mercado Libre ran a multi-stage product matching pipeline1. It selected target items, encoded their features with open-source embedding models, found candidates with approximate nearest neighbors (ANN) algorithms and scored them with a machine learning model. People reviewed the matches for sensitive products and use cases1.
- Inconsistent listings: Sellers, competitors and providers photograph products from different angles, vary titles, describe attributes inconsistently and use EAN codes that vary widely1.
- Many uses depend on matches: Store personalization, ad display, search result diversification, inventory optimization and pricing or promotion recommendations all need to know which products are identical1.
- High stakes in pricing: A wrong match could be extremely costly when it informs competitive pricing decisions1.
- A model not accurate enough: Pure machine learning wasn’t accurate enough to run pricing matches on its own, despite text and image embeddings and attribute enrichment developed over years1.
Any LLM solution also had to stay within tight cost thresholds, because it had to evaluate millions of items and matches1.
What was built
The solution adds LLMs as the final decision layer of the existing matching pipeline. They make the nuanced, context-dependent judgments that the earlier ML models struggled with1.
- LLM nodes: Seven nodes decide whether two items are the same product. Specialized models from different providers handle different aspects of the decision, with prompts that adapt to context1.
- Consensus between nodes: Several LLM components validate each other’s outputs before the pipeline returns a decision1.
- Retrieval and scoring: Embedding models, vector databases and ANN algorithms find the candidates, and the ML model calculates a match probability for each1.
- The team: Engineers design the nodes, write the prompts and choose the model and provider for each task1. No person reviews the matches in routine operation, including for pricing1.
“When looking for a development platform, we didn’t see one that would solve our need for fast iteration while guaranteeing scalability and security”
Development method
The team followed an iterative method from Jurafsky and Martin’s textbook on speech and language processing1. Verdi let it produce several experimental versions a day1.
- The team ran the prompts on small human-labeled sets of 50, 500 and 5,000 examples1.
- The team examined each failure in detail to find patterns1.
- The team tweaked prompts, adjusted flows, and split or merged tasks to address the patterns1.
- The team generalized each change to prevent overfitting to the sample1.
The team changed one aspect at a time, so it could see which change made results better or worse1. Asking the LLMs directly for feedback on a prompt and its error returned valuable suggestions1.
Alternatives considered
- One model for the whole task: The team split the task into structured, human-like steps and gave the models space to reason, which improved performance1.
- More complex models: Simpler models run twice proved more reliable than complex models1.
- Starting with cheaper models: The team tested with more powerful models first, then scaled down until it met the cost requirement. This gave more confidence and efficiency than scaling up1.
- Automated prompting tools: These proved less useful than expected, so the team relied on asking the LLMs for feedback1.
Technology and architecture
- AI component
- Data
- Inferred, not documented
Verdi is Mercado Libre’s AI development platform, which lets any developer build with LLMs2. It combines language models, Python nodes and APIs, and it uses OpenAI’s GPT-4o, GPT-4o mini and GPT-3.5 Turbo2. Security, guardrails, routing logic and unit testing are built into the platform2.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Language model | Large language models from multiple providers | Seven nodes make the final match decision, each on a different aspect | 1 |
| Workflow engine | Verdi | In-house LLM orchestration system the team built and iterated the pipeline on | 1, 2 |
| Embedding and ranking model | Open-source embedding models | Encode item features for candidate search | 1 |
| Search and vector index | Vector databases | Hold item vectors that ANN algorithms search for candidate matches | 1 |
| Predictive model | Machine learning match model | Calculates a match probability for each candidate | 1 |
| Data preparation | Data preprocessing pipelines | Prepare item data for the matching steps | 1 |
| APIs and connectors | Network of APIs | Connects the steps of the matching pipeline | 1 |
Data inputs
- Listings: Titles, attributes and identifiers such as EAN codes, created by sellers, competitors and providers1.
- Product photos: Images taken from different angles, which the pipeline encodes with image embeddings beside text embeddings1.
- Labeled examples: The human-labeled sample sets the team developed the prompts on, plus challenging and sensitive examples kept as a benchmark for overfitting1.
Integrations
- Existing matching pipeline: A network of APIs connects the embeddings, the vector databases and the ML model, which supply the candidates1.
- Pricing and other uses: The match decisions feed pricing or promotion recommendations and the personalization, ad, search and inventory uses1.
Results
In 2025, the final pipeline met the target the team had set for precision, recall and cost1.
| Metric | Before | After | Scope and timeframe | Reported by |
|---|---|---|---|---|
| Precision of match decisions | 38% | 95% | Final seven-node LLM pipeline for product matching, 2025 | Mercado Libre, via ZenML, measured1 |
| Recall of match decisions | 13% | at least 50% | Final seven-node LLM pipeline for product matching, 2025 | Mercado Libre, via ZenML, measured1 |
- Precision: The share of the pipeline’s match decisions that are correct. It rose from 38% with the first three-step LLM pipeline to 95% with the final seven-node pipeline1.
- Recall: The share of true matches that the pipeline finds. It rose from 13% to at least 50%1.
- Intermediate stage: After several days of prompt refinement, the early pipeline reached 65% precision and 79% recall1.
- Cost: Each request costs less than $0.001, the threshold needed for ROI-effective scalability across millions of items1.
- Change in the work: Product matching now runs autonomously at scale. The human-in-the-loop requirement that had limited pricing applications is gone, and the system reached human-level performance1.
Lessons learned
The figures are Mercado Libre’s own, from its engineering team’s write-up as summarized in ZenML’s LLMOps Database1.
Combining the parts mattered more than the LLMs alone. The team credits the breakthrough to embeddings, ML models, vector databases and LLMs each doing what it does best1.
LLMs didn’t beat the existing model at first. The first three-step LLM pipeline reached 38% precision and 13% recall, below the existing ML model1.
Progress was uneven. Gains in precision sometimes came at the cost of recall, and some days of work ended in dead ends that needed full rollbacks1.
Costs were hard to predict during experimentation. Providers count tokens differently, some pixel by pixel and others with strict character limits, so the team added spending controls midway through testing1.
ZenML’s editors point out that the cost figure depends on provider pricing, token counts and model selection that might change over time. They add that seven nodes with several models and providers bring operational complexity and points of failure, and that organizations without infrastructure like Verdi might find the approach harder to replicate1.
Case study scorecard
Sources by publication date
- Vendors and partners 1
- Press, academic, and regulators 1
Build this solution yourself
Analysis
What you need
- A retrieval and scoring pipeline that already works: The LLM nodes judge candidates that embeddings, ANN search and an ML model have already found, so the LLMs add precision rather than search1.
- Human-labeled match pairs from your own catalog: Every prompt change was tested on labeled sets and on a benchmark of sensitive cases, which is how the team caught overfitting1.
- A platform for fast experiments, with spending limits: Verdi let the team try several versions a day, and token costs needed controls before testing ended1, 2.
Reference architecture
Data matching and enrichment
A data matching and enrichment solution uses a language model to match, fill in, correct, or convert the records that an organization keeps, such as transactions or catalog listings. A language model turns incoming records into a proposal, and only what passes a check reaches the system of record. People who know the records define a right answer, approve proposals or check samples of them, and settle what's left over.
- Connections to the sources (documented in this case study)
- Language model (documented in this case study)
- Review and approval
- System of record
- Handoff to staff
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- Northern Trust: Northern Trust cuts onboarding data prep with an AI agent. Data prep for a new institutional client fell from 2.5 weeks to three days, an 83% cut.
- eBay: Magical Listing cuts eBay listing time by more than 25%. Listing time fell more than 25% once Magical Listing became the default for new US sellers.
- A.P. Moller - Maersk: Maersk's AI cuts forced labor mapping from 100 person-days. Forced labor mapping that took one Maersk customer about 100 person-days now runs near instantly.
- FloQast: LLM-written matching rules for reconciliation at FloQast. One food bank now matches 95% of its bank transactions by rule.
- Matalan: Matalan drafts product descriptions with generative AI. Matalan's AI tool writes 100 product descriptions in 30 minutes, against 100 a day by hand.
- Walmart: LLMs create or improve 850 million data points at Walmart. Walmart's LLMs created or improved more than 850 million pieces of catalog data by August 2024.
Cite this case study
Enterprise AI Case Studies. "Mercado Libre matches products at 95% precision with LLMs." Updated Nov 30, 2026. https://case-studies.ai/case-studies/process-automation/PA-127-llm-product-matching-mercado-libre/
@misc{csai-pa-127,
author = {{Enterprise AI Case Studies}},
title = {{Mercado Libre matches products at 95% precision with LLMs}},
year = {2026},
note = {Updated 2026-11-30},
url = {https://case-studies.ai/case-studies/process-automation/PA-127-llm-product-matching-mercado-libre/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
Mercado Libre: Multi-LLM Orchestration for Product Matching at Scale
Supporting excerpts (53)
Multi-LLM Orchestration for Product Matching at Scale Mercado Libre·2025
Mercado Libre, a major Latin American e-commerce platform
photos taken from different angles, titles with creative variations, attributes described inconsistently, and even standardized identifiers like EAN codes that vary wildly
a capability critical to multiple high-value use cases including store personalization, relevant ad display, search result diversification, inventory optimization, and pricing or promotion recommendations
wrong product matches could be extremely costly when used to inform competitive pricing decisions
pure machine learning wasn't yet accurate enough to operate autonomously in these high-stakes scenarios, despite deploying sophisticated ML models that combined advanced NLP techniques, multiple embeddings for images and text, and attribute enrichment developed over years
Using different open-source embedding models to encode item features
Deploying Approximate Nearest Neighbors (ANN) algorithms to identify potential matching candidates quickly
Processing candidates through a machine learning model to calculate match probabilities
Conducting human oversight for sensitive products and use cases
this system incorporated vector databases, data preprocessing pipelines, and a network of APIs streamlining each step
Their initial three-step LLM pipeline produced disappointing results with only 38% precision and 13% recall, significantly below their existing ML model's performance
after several days of prompt refinement, they achieved 65% precision and 79% recall
the solution had to stay within tight cost thresholds to be truly scalable given the need to evaluate millions of items and matches
The team followed an iterative approach based on methodology from Jurafsky & Martin's
The process involved running prompts on sample training examples, identifying failure cases, modifying prompts to address issues, and generalizing to prevent overfitting while ensuring broader applicability.
They started strategically with small datasets: 50, 500, and 5,000 human-labeled examples.
true improvement comes from scrutinizing individual failures to identify patterns and make generalizations
they tweaked prompts, adjusted flows, and split or merged tasks as needed
Selecting appropriate models and providers: Choosing which LLMs and which providers to use for each task
in-house LLM orchestration system called
which enabled rapid iteration and production of multiple experimental versions daily
Breaking down tasks into structured, human-like steps and allowing models space to reason significantly improved performance.
trying to have a single model solve everything at once
they worked systematically, focusing on one aspect at a time
This isolation approach allowed them to identify precisely which changes led to better or worse outcomes
simpler models run twice outperformed complex models in reliability
Automated prompting tools proved less useful than initially expected.
explicitly asking LLMs for feedback
returned surprisingly valuable suggestions
Encouraging models to explain or justify their responses improved both their internal reasoning and the team's ability to understand how models arrived at conclusions.
Testing initially with more powerful models proved effective. Once achieving good results, they could scale down carefully until meeting cost requirements.
This resulted in greater confidence and overall efficiency compared to starting with cheaper models and trying to scale up.
Identifying challenging or sensitive examples provided valuable benchmarks for detecting overfitting
The initial system used a 2-node configuration with basic prompts and a single model/provider.
The final production system deployed a sophisticated 7-node architecture with multiple improvements including adaptive prompts that could adjust based on context, context-aware decision-making processes, and collaborative consensus mechanisms between nodes where multiple LLM components could validate each other's outputs.
different specialized models handled different aspects of the matching decision
Some days brought significant progress while others involved trade-offs where improving one metric like precision came at the cost of recall.
At times, days of work led to dead ends requiring full rollbacks.
The team achieved their ambitious target: 95% precision and at least 50% recall, with a cost of less than $0.001 per request.
This cost threshold was necessary for ROI-effective scalability across millions of items.
reaching human-level performance with greater reliability, consistency, and cost-effectiveness than human review
Token counts and input processing methods vary widely among providers, with some assessing tokens pixel-by-pixel while others enforce strict character limits, leading to unexpected costs during experimentation.
Midway through testing, they had to implement specific controls to maintain budget discipline.
GenAI services, like any on-demand solution, require robust safeguards to scale to production without incurring costly errors
The final system integrated embeddings, ML models, vector databases with fast retrieval, and LLMs working in concert.
real breakthroughs come from bringing together multiple smart components, each doing what it does best
The LLMs served as the final decision-making layer that could handle the nuanced, context-dependent judgments that previous ML models struggled with
The solution enabled fully autonomous operation for product matching at scale, removing the human-in-the-loop requirement that had previously limited scalability, particularly for pricing applications.
The article is written by Mercado Libre team members and presents their work in a positive light, which is natural but means claimed results should be viewed as self-reported.
The cost figure of less than $0.001 per request is impressive but depends on specific provider pricing, token counts, and model selection that may change over time.
introduces operational complexity, monitoring challenges, and potential points of failure
organizations without similar infrastructure might face additional challenges in replicating this approach
- Source 2:
Introducing Verdi, an AI dev platform powered by GPT-4o
Supporting excerpts (10)
Verdi, a development platform layer using GPT‑4o, GPT‑4o mini, and GPT‑3.5 Turbo
Verdi, Mercado Libre's new AI development platform, which allows any developer to build with LLMs
It integrates various AI capabilities, such as language models, Python nodes, and APIs
Developers never see the source code. Security, guardrails, and routing logic are also built right in.
With built-in unit testing capabilities, developers can ensure code quality and reliability from the start.
In just a few months, Verdi has started to handle 10% of customer service mediation on one of Mercado's major sites.
When looking for a development platform, we didn't see one that would solve our need for fast iteration while guaranteeing scalability and security
says Sebastian Barrios, SVP of Technology
With Verdi, humans become co-pilots to the AI instead of the other way around
says Daniel Rabinovich, Mercado Libre's COO
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.