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": "PARIS GRENOBLE\nDESSERTS 221\nAUX LYONNAIS\nTHE WINE\nA SWEET WHITE RHÔNE WINE, SUCH AS\nMUSCAT DE BEAUMES DE VENISE\nMAKE THE CHOUX\nPASTE\nCIRCLES\nPreheat the oven to 165°C - 330°F (gas mark 3). Combine the milk,\nbutter, sugar, salt, and 250ml - 1 cup water in a saucepan and\nbring to a boil. Add the flour and mix briskly for 2 minutes over\nthe heat. Transfer the mixture to a large bowl and add one egg at\na time, mixing until smooth before adding the next egg. Transfer\nthe mixture to a pastry (piping) bag fitted with a fluted tip (nozzle).\nPipe four 8cm- - 3 1/4 inch-diameter circles on a baking sheet lined\nwith parchment paper and sprinkle with the chopped walnuts. Bake\nfor 20 minutes.\nMAKE THE PASTRY CREAM\nCombine the milk with 25g - 0.88 ounce (2 tablespoons) sugar in\na saucepan and bring to a boil. Briskly beat the egg yolks with the\nremaining sugar in a bowl until pale, then add the flour and corn-\nstarch. Add this mixture to the saucepan with the milk and sugar and\nbring to a boil. Boil for 2 minutes, then transfer to a bowl. Cover.\nwith plastic wrap and refrigerate.\nMAKE THE\nPRALINE\nPreheat the oven to 165 °C - 330°F (gas mark 3). Put the almonds\nand walnuts onto a baking sheet and toast lightly in the oven for\nabout 5 minutes. Make a dark caramel by cooking the sugar with\n80ml 1/3 cup water in a saucepan. Add the toasted nuts and mix\nto coat well with the caramel. Let cool. Set aside 50g 1.76 ounces\n(about 1/2 cup) caramelized nuts for finishing, and grind the rest of\nthe nuts in a food processor to make the praline.\nFINISHING\nMix the butter with 150g - 5.29 ounces (1/2 cup) pastry cream. Add\n65g 2.29 ounces (1/3 cup) praline and transfer to a pastry bag\nfitted with a fluted tip (nozzle). Use a serrated knife to cut across\neach choux circle. Add one-quarter reserved caramelized nuts and\na little praline to each bottom circle. Pipe* the pastry cream over\nthe bottom circles three times, then cover with the lids and sprinkle\nwith confectioners' sugar.\nSERVES 4\nPREPARATION: 1 HOUR\nCOOKING: 30 MINUTES\nCHOUX PASTE CIRCLES\n250ML 1 CUP MILK\n200G 7 OUNCES (1 3/4 STICKS)\nBUTTER\n10G 0.35 OUNCE (1 TABLESPOON)\nSUGAR\n5G 0.18 OUNCE (1 TEASPOON)\nSALT\n400G\n14.11 OUNCES (3 CUPS\nPLUS 3 1/2 TABLESPOONS) FLOUR\n500G (10 LARGE) EGGS\n10G 0.35 OUNCE (1 TABLESPOON)\nCHOPPED WALNUTS\nPASTRY CREAM\n250ML 1 CUP MILK\n50G 1.76 OUNCES (1/4 CUP)\nSUGAR\n45G 1.59 OUNCES\n(3 TABLESPOONS) EGG YOLKS\n(3 MEDIUM)\n20G 0.71 OUNCE\n(2 1/2 TABLESPOONS) FLOUR\n8G 0.28 OUNCE (1 TABLESPOON)\nCORNSTARCH\nPRALINE\n250G 8.82 OUNCES (1 3/4 CUPS)\nBLANCHED ALMONDS\n250G 8.82 OUNCES (2 CUPS)\nCHOPPED WALNUTS\n130G 4.59 OUNCES\n(2/3 CUP) SUGAR\nFINISHING\n125G 4.14 OUNCES (1 STICK PLUS\n1 TABLESPOON) BUTTER\nCONFECTIONERS' SUGAR"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "dessert",
"Title": "Choux Paste Circles",
"Subtitle": "A sweet white Rhône wine, such as Muscat de Beaumes de Venise",
"Preparation_Time": 60,
"Cooking_Time": 30,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"250ml 1 cup milk",
"200g 7 ounces (1 3/4 sticks) butter",
"10g 0.35 ounce (1 tablespoon) sugar",
"5g 0.18 ounce (1 teaspoon) salt",
"400g 14.11 ounces (3 cups plus 3 1/2 tablespoons) flour",
"500g (10 large) eggs",
"10g 0.35 ounce (1 tablespoon) chopped walnuts",
"250ml 1 cup milk",
"50g 1.76 ounces (1/4 cup) sugar",
"45g 1.59 ounces (3 tablespoons) egg yolks (3 medium)",
"20g 0.71 ounce (2 1/2 tablespoons) flour",
"8g 0.28 ounce (1 tablespoon) cornstarch",
"250g 8.82 ounces (1 3/4 cups) blanched almonds",
"250g 8.82 ounces (2 cups) chopped walnuts",
"130g 4.59 ounces (2/3 cup) sugar",
"125g 4.14 ounces (1 stick plus 1 tablespoon) butter",
"confectioners' sugar"
]
}
],
"Description": "A delightful dessert featuring delicate choux pastry filled with creamy pastry cream and adorned with praline and caramelized nuts.",
"Instructions": [
"Preheat the oven to 165°C - 330°F (gas mark 3).",
"Combine the milk, butter, sugar, salt, and 250ml - 1 cup water in a saucepan and bring to a boil.",
"Add the flour and mix briskly for 2 minutes over the heat.",
"Transfer the mixture to a large bowl and add one egg at a time, mixing until smooth before adding the next egg.",
"Transfer the mixture to a pastry (piping) bag fitted with a fluted tip (nozzle).",
"Pipe four 8cm- - 3 1/4 inch-diameter circles on a baking sheet lined with parchment paper and sprinkle with the chopped walnuts.",
"Bake for 20 minutes.",
"Combine the milk with 25g - 0.88 ounce (2 tablespoons) sugar in a saucepan and bring to a boil.",
"Briskly beat the egg yolks with the remaining sugar in a bowl until pale, then add the flour and corn-starch.",
"Add this mixture to the saucepan with the milk and sugar and bring to a boil.",
"Boil for 2 minutes, then transfer to a bowl.",
"Cover with plastic wrap and refrigerate.",
"Preheat the oven to 165 °C - 330°F (gas mark 3).",
"Put the almonds and walnuts onto a baking sheet and toast lightly in the oven for about 5 minutes.",
"Make a dark caramel by cooking the sugar with 80ml 1/3 cup water in a saucepan.",
"Add the toasted nuts and mix to coat well with the caramel.",
"Let cool.",
"Set aside 50g 1.76 ounces (about 1/2 cup) caramelized nuts for finishing, and grind the rest of the nuts in a food processor to make the praline.",
"Mix the butter with 150g - 5.29 ounces (1/2 cup) pastry cream.",
"Add 65g 2.29 ounces (1/3 cup) praline and transfer to a pastry bag fitted with a fluted tip (nozzle).",
"Use a serrated knife to cut across each choux circle.",
"Add one-quarter reserved caramelized nuts and a little praline to each bottom circle.",
"Pipe the pastry cream over the bottom circles three times, then cover with the lids and sprinkle with confectioners' sugar."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}