Use case
Cross-restaurant dish matching for price comparison
Price comparison only works when you know two listings are the same dish. Latimal's /match endpoint tells you, across languages, spellings and messy menu formatting, so your app can compare like for like.
| City | Listed as | Price | /match |
|---|---|---|---|
| AmsterdamDe Pijp noodle bar | Chicken Teriyaki Bowl | €11.50 | reference |
| BerlinMitte izakaya | Teriyaki-Hähnchen Reisschale | €12.90 | "match": true |
| New YorkEast Village diner | 照り焼きチキン丼 Teriyaki Don - $14 | $14.00 | "match": true |
| New YorkEast Village diner | Oyakodon | $13.00 | "match": falseDifferent dish: chicken and egg |
Each listing is paired with Chicken Teriyaki Bowl. Three listings become one dish; the oyakodon stays out.
The problem
The same dish goes by many names
- ผัดกะเพราไก่
- Pad Kra Pao Gai
- Krapow chicken
- Thai basil chicken with rice
Four Thai kitchens on one street list the same plate as "ผัดกะเพราไก่," "Pad Kra Pao Gai," "Krapow chicken" and "Thai basil chicken with rice." To a string matcher that's four different dishes, and your price comparison shows one restaurant where it should show four.
The opposite mistake costs more. "Pad kra pao tofu" shares almost every word with the chicken version, and lumping it in puts a different order at the top of the cheapest list. Customers notice that fast.
Across cities it gets harder still. An Amsterdam menu says Chicken Teriyaki Bowl, a Berlin menu writes it in German, and a New York menu prints it in Japanese with the price jammed into the name. Aggregators, comparison apps and grocery platforms need a way to line all of that up without hand-built synonym lists.
- Dish matching
- 0.851vs 0.758
- FoodEval mean best F1 over 7 matching tasks, against OpenAI text-embedding-3-large.
- Cross-lingual pairs
- 0.886vs 0.820
- Same dish across scripts and romanizations, against Voyage 4 Large, the best general model on this task.
- Noisy menu lines
- 0.916vs 0.750
- Prices and promo tags stuck to the name, like
***HOT*** Spicy Ramen, against Nomic v1.5, the best general model here.
| Task | Latimal | Next best | System |
|---|---|---|---|
| Global cuisine | 0.867 | 0.829 | Cohere Embed v4 |
| Cross-lingual | 0.886 | 0.820 | Voyage 4 Large |
| Noisy menu | 0.916 | 0.750 | Nomic v1.5 |
| Portion size | 0.972 | 0.855 | Nomic v1.5 |
| Beverages | 0.746 | 0.719 | Voyage 4 Large |
| Bakery & desserts | 0.755 | 0.735 | OpenAI text-embedding-3-large |
| Indian cuisine | 0.817 | 0.745 | OpenAI text-embedding-3-large |
How it works
How it works with /match
POST /matchShortlist candidate pairs
For each dish on a reference menu, pick a few likely matches from the others. Nearest neighbors from /embed or your own vector index keep two 200-item menus down to a few hundred pairs.
Send the pairs to /match
Up to 100 pairs per request, exactly as the menus wrote them. Prices, promo tags and portion markers are stripped before matching, so there's no cleanup on your side.
Group the matches and compare prices
Each pair comes back with a match decision, a similarity score and dietary and protein conflict flags. Group matched items under one dish, then sort by price in your own currency.
The full walkthrough, from candidate pairs to price comparison and threshold tuning, is in the cross-restaurant matching guide. Field-by-field details are in the /match API reference.
Example
One dish in three cities
Three listings for teriyaki chicken don, the Japanese rice bowl, plus a chicken-and-egg oyakodon from the same New York menu that looks close enough to fool a keyword matcher. These are the pairs behind Fig. 01.
{
"pairs": [
{
"text_a": "Chicken Teriyaki Bowl",
"text_b": "Teriyaki-Hähnchen Reisschale"
},
{
"text_a": "Chicken Teriyaki Bowl",
"text_b": "照り焼きチキン丼 Teriyaki Don - $14"
},
{
"text_a": "Chicken Teriyaki Bowl",
"text_b": "Oyakodon"
}
]
}{
"results": [
{
"text_a": "Chicken Teriyaki Bowl",
"text_b": "Teriyaki-Hähnchen Reisschale",
"match": true
},
{
"text_a": "Chicken Teriyaki Bowl",
"text_b": "照り焼きチキン丼 Teriyaki Don - $14",
"match": true
},
{
"text_a": "Chicken Teriyaki Bowl",
"text_b": "Oyakodon",
"match": false
}
]
}Three listings become one dish with prices in EUR and USD. Convert with your own FX rates and you have a cross-market price view. The oyakodon stays out of it. Listings and prices here are illustrative.
Guardrails
Guardrails for like-for-like comparisons
- Protein conflicts
protein_conflictflags pairs like Chicken Tacos and Mushroom Tacos that read alike and aren't the same order.- Dietary conflicts
dietary_conflictkeeps a Chicken Burger and a Mushroom Burger in separate rows.- Portion awareness
- Regular Pepsi and Large Pepsi are one product in two sizes. Match on the dish, keep size from your own item data, and compare within a size. Latimal scores 0.972 on FoodEval's portion-size task.
- A tunable threshold
cosine_thresholddefaults to 0.85. Raise it for stricter grouping in high-stakes views.
Outcomes
What you can build
Dish pages with a price ladder
Show one dish at every restaurant nearby, sorted by price, whatever each menu calls it.
Comparisons customers can trust
Chicken and tofu versions stay apart, so the cheapest option is really the same order.
Market pricing for restaurant partners
Tell a merchant what the same dish sells for across their city or delivery zone.
One dish ID across every partner
Link listings from different restaurants and markets for analytics, ads and merchandising.
Matching pairs well with the rest of the API. Semantic search gets customers to the dish, cuisine classification puts it on the right shelf, and cart upsell suggests what goes with it. For whole-catalog clustering, the same key covers /dedup.
Match dishes from your own menus
Type in two dish names from different menus and see whether the API calls them the same dish. The playground runs without a key.
To start a 14-day trial, send a short note to hello@latimal.com and we’ll set it up. You add a card before the trial starts.