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": "166 POULTRY\nAUX LYONNAIS\nRABBIT CONFIT\nLyon Style\nSERVES 4\nPREPARATION: 1 HOUR\nCOOKING: 2 HOURS 10 MINUTES\nRABBIT\n1 CARROT\n1 ONION\n1 SHALLOT\n1 TABLESPOON PEANUT OIL\n4 LARGE RABBIT LEGS\n1 TABLESPOON FLOUR\nSALT\nFRESHLY GROUND PEPPER\n20G 0.71 OUNCE (1 1/2\nTABLESPOONS) BUTTER\n2 CLOVES GARLIC\n1 SPRIG THYME\n1 SPRIG ROSEMARY\n10 FENNEL SEEDS\n100ML 1/3 CUP PLUS 1 TABLESPOON\nDRY WHITE WINE\n330ML 1 1/3 CUPS BILBERRY-FLAVORED\nBEER\n200ML 3/4 CUP PLUS 2 TABLESPOONS\nVEAL STOCK (SEE P. 246)\nGARNISH\n8 CLOVES PINK GARLIC\n4 TABLESPOONS OLIVE OIL\n25 GREEN AND YELLOW DANDELION\nLEAVES\n8 NEW ONIONS\n1 TABLESPOON PEANUT OIL\nFLEUR DE SEL\n200ML 3/4 CUP PLUS 1 TABLESPOON\nSPRING WATER\nFINISHING\n20 BILBERRIES\n50ML 3 1/2 TABLESPOONS OLIVE OIL\nFLEUR DE SEL\nFRESHLY GROUND PEPPER\nMAKE THE\nRABBIT\nPeel the carrot, onion, and shallot. Halve the vegetables lengthwise\nand again crosswise. Heat the peanut oil in a Dutch oven (cast-iron\ncasserole). Lightly dredge the rabbit legs in flour and season with\nsalt and pepper. Brown the legs on all sides. Add the butter, carrot,\nonion, shallot, garlic, thyme, rosemary, and fennel seeds. Color a\nlittle, then add the wine and reduce by half. Add the beer and veal\nstock. Cover the pan with a lid and simmer for 40 minutes. Stop the\ncooking process when the legs are soft.\nTransfer the legs to a dish. Filter the cooking liquid through a fine\nstrainer (sieve) into a bowl. Wipe out the Dutch oven and return the\nstrained cooking liquid to it. Reduce the liquid to a sauce that is\nalmost thick enough to coat the back of a spoon. Set aside*.\nMAKE THE\nGARNISH\nPeel the garlic cloves, put them into a saucepan, and cover with\ncold water. Bring to a boil. Drain and let cool. Repeat the operation\nanother two times. Put the olive oil into a saucepan and gently confit\nthe garlic for 1 hour 30 minutes at 80°C - 175°F, until soft but whole.\nWash and gently dry the dandelion leaves. Cut off the bases of the\nnew onions and two-thirds of their leaves. Heat the peanut oil in a\nsaucepan and sweat the onions. Season with a little fleur de sel.\nGradually add the spring water, cover the pan, and cook until soft.\nFINISHING\nReturn the legs to the pan with the sauce and gently heat. Add the\nberries, garlic confit, and onions, followed by the dandelion leaves\ndressed with the olive oil. Season with fleur de sel and pepper at\nthe last minute.\nTHE WINE\nA RED BEAUJOLAIS, SUCH AS MOULIN À VENT"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "main",
"Title": "RABBIT CONFIT",
"Subtitle": "Lyon Style",
"Preparation_Time": 60,
"Cooking_Time": 130,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"1 CARROT",
"1 ONION",
"1 SHALLOT",
"1 TABLESPOON PEANUT OIL",
"4 LARGE RABBIT LEGS",
"1 TABLESPOON FLOUR",
"SALT",
"FRESHLY GROUND PEPPER",
"20G 0.71 OUNCE (1 1/2 TABLESPOONS) BUTTER",
"2 CLOVES GARLIC",
"1 SPRIG THYME",
"1 SPRIG ROSEMARY",
"10 FENNEL SEEDS",
"100ML 1/3 CUP PLUS 1 TABLESPOON DRY WHITE WINE",
"330ML 1 1/3 CUPS BILBERRY-FLAVORED BEER",
"200ML 3/4 CUP PLUS 2 TABLESPOONS VEAL STOCK (SEE P. 246)",
"8 CLOVES PINK GARLIC",
"4 TABLESPOONS OLIVE OIL",
"25 GREEN AND YELLOW DANDELION LEAVES",
"8 NEW ONIONS",
"1 TABLESPOON PEANUT OIL",
"FLEUR DE SEL",
"200ML 3/4 CUP PLUS 1 TABLESPOON SPRING WATER",
"20 BILBERRIES",
"50ML 3 1/2 TABLESPOONS OLIVE OIL",
"FLEUR DE SEL",
"FRESHLY GROUND PEPPER"
]
}
],
"Description": "A delicious and traditional dish from Lyon, featuring tender rabbit slow-cooked to perfection with aromatic herbs and accompanied by a rich sauce.",
"Instructions": [
"Peel the carrot, onion, and shallot. Halve the vegetables lengthwise and again crosswise.",
"Heat the peanut oil in a Dutch oven (cast-iron casserole).",
"Lightly dredge the rabbit legs in flour and season with salt and pepper.",
"Brown the legs on all sides.",
"Add the butter, carrot, onion, shallot, garlic, thyme, rosemary, and fennel seeds. Color a little, then add the wine and reduce by half.",
"Add the beer and veal stock.",
"Cover the pan with a lid and simmer for 40 minutes. Stop the cooking process when the legs are soft.",
"Transfer the legs to a dish.",
"Filter the cooking liquid through a fine strainer (sieve) into a bowl.",
"Wipe out the Dutch oven and return the strained cooking liquid to it.",
"Reduce the liquid to a sauce that is almost thick enough to coat the back of a spoon. Set aside*.",
"Peel the garlic cloves, put them into a saucepan, and cover with cold water.",
"Bring to a boil. Drain and let cool.",
"Repeat the operation another two times.",
"Put the olive oil into a saucepan and gently confit the garlic for 1 hour 30 minutes at 80°C - 175°F, until soft but whole.",
"Wash and gently dry the dandelion leaves.",
"Cut off the bases of the new onions and two-thirds of their leaves.",
"Heat the peanut oil in a saucepan and sweat the onions.",
"Season with a little fleur de sel.",
"Gradually add the spring water, cover the pan, and cook until soft.",
"Return the legs to the pan with the sauce and gently heat.",
"Add the berries, garlic confit, and onions, followed by the dandelion leaves dressed with the olive oil.",
"Season with fleur de sel and pepper at the last minute."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}