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 6\nPreparation time: 1 h\nMarinating time: 30 min\nCooking time: about I h\nResting time: 24 h\nThe duck foie gras terrine\nI lobe of fresh duck foie gras, about\n500-600 g/1 lb 2 oz-1 lb 5 oz\n9 g/0.3 oz salt (15 g/0.5 oz per\n1 kg/24 lb foie gras)\nI g/0.03 oz pepper (2 g/0.07 oz per\n1 kg/24 lb foie gras)\nI g/0.03 oz caster sugar (2 g/0.07 oz\nper 1 kg/24 lb foie gras)\n50 ml/14 fl oz Rivesaltes\nThe rhubarb and tarragon\ncompote\n4 stalks red rhubarb\n40 g/1½ oz caster (superfine) sugar\nsprig of tarragon + a few extra leaves\nfine salt\nFinishing off\nfleur de sel\nfreshly ground pepper\n6 slices of good toast (sourdough\nor pain de campagne)\nEquipment\nterrine mould or loaf tin\nDuck foie gras terrine\nwith rhubarb\nand tarragon compote\nThis foie gras and Rivesaltes terrine, a relative of the more traditional\nterrine, is a signature dish in my restaurant. I have pared back the spicing\nin order to preserve the magnificent flavour of the duck foie gras, then\npartnered the terrine with a rhubarb and tarragon compote, which adds\na sharp yet sweet note that contrasts with the softness of the foie gras.\nThe play of flavours is what makes this dish so special.\n1-The duck foie gras terrine\nWeigh the foie gras. Based on that, work out the exact weight of salt, pepper and sugar\nrequired and mix them together in a small bowl. Remove the nerves from the foie gras,\nthen separate the large and small lobes. Place them on a work surface, cut-side facing up\nand, using a small knife, carefully remove all the veins. A word of warning: in the large\nlobe, there will be two groups of veins, one on the surface and one much more deeply\nburied; you need to remove the first and then dig out the second - you will need to cut\nthrough the foie to do this, but try to do as little damage as you can. Place the lobes\non a sheet of baking parchment or in a dish and season with the salt-pepper-sugar\nmixture, then pour over the Rivesaltes. Cover with cling film and leave to marinate for\nat least 30 minutes. Preheat the oven to 120°C (250°F; gas mark 4-2). Put the foie gras,\nuncut-side down, in a terrine mould or loaf tin, the press it down a little with your hand\nto remove any excess air. Cover the terrine with a lid or foil, then place in a deep roasting\ntin or baking dish. Pour in enough hot water to come about three-quarters of the way up\nthe sides of the terrine, then bake for about 10 minutes for every 100 g/3½ oz foie gras.\nRemove the terrine from the oven and the water bath. Place a rectangular plate or dish on\ntop of the terrine in its mould, then weigh down with something heavy (such as a can of\nfood) to compress it as it cools. Chill in the fridge for at least 24 hours. (See step-by-step\nmethod on p. 192.)\n2-The rhubarb and tarragon compote\nWash and trim the rhubarb stalks, then cut into pieces. Put the rhubarb into\na frying pan or saucepan with the sugar and cook over a gentle heat until very soft.\nRemove from the heat and add the tarragon sprig, then cover and leave to infuse for\na few minutes. Adjust the seasoning with a little salt, then remove the tarragon sprig\nand leave to cool. When the compote is completely cold, add a few extra chopped\ntarragon leaves.\n3-Serving\nDip the bottom of the terrine mould or loaf tin in very hot water for 4-5 seconds,\nthen unmould onto a board and slice evenly. Sprinkle a little fleur de sel and\nsome freshly ground pepper on each slice. Place on plates with some toast\nand a little rhubarb compote, then serve immediately (the foie gras will discolour\nrapidly once sliced).\nClassics\n191"
}
json
{
"NbPersons": 6,
"Language": "en",
"Category": "main",
"Title": "Duck foie gras terrine with rhubarb and tarragon compote",
"Subtitle": "A signature dish from the restaurant.",
"Preparation_Time": 30,
"Cooking_Time": 60,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"1 lobe of fresh duck foie gras, about 500-600 g/1 lb 2 oz-1 lb 5 oz",
"9 g/0.3 oz salt (15 g/0.5 oz per 1 kg/24 lb foie gras)",
"1 g/0.03 oz pepper (2 g/0.07 oz per 1 kg/24 lb foie gras)",
"1 g/0.03 oz caster sugar (2 g/0.07 oz per 1 kg/24 lb foie gras)",
"50 ml/14 fl oz Rivesaltes",
"4 stalks red rhubarb",
"40 g/1½ oz caster (superfine) sugar",
"sprig of tarragon + a few extra leaves",
"fine salt",
"fleur de sel",
"freshly ground pepper",
"6 slices of good toast (sourdough or pain de campagne)"
]
}
],
"Description": "This foie gras and Rivesaltes terrine, a relative of the more traditional terrine, is a signature dish in my restaurant. I have pared back the spicing in order to preserve the magnificent flavour of the duck foie gras, then partnered the terrine with a rhubarb and tarragon compote, which adds a sharp yet sweet note that contrasts with the softness of the foie gras. The play of flavours is what makes this dish so special.",
"Instructions": [
"Weigh the foie gras. Based on that, work out the exact weight of salt, pepper and sugar required and mix them together in a small bowl.",
"Remove the nerves from the foie gras, then separate the large and small lobes.",
"Place them on a work surface, cut-side facing up and, using a small knife, carefully remove all the veins.",
"A word of warning: in the large lobe, there will be two groups of veins, one on the surface and one much more deeply buried; you need to remove the first and then dig out the second - you will need to cut through the foie to do this, but try to do as little damage as you can.",
"Place the lobes on a sheet of baking parchment or in a dish and season with the salt-pepper-sugar mixture, then pour over the Rivesaltes.",
"Cover with cling film and leave to marinate for at least 30 minutes.",
"Preheat the oven to 120°C (250°F; gas mark 4-2).",
"Put the foie gras, uncut-side down, in a terrine mould or loaf tin, then press it down a little with your hand to remove any excess air.",
"Cover the terrine with a lid or 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 10 minutes for every 100 g/3½ oz foie gras.",
"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. (See step-by-step method on p. 192.)",
"Wash and trim the rhubarb stalks, then cut into pieces.",
"Put the rhubarb into a frying pan or saucepan with the sugar and cook over a gentle heat until very soft.",
"Remove from the heat and add the tarragon sprig, then cover and leave to infuse for a few minutes.",
"Adjust the seasoning with a little salt, then remove the tarragon sprig and leave to cool.",
"When the compote is completely cold, add a few extra chopped tarragon leaves.",
"Dip the bottom of the terrine mould or loaf tin in very hot water for 4-5 seconds, then unmould onto a board and slice evenly.",
"Sprinkle a little fleur de sel and some freshly ground pepper on each slice.",
"Place on plates with some toast and a little rhubarb compote, then serve immediately (the foie gras will discolour rapidly once sliced)."
],
"AuthorName": "Unknown",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}