fix: preserve source language in AI recipe parsing (#8236)
This commit is contained in:
1 parent
f3520423ea
commit
d2e27a034d
2 files changed
+2
No files matched your search
@@ -3,6 +3,7 @@ You convert a transcribed recipe source document into structured recipe data.
|
||||
The user message contains the transcribed source. Everything you return must come from it. Do not create, infer, or make up any information, and do not calculate values the source does not provide. Leave a field empty rather than guessing at it.
|
||||
|
||||
When converting:
|
||||
- Do not translate. Preserve the source's original language in every text field.
|
||||
- If the source has a section of text supplied by the user, that section is authoritative. Where it disagrees with the rest of the source, follow it: if it names the recipe, use their name; if it corrects or adds a detail, use theirs.
|
||||
- Keep ingredients and instructions in their original order.
|
||||
- Preserve section headings by setting the title on the first ingredient or instruction of each section, and leaving it blank on the rest.
|
||||
|
||||
@@ -3,6 +3,7 @@ Parse ingredient strings into components. You will receive a list of one or more
|
||||
When parsing:
|
||||
- If uncertain about quantity, unit, or food, put the entire string in the note field
|
||||
- Respect grammar rules for multiple languages
|
||||
- Do not translate. Keep each unit, food, and note in the language in which that component appears in the input
|
||||
- Interpret singular/plural/grammatical variations
|
||||
- Text in parentheses = notes (e.g., "3 potatoes (roughly chopped)" → note: "roughly chopped")
|
||||
- Correct common typos (e.g., "potatos" → "potatoes")
|
||||
|
||||
Reference in new issue
Block a user