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 8\nPreparation time: 1 h\nMarinating time: 2 h\nResting time: 24 h\nCooking time: 1 h 10 min\nThe game terrine\n500 g/1 lb 2 oz game, such as\nwild boar, pheasant, venison, etc.\n250 g/8½ oz pork neck\n250 g/8½ oz pork back fat\n500 ml/18 fl oz red wine\n200 g/7 oz liver (chicken,\ncalves' or game)\nI small shallot\n20 ml/4 fl oz Cognac\n125 g/4½ oz cooked foie gras\ngroundnut (peanut) oil\n20 g/3/4 oz salt\n2.5 g/0.09 oz pepper\n2.5 g/0.09 oz caster sugar\n1½½ eggs\n50 g/14 oz shelled pistachios\n50 g/14 oz caul\nThe red onion pickles\nI red onion\n100 ml/3½ fl oz white balsamic\nvinegar\n50 g/14 oz caster (superfine) sugar\nThe Parmesan pastry\n180 g/64 oz plain (all-purpose) flour\n80 g/3 oz ground almonds\n5 g/4 oz salt\n40 g/1½ oz grated Parmesan\n160 g/5% oz soft butter\nI large egg\n20 g/4 oz capers\n20 g/4 oz cornichons\nEquipment\nmincer with a fine blade\nterrine mould or loaf tin\ncooking thermometer (optional)\n10 cm/4 in round pastry cutter\nGame terrine\nwith red onion pickles\nA traditional cold starter in France, game terrine used to be on the menu\nat the Auberge du Pin, my grandmother's restaurant set in the middle of\nthe wild boar hunting grounds. The original version would be presented\n'en croute', encased in hot-water pastry, but I prefer to serve it with\ncrumbly Parmesan pastry rounds.\n1-The game terrine\nRoughly chop the game, pork neck and fat and place in a bowl with the red wine.\nLeave to marinate for about 2 hours. Sauté the liver with the finely chopped shallot\nin a little oil over a medium heat for 2-3 minutes, then add the Cognac and flambé.\nRemove from the heat and drain off the fat. Finely mince the game. pork neck and\nfat and sautéed livers into a large bowl. Add the diced foie gras, salt, pepper, sugar,\neggs and chopped pistachios, then combine thoroughly. Line a loaf tin with the caul,\nleaving the excess to hang over the edges, fill with the terrine mixture, then cover\nwith the excess caul. Press down on the surface with the palm of your hand. Preheat\nthe oven to 160°C (320°F: gas mark 2-3). Cover the terrine with foil, then place\nin a deep roasting tin or baking dish. Pour in enough hot water to come about\nthree-quarters of the way up the sides of the terrine, then bake for about 1 hour;\nif you have a cooking thermometer, insert it into the centre of the terrine to check\nthe temperature - it should be 58°C/137°F. Remove the terrine from the oven and\nthe water bath. Place a rectangular plate or dish on top of the terrine in its mould, then\nweigh down with something heavy (such as a can of food) to compress it as it cools.\nChill in the fridge for at least 24 hours.\n2-The red onion pickles\nPeel and trim the onion, then cut into thin segments. Bring the vinegar, sugar and\n50 ml/1% fl oz of water to the boil in a saucepan, then add the onion. Simmer over\na gentle heat for a few minutes, then remove from the heat and leave to cool.\n3-The Parmesan pastry\nPreheat the oven to 180°C (350°F; gas mark 4). Combine the flour, almonds, salt and\nParmesan in a bowl, then rub in the butter until the mixture is crumbly. Add the\negg and bring the dough together, then mix in the drained and chopped capers and\ncornichons. Roll out the pastry quite thinly, then cut out four 10 cm/4 in circles.\nPlace on a lightly floured baking tray and bake for 10 minutes, or until golden.\n4- Serving\nUnmould the terrine and cut into even slices, then place on top of the pastry rounds.\nTop with some of the red onion pickles and serve immediately.\nTip If you want to make other terrines, the amounts of egg and seasoning you'll need for\n1 kg/24 lb mixture are: I egg. 15 g/½ oz salt. 2g/0.07 oz pepper and 2g/0.07 oz caster\n(superfine) sugar.\nClassics\n189"
}
json
{
"NbPersons": 8,
"Language": "en",
"Category": "starter",
"Title": "Game terrine with red onion pickles",
"Subtitle": "A traditional cold starter in France",
"Preparation_Time": 150,
"Cooking_Time": 70,
"Difficulty": "medium",
"Ingredients": [
{
"section": "For the recipe",
"ingredients": [
"500 g/1 lb 2 oz game, such as wild boar, pheasant, venison, etc.",
"250 g/8½ oz pork neck",
"250 g/8½ oz pork back fat",
"500 ml/18 fl oz red wine",
"200 g/7 oz liver (chicken, calves' or game)",
"1 small shallot",
"20 ml/4 fl oz Cognac",
"125 g/4½ oz cooked foie gras",
"groundnut (peanut) oil",
"20 g/3/4 oz salt",
"2.5 g/0.09 oz pepper",
"2.5 g/0.09 oz caster sugar",
"1½½ eggs",
"50 g/14 oz shelled pistachios",
"50 g/14 oz caul"
]
},
{
"section": "For the red onion pickles",
"ingredients": [
"1 red onion",
"100 ml/3½ fl oz white balsamic vinegar",
"50 g/14 oz caster (superfine) sugar"
]
},
{
"section": "For the Parmesan pastry",
"ingredients": [
"180 g/64 oz plain (all-purpose) flour",
"80 g/3 oz ground almonds",
"5 g/4 oz salt",
"40 g/1½ oz grated Parmesan",
"160 g/5% oz soft butter",
"1 large egg",
"20 g/4 oz capers",
"20 g/4 oz cornichons"
]
}
],
"Description": "Game terrine used to be on the menu at the Auberge du Pin, my grandmother's restaurant set in the middle of the wild boar hunting grounds.",
"Instructions": [
"1-The game terrine: Roughly chop the game, pork neck and fat and place in a bowl with the red wine. Leave to marinate for about 2 hours.",
"Sauté the liver with the finely chopped shallot in a little oil over a medium heat for 2-3 minutes, then add the Cognac and flambé.",
"Remove from the heat and drain off the fat.",
"Finely mince the game, pork neck and fat and sautéed livers into a large bowl.",
"Add the diced foie gras, salt, pepper, sugar, eggs and chopped pistachios, then combine thoroughly.",
"Line a loaf tin with the caul, leaving the excess to hang over the edges, fill with the terrine mixture, then cover with the excess caul.",
"Press down on the surface with the palm of your hand.",
"Preheat the oven to 160°C (320°F: gas mark 2-3).",
"Cover the terrine with foil, then place in a deep roasting tin or baking dish.",
"Pour in enough hot water to come about three-quarters of the way up the sides of the terrine, then bake for about 1 hour; if you have a cooking thermometer, insert it into the centre of the terrine to check the temperature - it should be 58°C/137°F.",
"Remove the terrine from the oven and the water bath.",
"Place a rectangular plate or dish on top of the terrine in its mould, then weigh down with something heavy (such as a can of food) to compress it as it cools.",
"Chill in the fridge for at least 24 hours.",
"2-The red onion pickles: Peel and trim the onion, then cut into thin segments.",
"Bring the vinegar, sugar and 50 ml/1% fl oz of water to the boil in a saucepan, then add the onion.",
"Simmer over a gentle heat for a few minutes, then remove from the heat and leave to cool.",
"3-The Parmesan pastry: Preheat the oven to 180°C (350°F; gas mark 4).",
"Combine the flour, almonds, salt and Parmesan in a bowl, then rub in the butter until the mixture is crumbly.",
"Add the egg and bring the dough together, then mix in the drained and chopped capers and cornichons.",
"Roll out the pastry quite thinly, then cut out four 10 cm/4 in circles.",
"Place on a lightly floured baking tray and bake for 10 minutes, or until golden.",
"4- Serving: Unmould the terrine and cut into even slices, then place on top of the pastry rounds.",
"Top with some of the red onion pickles and serve immediately.",
"Tip: If you want to make other terrines, the amounts of egg and seasoning you'll need for 1 kg/24 lb mixture are: 1 egg, 15 g/½ oz salt, 2g/0.07 oz pepper and 2g/0.07 oz caster (superfine) sugar."
],
"AuthorName": "unknown",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}