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": "RAISIN ROLLS\nMakes 12 rolls\nPreparation time: 2 hours\nCooking time: 15 minutes\nResting time: 1 hour 30 minutes plus 3 hours 50 minutes\nFor the puff pastry brioche dough\n7% cups (1 kg) cake flour\n3 tablespoons (25 g) salt\ncup (120 g) superfine sugar\n(40 g) organic cake yeast, or\n1 tablespoons active dry yeast\n(dissolved in water or milk)\n9 large (450 g) eggs (1%/4 cups\nplus 1 tablespoons)\n½ cup (150 g) whole milk\n2% cups (4% sticks/500 g) unsalted butter\nFor the raisins\n1½ cups (200 g) raisins\n2 cups (500 g) warm water\nFor the pastry cream\n4 sheets (or 13 g powdered) gelatin\n1¾ cups plus 2 tablespoons\n(450 g) whole milk\n3% tablespoons (50 g) whipping cream\n2 vanilla beans\n½ cup plus 2 tablespoons (90 g) superfine sugar 4 teaspoons (25 g) custard powder\n3% tablespoons (25 g) all-purpose flour\n5 large (90 g) egg yolks (½ cup)\n2 tablespoons (30 g) cocoa butter\n3% tablespoons (50 g) unsalted butter\n2 tablespoons (30 g) mascarpone cheese\nFor the puff pastry brioche dough\nMake a puff pastry brioche dough following the directions on this page.\nFor the raisins\nPut the raisins into the warm water and let soften for 1 hour.\nFor the pastry cream\nSoak the gelatin in cold water.\nIn a saucepan, heat the milk with the cream. Halve the vanilla beans lengthwise, scrape out the seeds, and add the seeds and pods to the saucepan\nto infuse for 20 minutes. In a bowl, whisk the superfine sugar, custard powder, flour, and egg yolks until pale. Pass the hot milk-cream-vanilla mixture\nthrough a conical sieve, then pour it over the egg yolk mixture. Return to a clean saucepan and cook over medium heat, whisking constantly, for 2\nminutes, until thick. Remove from the heat and add the cocoa butter, then the drained gelatin, butter, and finally the mascarpone. Use an immersion\nblender to mix, then cool rapidly in the refrigerator for about 30 minutes.\nFor assembly and finishing\nRoll the puff pastry brioche dough to a thickness of ½ inch (3.5 mm), then use an offset spatula to spread the pastry cream over the top. Sprinkle the\nplumped raisins over the dough, then roll tightly into a cylinder. Wrap it in parchment paper and freeze for 20 minutes.\nCut the semifrozen cylinder into 1½-inch (4-cm) slices, place them in greased cake rings, cover with a cloth, and let rise at 80°F (26°C) for 2 hours.\nPreheat the oven to 350°F (175°C) and bake in the oven for 15 minutes. Remove from the oven and let cool on a rack."
}
json
{
"NbPersons": 12,
"Language": "en",
"Category": "snack",
"Title": "RAISIN ROLLS",
"Subtitle": "",
"Preparation_Time": 150,
"Cooking_Time": 15,
"Difficulty": "medium",
"Ingredients": [
{
"section": "For the puff pastry brioche dough",
"ingredients": [
"7% cups (1 kg) cake flour",
"3 tablespoons (25 g) salt",
"cup (120 g) superfine sugar",
"(40 g) organic cake yeast, or",
"1 tablespoons active dry yeast",
"(dissolved in water or milk)",
"9 large (450 g) eggs (1%/4 cups plus 1 tablespoons)",
"½ cup (150 g) whole milk",
"2% cups (4% sticks/500 g) unsalted butter"
]
},
{
"section": "For the raisins",
"ingredients": [
"1½ cups (200 g) raisins",
"2 cups (500 g) warm water"
]
},
{
"section": "For the pastry cream",
"ingredients": [
"4 sheets (or 13 g powdered) gelatin",
"1¾ cups plus 2 tablespoons (450 g) whole milk",
"3% tablespoons (50 g) whipping cream",
"2 vanilla beans",
"½ cup plus 2 tablespoons (90 g) superfine sugar",
"4 teaspoons (25 g) custard powder",
"3% tablespoons (25 g) all-purpose flour",
"5 large (90 g) egg yolks (½ cup)",
"2 tablespoons (30 g) cocoa butter",
"3% tablespoons (50 g) unsalted butter",
"2 tablespoons (30 g) mascarpone cheese"
]
}
],
"Description": "Delicious and fluffy raisin rolls that are perfect as a snack or a treat for any occasion. The combination of sweet pastry cream and plumped raisins wrapped in brioche dough creates a delightful bite.",
"Instructions": [
"Make a puff pastry brioche dough following the directions on this page.",
"Put the raisins into the warm water and let soften for 1 hour.",
"Soak the gelatin in cold water.",
"In a saucepan, heat the milk with the cream. Halve the vanilla beans lengthwise, scrape out the seeds, and add the seeds and pods to the saucepan to infuse for 20 minutes.",
"In a bowl, whisk the superfine sugar, custard powder, flour, and egg yolks until pale.",
"Pass the hot milk-cream-vanilla mixture through a conical sieve, then pour it over the egg yolk mixture.",
"Return to a clean saucepan and cook over medium heat, whisking constantly, for 2 minutes, until thick.",
"Remove from the heat and add the cocoa butter, then the drained gelatin, butter, and finally the mascarpone.",
"Use an immersion blender to mix, then cool rapidly in the refrigerator for about 30 minutes.",
"Roll the puff pastry brioche dough to a thickness of ½ inch (3.5 mm), then use an offset spatula to spread the pastry cream over the top.",
"Sprinkle the plumped raisins over the dough, then roll tightly into a cylinder.",
"Wrap it in parchment paper and freeze for 20 minutes.",
"Cut the semifrozen cylinder into 1½-inch (4-cm) slices, place them in greased cake rings, cover with a cloth, and let rise at 80°F (26°C) for 2 hours.",
"Preheat the oven to 350°F (175°C) and bake in the oven for 15 minutes.",
"Remove from the oven and let cool on a rack."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}