Goal
Objectif est d'extraire et structurer les informations d'une recette de cuisine sous forme d'un objet JSON sans jamais modifier le texte d'origine.
code
Assistant
1. Identification et extraction des informations demandées.
2. Calcul des temps de préparation et de cuisson si non précisés.
3. Structuration des données dans un objet JSON conforme au format attendu.
4. Respect strict de la langue d'origine et du texte des instructions.
5. Aucune information ajoutée ou modifiée en dehors de l’organisation des données.
Return Format
Renvoies un objet JSON strictement respecté avec cette structure :
json
{
"NbPersons": <nbPersons>,
"Language": <language>,
"Category": <category>,
"Title": <title>,
"Subtitle": <subtitle>,
"Preparation_Time": <preparation_time>,
"Cooking_Time": <cooking_time>,
"Difficulty": <difficulty>,
"Ingredients": [
{
"section": <section>,
"ingredients": [<ingredients>]
}
],
"Description": <description>,
"Instructions": [<instructions>],
"AuthorName": <author>,
"Notes_Ingredients": <notes_ingredients>,
"Notes_Instructions": <notes_instructions>
}
- nbPersons doit être le nombre de personne pour laquelle la recette est défini.
- language doit être le code ISO 639 de la langue de la recette
- category doit être "drinks" si c'est du liquide parmis cette liste (thé, café, jus de fruit, cocktail). Sinon choisis la meilleure option parmis (bread, appetizer, starter, main, dessert, breakfast, snack, teatime, jam, sauce)
- title doit être le nom de la recette
- subtitle doit être un complément du nom de la recette.
- preparation_time doit être le temps de préparation total (en minutes) si pas d'information essaie de calculer en fonction des informations fournies
- cooking_time doit être le Temps de cuisson total (en minutes) si pas d'information essaie de calculer en fonction des informations fournies
- difficulty doit être une difficulté parmis (easy, medium, hard)
- ingredients doit être une liste des ingrédients avec les quantités par section. Exemple: {section: "Pour la sauce", ingredients: ["1 kg de beurre"]}. Si absence d'information pour la section, tu mettras "Pour la recette".
- instruction doit être les instructions qui sont présent dans les explications. Précises bien en détails ce qui est écris pour les instructions. Fais attention à respecter l'ordre des instructions. C'est une liste de string.
- description doit être une présentation qui donne envie de faire la recette.
- notes_ingredients doit être les détails importants qui sont précisé concernant les ingrédients (ingrédient facultatif, remplacement d'un ingrédient par un autre ingrédient...)
- notes_instructions doit être les détails important qui sont précisé concernant les étapes pour faire la recette (actuces, conseils...)
Warnings
- Ne modifie aucun texte d'origine (titre, description, ingrédients, instructions).
- Ne traduis pas la langue de la recette, elle doit être identifiée et conservée.
- Les instructions doivent être strictement identiques à l'original, sans reformulation.
- Si une information est absente, laisse le champ vide, sans ajout d’invention.
- Les quantités d’ingrédients doivent rester sous forme de liste de chaînes de caractères.
- Respecte le format JSON exact et assure-toi qu’il soit bien formatté.
Context Dump
Texte source fourni :
{
"explication": "APPLE TURNOVER\nMakes 10 turnovers\nPreparation time: 3 hours\nCooking time: 20 minutes\nResting time: 1 hour 30 minutes plus 2 hours\nFor the croissant dough\n7% cups (1 kg) cake flour\n1 large (50 g) egg\n(3% tablespoons)\n% (45 g) cake yeast, or 5 teaspoons active dry yeast\n(dissolved in milk or water)\n1 tablespoon (18 g) salt\n½ cup (100 g) superfine sugar\n1 tablespoon (20 g) honey\n5 tablespoons (70 g) unsalted\nbutter, at room temperature\n13 cups (14 ounces/400 g) unsalted\ndry butter (84% fat content)\nFor the filling\n5 apples, traditional varieties\n1 cup packed (200 g) light brown sugar\n% teaspoon (1 g) ground cinnamon\nFor the egg wash\n9 large (150 g) egg yolks (% cup)\n3 tablespoons (45 g) whipping cream\n1½ teaspoons (10 g) honey\nFor the croissant dough\nMake a croissant dough following the directions on this page, using 1% cups (420 g) of water. Using a rolling pin, roll out the dough to a thickness of\n1/4 inch (5 mm), then cut out the turnovers using a cookie cutter.\nFor the filling\nPeel, halve, and core the apples. Dip each apple half into the brown sugar-cinnamon mixture.\nFor the egg wash\nIn a bowl, whisk together the egg yolks, cream, and honey, and strain through a conical sieve.\nFor assembly and finishing\nPlace each coated apple half in a dough circle, and close like ravioli, wetting the edges slightly so that they seal together. Place the turnovers on a\nbaking sheet lined with parchment paper. Brush with the egg wash (reserving half). Refrigerate for 2 hours.\nPreheat the oven to 350°F (175°C). Remove the turnovers from the refrigerator, brush with a second layer of the egg wash, and use the back of a\nknife to create the lines. Bake in the oven for 20 minutes, then cool on a rack."
}
json
{
"NbPersons": 10,
"Language": "en",
"Category": "dessert",
"Title": "APPLE TURNOVER",
"Subtitle": "",
"Preparation_Time": 180,
"Cooking_Time": 20,
"Difficulty": "medium",
"Ingredients": [
{
"section": "For the croissant dough",
"ingredients": [
"7% cups (1 kg) cake flour",
"1 large (50 g) egg",
"(3% tablespoons)",
"% (45 g) cake yeast, or 5 teaspoons active dry yeast (dissolved in milk or water)",
"1 tablespoon (18 g) salt",
"½ cup (100 g) superfine sugar",
"1 tablespoon (20 g) honey",
"5 tablespoons (70 g) unsalted butter, at room temperature",
"13 cups (14 ounces/400 g) unsalted dry butter (84% fat content)"
]
},
{
"section": "For the filling",
"ingredients": [
"5 apples, traditional varieties",
"1 cup packed (200 g) light brown sugar",
"% teaspoon (1 g) ground cinnamon"
]
},
{
"section": "For the egg wash",
"ingredients": [
"9 large (150 g) egg yolks (% cup)",
"3 tablespoons (45 g) whipping cream",
"1½ teaspoons (10 g) honey"
]
}
],
"Description": "A delightful mix of flaky pastry and sweet apple filling, these apple turnovers are the perfect treat for any occasion.",
"Instructions": [
"Make a croissant dough following the directions on this page, using 1% cups (420 g) of water.",
"Using a rolling pin, roll out the dough to a thickness of 1/4 inch (5 mm), then cut out the turnovers using a cookie cutter.",
"Peel, halve, and core the apples.",
"Dip each apple half into the brown sugar-cinnamon mixture.",
"In a bowl, whisk together the egg yolks, cream, and honey, and strain through a conical sieve.",
"Place each coated apple half in a dough circle, and close like ravioli, wetting the edges slightly so that they seal together.",
"Place the turnovers on a baking sheet lined with parchment paper.",
"Brush with the egg wash (reserving half).",
"Refrigerate for 2 hours.",
"Preheat the oven to 350°F (175°C).",
"Remove the turnovers from the refrigerator, brush with a second layer of the egg wash, and use the back of a knife to create the lines.",
"Bake in the oven for 20 minutes, then cool on a rack."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}