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": "POT\nde la Cuisinière Lyonnaise\n(Pork and Foie Gras Terrine)\nAPPETIZERS 61\nAUX LYONNAIS\nMAKE THE HAM HOCK AND FOIE GRAS\nMelt the lard in a Dutch oven (cast-iron casserole), immerse the ham\nhock, and slow-cook (confit) at 90°C - 194°F for 8 hours. Remove\nthe meat, keeping the piece as intact as possible. Remove the skin\nand cut into small dice and set aside*. Cut the ham hock into a\ndice and set aside. Melt the duck fat in a Dutch oven, immerse the\nfoie gras, and confit at 70°C - 158°F until the internal temperature\nreaches 50°C - 122°F, about 15 minutes. Drain the foie gras, let cool\na little, then remove the nerves and veins. Return it to its original\nshape and let cool. Cut into small dice.\nMAKE THE SEASONING\nPeel and slice the onion. Sweat* in 25g - 0.88 ounce (1/4 cup)\nlard without coloring, leaving them a little crunchy. Deglaze* with\nthe vinegar and reduce completely.\nPut the garlic cloves into a saucepan with 75g - 2.65 ounces\n(1/3 cup) lard and confit for 1 hour at about 80°C - 176°F. Drain\nand chop. Grind the peppercorns, thyme, bay leaves, and rosemary\nto a powder.\nFINISHING\nMix the foie gras with the ham hock, skin, ground herbs, garlic\nconfit, and onions, then fill 4 glass jars.\nPut the jars on a kitchen towel in a stockpot filled with cold water\nand sterilize them at about 85°C - 185°F for 30 minutes. Serve with\na slice of toasted pain de campagne.\nSERVES 4\nPREPARATION: 1 HOUR\nCOOKING: 9 HOURS 45 MINUTES\nHAM HOCK AND FOIE GRAS\n900G 2 POUNDS (4 1/3 CUPS) LARD\n1 SEMI-SALTED HAM HOCK\n(PORK KNUCKLE), DESALTED.\n550G1 POUND 3 OUNCES\n(2 2/3 CUPS) DUCK FAT\n350G 12.35 OUNCES RAW\nFOIE GRAS\nSEASONING\n150G 5.29 OUNCES ONIONS\n(1 LARGE OR 2 SMALL)\n100G 3.53 OUNCES (1/2 CUP) LARD\n75ML 5 TABLESPOONS AGED\nWINE VINEGAR\n5 CLOVES GARLIC\n4G 0.14 OUNCE (2 TEASPOONS)\nWHITE PEPPERCORNS\n2G 0.07 OUNCE (3/4 TABLESPOON)\nDRIED THYME\n0.14 OUNCE BAY LEAVES\n4G\n2G 0.07 OUNCE (1 TABLESPOON)\nROSEMARY (DRIED OR FRESH)\n25G0.88 OUNCE SKIN FROM THE\nCOOKED HAM HOCK\nPAIN DE CAMPAGNE, FOR SERVING\nTHE WINE\nA WHITE BURGUNDY, SUCH AS HAUTES-CÔTES-DE-BEAUNE"
}
json
{
"NbPersons": 4,
"Language": "fr",
"Category": "appetizer",
"Title": "POT de la Cuisinière Lyonnaise",
"Subtitle": "(Pork and Foie Gras Terrine)",
"Preparation_Time": 60,
"Cooking_Time": 585,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"900G 2 POUNDS (4 1/3 CUPS) LARD",
"1 SEMI-SALTED HAM HOCK (PORK KNUCKLE), DESALTED.",
"550G 1 POUND 3 OUNCES (2 2/3 CUPS) DUCK FAT",
"350G 12.35 OUNCES RAW FOIE GRAS",
"150G 5.29 OUNCES ONIONS (1 LARGE OR 2 SMALL)",
"100G 3.53 OUNCES (1/2 CUP) LARD",
"75ML 5 TABLESPOONS AGED WINE VINEGAR",
"5 CLOVES GARLIC",
"4G 0.14 OUNCE (2 TEASPOONS) WHITE PEPPERCORNS",
"2G 0.07 OUNCE (3/4 TABLESPOON) DRIED THYME",
"0.14 OUNCE BAY LEAVES",
"2G 0.07 OUNCE (1 TABLESPOON) ROSEMARY (DRIED OR FRESH)",
"25G 0.88 OUNCE SKIN FROM THE COOKED HAM HOCK",
"PAIN DE CAMPAGNE, FOR SERVING"
]
}
],
"Description": "Une délicieuse terrine de porc et de foie gras qui ravira vos convives.",
"Instructions": [
"Melt the lard in a Dutch oven (cast-iron casserole), immerse the ham hock, and slow-cook (confit) at 90°C - 194°F for 8 hours.",
"Remove the meat, keeping the piece as intact as possible.",
"Remove the skin and cut into small dice and set aside*.",
"Cut the ham hock into a dice and set aside.",
"Melt the duck fat in a Dutch oven, immerse the foie gras, and confit at 70°C - 158°F until the internal temperature reaches 50°C - 122°F, about 15 minutes.",
"Drain the foie gras, let cool a little, then remove the nerves and veins.",
"Return it to its original shape and let cool.",
"Cut into small dice.",
"Peel and slice the onion.",
"Sweat* in 25g - 0.88 ounce (1/4 cup) lard without coloring, leaving them a little crunchy.",
"Deglaze* with the vinegar and reduce completely.",
"Put the garlic cloves into a saucepan with 75g - 2.65 ounces (1/3 cup) lard and confit for 1 hour at about 80°C - 176°F.",
"Drain and chop.",
"Grind the peppercorns, thyme, bay leaves, and rosemary to a powder.",
"Mix the foie gras with the ham hock, skin, ground herbs, garlic confit, and onions, then fill 4 glass jars.",
"Put the jars on a kitchen towel in a stockpot filled with cold water and sterilize them at about 85°C - 185°F for 30 minutes.",
"Serve with a slice of toasted pain de campagne."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}