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": "BENOIT\nAPPETIZERS 37\nTERRINE\nOF DUCK FOIE GRAS CONFIT\nwith Toasted Parisian Brioche\nTHE WINE: A SWEET WHITE WINE FROM THE SOUTHWEST, SUCH AS PACHERENC DU VIC BILH\nMAKE THE FOIE GRAS\nPlace the lobe on a sheet of parchment paper and season with salt\nand pepper. Cover with plastic wrap and set in the refrigerator for 3\nhours. Transfer the foie gras to a terrine dish. Cover the surface with\nplastic wrap and set aside* in the refrigerator for 24 hours.\nTake the dish out of the refrigerator 30 minutes before cooking and\npreheat the oven to 100°C - 225°F (gas mark 1/4). Place the dish in\na bain-marie and put into the oven. Insert a probe thermometer and\ncook until the internal temperature reaches 50°C - 122°F. Take the\ndish out of the bain-marie, pour out the fat into a casserole, and let\nit harden; refrigerate. Rest the foie gras at room temperature for 2\nhours. Cover the foie gras with plastic wrap and place thin, flat pieces\nof wood over it. Top with a weight of about 250g - 8.82 ounces to\ncompact it well. Refrigerate for 24 hours.\nLoosen the fat from the casserole and remove any sediment that has\nsettled at the bottom. Melt the fat and filter it through a fine conical\nstrainer (sieve) into a bowl. Use a spatula (scraper) to smooth the\nsurface of the terrine and ensure the edges are even, then pour the\nfat over the top. Cover the terrine dish with its lid and rest in the\nrefrigerator for 3 to 4 days before serving.\nMAKE THE BRIOCHE\nCombine the flour, salt, yeast, and sugar in a stand mixer and mix\nusing the dough hook attachment. Add the eggs, one at a time, and\ncontinue to mix until a smooth dough forms. Cube the butter. When\nthe dough comes away from the sides of the bowl, add the butter,\nthen knead by hand until the dough is smooth and even. Wrap the\ndough in plastic wrap and rest for about 12 hours in the refrigerator.\nDivide the dough into 70g - 2.47 ounce balls. Shape the head of the\nbrioches by squeezing with your thumb and index finger two-thirds of\nthe way up the ball. Grease brioche molds with butter and dust with\nflour, then put a ball in each mold. Let rise at room temperature for\n40 minutes. Preheat the oven to 180°C - 350°F (gas mark 4). Beat\nthe egg yolk. Brush the tops of the brioches with the egg yolk to\nglaze, and bake for 20 minutes. Set aside on a rack.\nFINISHING\nHalve the brioches and toast them. Cut two thick slices of foie gras\nterrine and arrange on a plate. Sprinkle with fleur de sel and freshly\nground pepper. Serve the brioches separately.\nSERVES 4\nPREPARATION: 45 MINUTES\nCOOKING: 50 MINUTES\nRESTING: 3 HOURS 5-6 DAYS\n1 LOBE RAW DUCK FOIE GRAS,\nDEVEINED\n7G 0.25 OUNCE (1 TEASPOON)\nSALT\n1.5G 0.05 OUNCE (3/4\nTEASPOON) FRESHLY GROUND WHITE\nPEPPER\n250G\n8.82 OUNCES (2 CUPS PLUS\n4 TEASPOONS) TYPE 45 FLOUR, PLUS\nMORE FOR DUSTING\n6G 0.21 OUNCE (1 TEASPOON)\nSALT\n20G0.71 OUNCE BAKER'S YEAST\n35G 1.23 OUNCES\n(3 TABLESPOONS) SUGAR\n3 EGGS\n125G 4.41 OUNCES (1 STICK)\nBUTTER AT ROOM TEMPERATURE, PLUS\nMORE FOR GREASING\n1 EGG YOLK\nFLEUR DE SEL\nFRESHLY GROUND PEPPER"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "appetizer",
"Title": "TERRINE OF DUCK FOIE GRAS CONFIT",
"Subtitle": "with Toasted Parisian Brioche",
"Preparation_Time": 45,
"Cooking_Time": 50,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"1 LOBE RAW DUCK FOIE GRAS, DEVEINED",
"7G 0.25 OUNCE (1 TEASPOON) SALT",
"1.5G 0.05 OUNCE (3/4 TEASPOON) FRESHLY GROUND WHITE PEPPER",
"250G 8.82 OUNCES (2 CUPS PLUS 4 TEASPOONS) TYPE 45 FLOUR, PLUS MORE FOR DUSTING",
"6G 0.21 OUNCE (1 TEASPOON) SALT",
"20G 0.71 OUNCE BAKER'S YEAST",
"35G 1.23 OUNCES (3 TABLESPOONS) SUGAR",
"3 EGGS",
"125G 4.41 OUNCES (1 STICK) BUTTER AT ROOM TEMPERATURE, PLUS MORE FOR GREASING",
"1 EGG YOLK",
"FLEUR DE SEL",
"FRESHLY GROUND PEPPER"
]
}
],
"Description": "A luxurious terrine of duck foie gras, perfectly paired with toasted brioche, making it an elegant appetizer for special occasions.",
"Instructions": [
"Place the lobe on a sheet of parchment paper and season with salt and pepper. Cover with plastic wrap and set in the refrigerator for 3 hours.",
"Transfer the foie gras to a terrine dish. Cover the surface with plastic wrap and set aside* in the refrigerator for 24 hours.",
"Take the dish out of the refrigerator 30 minutes before cooking and preheat the oven to 100°C - 225°F (gas mark 1/4).",
"Place the dish in a bain-marie and put into the oven. Insert a probe thermometer and cook until the internal temperature reaches 50°C - 122°F.",
"Take the dish out of the bain-marie, pour out the fat into a casserole, and let it harden; refrigerate.",
"Rest the foie gras at room temperature for 2 hours.",
"Cover the foie gras with plastic wrap and place thin, flat pieces of wood over it. Top with a weight of about 250g - 8.82 ounces to compact it well. Refrigerate for 24 hours.",
"Loosen the fat from the casserole and remove any sediment that has settled at the bottom.",
"Melt the fat and filter it through a fine conical strainer (sieve) into a bowl.",
"Use a spatula (scraper) to smooth the surface of the terrine and ensure the edges are even, then pour the fat over the top.",
"Cover the terrine dish with its lid and rest in the refrigerator for 3 to 4 days before serving.",
"Combine the flour, salt, yeast, and sugar in a stand mixer and mix using the dough hook attachment.",
"Add the eggs, one at a time, and continue to mix until a smooth dough forms.",
"Cube the butter. When the dough comes away from the sides of the bowl, add the butter, then knead by hand until the dough is smooth and even.",
"Wrap the dough in plastic wrap and rest for about 12 hours in the refrigerator.",
"Divide the dough into 70g - 2.47 ounce balls.",
"Shape the head of the brioches by squeezing with your thumb and index finger two-thirds of the way up the ball.",
"Grease brioche molds with butter and dust with flour, then put a ball in each mold.",
"Let rise at room temperature for 40 minutes.",
"Preheat the oven to 180°C - 350°F (gas mark 4).",
"Beat the egg yolk. Brush the tops of the brioches with the egg yolk to glaze, and bake for 20 minutes.",
"Set aside on a rack.",
"Halve the brioches and toast them.",
"Cut two thick slices of foie gras terrine and arrange on a plate.",
"Sprinkle with fleur de sel and freshly ground pepper.",
"Serve the brioches separately."
],
"AuthorName": "BENOIT",
"Notes_Ingredients": "",
"Notes_Instructions": "Resting: 3 HOURS 5-6 DAYS"
}