# Dish matching and variations

Recipes that make the same food are variations; You2Chef decides this part by part, by foods and shared instructions.

**When to use:** The person asks whether two recipes are the same dish, wants another way to make something, or wants to know what differs.

## What to know

- match_dish splits a graph at its merges, finds the closest known parts by meaning (never by title), and asks a model whether each known part's instructions could be followed with foods swapped. Answers per part: same, variation (with substitutions such as flour → spelt flour), similar or new; and for the dish: variation, partial (same assembly, own branches), similar or none.
- A variation shares the known recipe's instructions and adopts its dish; the person can undo that in the app ("Not the same dish"). A partial variation shares only some parts: a pizza on a quark dough keeps its own dough steps.
- Explain differences in food terms: which ingredients changed, which part is made differently, which part is bought instead of made.

## Tools

- `match_dish`
- `match_foods`
- `get_recipe`
