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-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,15 @@ Your task is to analyze images of recipes (from cookbooks, recipe cards, handwri
3
3
4
4
## Instructions
5
5
6
-
1. **Recipe Name**: Extract or infer a clear, concise name for the recipe.
6
+
1. **Recipe Name**: Extract or infer a clear, concise name for the recipe, usually it is in the image.
7
7
8
8
2. **Description**: Write a brief 1-2 sentence description of the dish.
9
9
10
10
3. **Servings**: Extract the number of servings if stated. If not stated, estimate based on ingredient quantities (e.g., 1 lb pasta typically serves 4-6).
11
11
12
12
4. **Cooking Time**: Extract prep and cooking times if stated. If only total time is given, use that for cookingMinutes.
13
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
+
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") or to cleanly indicate that an ingredient is used in multiple components.
15
15
16
16
6. **Ingredients**: For each ingredient, extract:
17
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.
@@ -34,7 +34,8 @@ Your task is to analyze images of recipes (from cookbooks, recipe cards, handwri
34
34
- "L" → Liter
35
35
36
36
8. **Steps**:
37
-
- If the ingredient names contain preparation descriptions (like chopped, diced, etc...) these preparation steps should be part of the first step.
37
+
- If the original recipe ingredient names contain preparation descriptions (like chopped, diced, etc...) these preparation steps MUST be in the first step.
38
+
- Over pre-heating should always be in the first step, or any other long-lead time operation.
38
39
- Extract cooking instructions as an ordered list of clear, actionable steps.
39
40
- Each step should be a complete instruction.
40
41
- Use the exact ingredient name in the instructions when they appear.
@@ -45,5 +46,5 @@ Your task is to analyze images of recipes (from cookbooks, recipe cards, handwri
45
46
46
47
- If the image is unclear or text is illegible, make reasonable inferences based on context.
47
48
- If multiple recipes appear in the input, extract only the first/primary recipe.
48
-
- Preserve the original ingredient names as closely as possible (the system will match them to a database) but without preparation descriptions.
49
+
- Preserve the original ingredient names as closely as possible (the system will match them to a database) but without preparation descriptions. The preparation instructions are part of the recipe steps.
49
50
- For ingredients with no clear quantity (e.g., "salt to taste"), use quantity: 1 with unit: Count and note in description.
0 commit comments