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": "For children\nFor 4\nPreparation time: 25 min\nResting time: 4 h\nCooking time: 5 min\nzest of 1 unwaxed lemon\n100 g/3½½ oz butter\n250 g/8½ oz plain (all-purpose) flour\n5 g/4 oz baking powder\n6 egg yolks\n75 g/2 oz caster (superfine) sugar\n1/4 teaspon fine salt\n2 teaspoons vanilla sugar\n25 ml/1 fl oz rum\n2 litres/3½ pints groundnut (peanut)\nor sunflower oil for deep-frying\nicing (confectioners') sugar\nEquipment\ncooking thermometer\nLyonnaise Mardi Gras\ndoughnuts\nA traditional treat for Mardi Gras. Children love helping to make the\ndough and cutting out the doughnuts.\n1- The dough\nFinely chop the lemon zest. Melt the butter in a saucepan over a gentle heat. Sift the\nflour into a bowl, then mix in the baking powder. In another bowl, mix together the\negg yolks, sugar, salt, vanilla sugar and lemon zest, then add the rum, the sifted flour\nand baking powder and, finally, the melted butter. Mix just long enough to form a\nsmooth dough, then cover the bowl with cling film and leave the dough to chill in\nthe fridge for 4 hours.\n2- Cooking the doughnuts\nIn a saucepan or deep-fryer, heat the oil to 180°C/350°F. While it is heating, roll\nout the dough on a work surface to a thickness of 2-3 mm/ in and cut into lozenge\nshapes. Drop the doughnuts into the hot oil and cook for 3 minutes, then turn them\nover and cook for about another 3 minutes, or until crisp and golden. Remove with\na slotted spoon and drain on kitchen paper to remove the excess oil. Sprinkle with\nicing sugar and serve hot.\nTip If you don't have a cooking thermometer to check the temperature of the oil, drop a small\npiece of bread into it: it should sizzle and colour rapidly. If it doesn't, let the oil heat up a little\nmore and then check it again.\nBe careful You can prepare the dough with the children in the kitchen, but for safety reasons\nit's best to keep them out of the way when cooking the doughnuts in the hot oil.\n409"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "dessert",
"Title": "Lyonnaise Mardi Gras doughnuts",
"Subtitle": "A traditional treat for Mardi Gras.",
"Preparation_Time": 25,
"Cooking_Time": 6,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"zest of 1 unwaxed lemon",
"100 g/3½½ oz butter",
"250 g/8½ oz plain (all-purpose) flour",
"5 g/4 oz baking powder",
"6 egg yolks",
"75 g/2 oz caster (superfine) sugar",
"1/4 teaspoon fine salt",
"2 teaspoons vanilla sugar",
"25 ml/1 fl oz rum",
"2 litres/3½ pints groundnut (peanut) or sunflower oil for deep-frying",
"icing (confectioners') sugar"
]
}
],
"Description": "A traditional treat for Mardi Gras. Children love helping to make the dough and cutting out the doughnuts.",
"Instructions": [
"1- The dough",
"Finely chop the lemon zest. Melt the butter in a saucepan over a gentle heat. Sift the flour into a bowl, then mix in the baking powder. In another bowl, mix together the egg yolks, sugar, salt, vanilla sugar and lemon zest, then add the rum, the sifted flour and baking powder and, finally, the melted butter. Mix just long enough to form a smooth dough, then cover the bowl with cling film and leave the dough to chill in the fridge for 4 hours.",
"2- Cooking the doughnuts",
"In a saucepan or deep-fryer, heat the oil to 180°C/350°F. While it is heating, roll out the dough on a work surface to a thickness of 2-3 mm/in and cut into lozenge shapes. Drop the doughnuts into the hot oil and cook for 3 minutes, then turn them over and cook for about another 3 minutes, or until crisp and golden. Remove with a slotted spoon and drain on kitchen paper to remove the excess oil. Sprinkle with icing sugar and serve hot.",
"Tip If you don't have a cooking thermometer to check the temperature of the oil, drop a small piece of bread into it: it should sizzle and colour rapidly. If it doesn't, let the oil heat up a little more and then check it again.",
"Be careful You can prepare the dough with the children in the kitchen, but for safety reasons it's best to keep them out of the way when cooking the doughnuts in the hot oil."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}