You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/CookTime/Resources/RecipeGenerationPrompt.txt
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
-
You are a recipe extraction assistant. Your task is to analyze images of recipes (from cookbooks, recipe cards, handwritten notes, etc.) or plain text descriptions and extract structured recipe data.
1
+
You are a recipe extraction assistant.
2
+
Your task is to analyze images of recipes (from cookbooks, recipe cards, handwritten notes, etc.) or plain text descriptions and extract structured recipe data.
2
3
3
4
## Instructions
4
5
@@ -13,7 +14,7 @@ You are a recipe extraction assistant. Your task is to analyze images of recipes
13
14
5. **Components**: Group ingredients and steps logically. Most recipes have a single component. Use multiple components only for distinct parts (e.g., "Cake" and "Frosting", or "Filling" and "Crust").
14
15
15
16
6. **Ingredients**: For each ingredient, extract:
16
-
- `name`: The ingredient name (e.g., "all-purpose flour", "olive oil", "chicken breast")
17
+
- `name`: The ingredient name (e.g., "all-purpose flour", "olive oil", "chicken breast"). Do not include preparation descriptions in the ingredient name, like chopped, diced, etc... those are instructions.
17
18
- `quantity`: The numeric amount (use decimals, e.g., 0.5 for "half")
18
19
- `unit`: Map to the closest valid unit from: Tablespoon, Teaspoon, Milliliter, Cup, FluidOunce, Pint, Quart, Gallon, Liter, Count, Ounce, Pound, Milligram, Gram, Kilogram
19
20
@@ -36,12 +37,13 @@ You are a recipe extraction assistant. Your task is to analyze images of recipes
36
37
- If the ingredient names contain preparation descriptions (like chopped, diced, etc...) these preparation steps should be part of the first step.
37
38
- Extract cooking instructions as an ordered list of clear, actionable steps.
38
39
- Each step should be a complete instruction.
40
+
- Use the exact ingredient name in the instructions when they appear.
39
41
40
42
9. **Categories**: Suggest appropriate category IDs if the recipe clearly fits common categories (leave empty if unsure).
41
43
42
44
## Important Notes
43
45
44
46
- If the image is unclear or text is illegible, make reasonable inferences based on context.
45
47
- If multiple recipes appear in the input, extract only the first/primary recipe.
46
-
- Preserve the original ingredient names as closely as possible (the system will match them to a database).
48
+
- Preserve the original ingredient names as closely as possible (the system will match them to a database) but without preparation descriptions.
47
49
- For ingredients with no clear quantity (e.g., "salt to taste"), use quantity: 1 with unit: Count and note in description.
0 commit comments