Skip to content

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.

Latimal leads all seven FoodEval matching tasks
Fig. 01 One dish, three citiesIllustrative
CityListed asPrice/match
AmsterdamDe Pijp noodle barChicken Teriyaki Bowl€11.50reference
BerlinMitte izakayaTeriyaki-Hähnchen Reisschale€12.90"match": true
New YorkEast Village diner照り焼きチキン丼 Teriyaki Don - $14$14.00"match": true
New YorkEast Village dinerOyakodon$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.

Benchmarks

Ahead on all seven FoodEval matching tasks

See the full tables
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.
Fig. 02 Matching average across seven tasksFoodEval, best F1
Fig. 03 Every matching task, Latimal and the next best systemFoodEval, best F1
TaskLatimalNext bestSystem
Global cuisine0.8670.829Cohere Embed v4
Cross-lingual0.8860.820Voyage 4 Large
Noisy menu0.9160.750Nomic v1.5
Portion size0.9720.855Nomic v1.5
Beverages0.7460.719Voyage 4 Large
Bakery & desserts0.7550.735OpenAI text-embedding-3-large
Indian cuisine0.8170.745OpenAI text-embedding-3-large

How it works

How it works with /match

POST /match
  1. Shortlist 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.

  2. 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.

  3. 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.

Fig. 04The request and response behind Fig. 01
POST /match
Illustrative
RequestPOST /match
{
  "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"
    }
  ]
}
Response200 OK, abridged
{
  "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_conflict keeps 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_threshold defaults 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.