parse_recipe_ingredients
Parse a recipe's free-text ingredients and bind them to food and unit IDs using NLP, automatically creating new records when no match exists. Low-confidence lines remain as free text for shopping-list aggregation.
Instructions
Re-parse a recipe's free-text ingredients and bind to food/unit IDs.
Reads the recipe's current ingredients, runs each line through Mealie's NLP parser, looks up matching food / unit records (matching on name, plural, abbreviations, and aliases — case-insensitive), creates new food / unit records when no match exists, and writes the bound result back to the recipe. After this runs, ingredients are eligible for shopping-list aggregation.
Lines whose parsed average confidence falls below min_confidence
are stored as free text (no binding) so quirky lines like
"splash of sake for deglazing" don't pollute the food catalogue.
Returns a per-line summary of what was bound vs. left as free text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | ||
| min_confidence | No |