Multi-LLM Orchestration for Product Matching at Scale

mercado_libre · E-commerce · 2025 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: E-commerce product matching

Mercado Libre needed to identify identical products across noisy seller listings for pricing, ads, personalization, search, and inventory without unsafe autonomous errors.

Constraints:

Architecture

Mercado Libre evolved from a simple LLM prototype to a seven-node multi-LLM orchestration pipeline layered alongside embeddings, ANN retrieval, ML scoring, adaptive prompts, context-aware decisions, consensus, and human oversight for sensitive cases.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  target-item-selector["Target Item Selector"]
  embedding-and-ann-retrieval["Embedding and ANN Retrieval"]
  ml-match-scorer["ML Match Scorer"]
  multi-llm-orchestration-pipeline["Multi-LLM Orchestration Pipeline"]
  verdi-orchestration-system["Verdi Orchestration System"]
  human-oversight["Human Oversight"]
  vector-databases["Vector Databases"]
  target-item-selector --> embedding-and-ann-retrieval
  embedding-and-ann-retrieval --> ml-match-scorer
  embedding-and-ann-retrieval --> vector-databases
  ml-match-scorer --> multi-llm-orchestration-pipeline
  multi-llm-orchestration-pipeline --> ml-match-scorer
  multi-llm-orchestration-pipeline --> human-oversight
  verdi-orchestration-system --> multi-llm-orchestration-pipeline
  human-oversight --> multi-llm-orchestration-pipeline
  vector-databases --> embedding-and-ann-retrieval
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Target Item Selector Chooses listings requiring matching. Embedding and ANN Retrieval
Embedding and ANN Retrieval Encodes item features and retrieves candidate matches. ML Match Scorer, Vector Databases
ML Match Scorer Calculates match probabilities from candidate pairs. Multi-LLM Orchestration Pipeline
Multi-LLM Orchestration Pipeline Uses adaptive prompts, context-aware reasoning, and consensus to decide matches. ML Match Scorer, Human Oversight
Verdi Orchestration System Mercado Libre's in-house platform for rapid LLM experiments and production versions. Multi-LLM Orchestration Pipeline
Human Oversight Reviews sensitive products and high-stakes use cases. Multi-LLM Orchestration Pipeline
Vector Databases Store item feature embeddings for candidate retrieval. Embedding and ANN Retrieval

Data flow

Target items are selected, encoded with embeddings, retrieved through ANN as candidate matches, scored by existing ML, then evaluated through a multi-node LLM orchestration pipeline using adaptive prompts and consensus before high-stakes decisions.

“Using different open-source embedding models to encode item features”summary, stated
“Deploying Approximate Nearest Neighbors (ANN) algorithms to identify potential matching candidates quickly”summary, stated

Why this architecture

The architecture combines cheap candidate generation and existing ML with LLM reasoning because high-stakes product matching needs both scale and human-level precision at very low cost.

“Critically, the solution had to stay within tight cost thresholds to be truly scalable given the need to evaluate millions of items and matches.”summary, stated
“wrong product matches could be extremely costly when used to inform competitive pricing decisions.”summary, stated

Models used: multiple LLMs · open-source embedding models · Mercado Libre ML models

Scale

Alternatives considered (roads not taken)

Pure existing ML and embeddings

Rejected because: The prior system could not reach autonomous accuracy for high-stakes scenarios like pricing.

“pure machine learning wasn't yet accurate enough to operate autonomously in these high-stakes scenarios”summary, stated

One large model solving matching directly

Rejected because: The team found consistency, cost, and decomposition mattered more than raw model capability alone.

“simpler models run twice outperformed complex models in reliability.”summary, stated

Patterns

multi-agent-orchestration (architecture)

A seven-node LLM workflow uses task decomposition, adaptive prompts, and consensus.

“a complex 7-node pipeline, incorporating adaptive prompts, context-aware decision-making, and collaborative consensus mechanisms.”summary, stated

rag-retrieval (retrieval)

Embedding models and ANN retrieval generate candidate product matches before LLM reasoning.

“Deploying Approximate Nearest Neighbors (ANN) algorithms to identify potential matching candidates quickly”summary, stated

eval-driven-development (quality)

The team iterated on small labeled samples and scrutinized failures to improve prompts and flow.

“true improvement comes from scrutinizing individual failures to identify patterns and make generalizations.”summary, stated

Tradeoffs

Use multi-node orchestration

Chose Structured LLM components and consensus over A single prompt or model call.

Rationale: Breaking the task into human-like steps improved reliability.

“Breaking down tasks into structured, human-like steps and allowing models space to reason significantly improved performance.”summary, stated

Keep cost under tight thresholds

Chose Careful orchestration with cheap per-request cost over Unbounded use of large models.

Rationale: Millions of item comparisons require sub-cent economics.

“This cost constraint shaped every design decision throughout the development process.”summary, stated

Gotchas (what bit them)

High recall alone is dangerous for pricing.

Root cause: False matches can distort competitive pricing and promotions.

Resolution: Optimize for human-level precision and keep human oversight for sensitive cases.

“wrong product matches could be extremely costly when used to inform competitive pricing decisions.”summary, stated

Automated prompting tools were less useful than expected.

Root cause: The task required understanding failure cases and product-domain nuance.

Resolution: Use systematic human-driven iteration over small labeled samples.

“Automated prompting tools proved less useful than initially expected.”summary, stated

Evaluation

Mercado Libre used human-labeled samples, precision/recall metrics, iterative failure analysis, and cost-per-request constraints.

Metrics: precision · recall · cost per request

“They started strategically with small datasets: 50, 500, and 5,000 human-labeled examples.”summary, stated

Outcomes

Millions of item comparisons, seven LLM nodes, and less than $0.001 per request.

“enabling scalable autonomous product matching across millions of items for critical use cases including pricing, personalization, and inventory optimization.”summary, stated