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": "112 ORGAN MEATS\nAUX LYONNAIS\nTRIPE\nà la Lyonnaise\nSERVES 4\nPREPARATION: 1 HOUR 30 MINUTES\nCOOKING: 5 HOURS 30 MINUTES\nRESTING: 12 HOURS\nTRIPE\n600G 1 POUND 5 OUNCES BEEF TRIPE\n1/2 cow's FOOT\n2 CARROTS\n1 ONION\n2 CLOVES\n1 LEEK\n1.5 LITERS 6 1/3 CUPS SPRING WATER,\nPLUS MORE IF NEEDED\n1 STALK CELERY\n2 CLOVES GARLIC\n1 BAY LEAF\n10 PEPPERCORNS\n10 CORIANDER SEEDS\n2 SPRIGS THYME\n1 SPRIG FLAT-LEAF PARSLEY\nFLEUR DE SEL\nGARNISH\n2 MEDIUM CARROTS\n1 CELERY HEART\n4 NEW ONIONS\n250G 8.82 OUNCES SMALL POTATOES\n50ML 3 1/2 TABLESPOONS OLIVE OIL\n4 SMALL CLOVES GARLIC\n4 SPRIGS THYME\n4 BLACK PEPPERCORNS\nFLEUR DE SEL\nFINISHING\n200ML 3/4 CUP PLUS 1 TABLESPOON\nLIGHT CREAM\n3 EGG YOLKS\n2 TABLESPOONS MUSTARD\nSALT\nPEPPER\nJUICE OF 1/2 LEMON\nFLEUR DE SEL\nMAKE THE TRIPE\nOne day ahead, put the tripe and cow's foot into a bowl with\ncold water to cover and refrigerate for 12 hours.\nThe day of serving, put the tripe and cow's foot into a saucepan\nwith cold water and bring to a boil Skim off the scum, then rinse\nthe tripe and cow's foot in cold water and drain. Peel the carrots\nand onion. Stud the onion with the cloves. Carefully wash and\ntrim the leek. Put the tripe and cow's foot into a large sauce-\npan. Add the water. Bring to a boil, skimming regularly. Add the\ncarrots, onion, leek, celery, crushed garlic, bay leaf, peppercorns,\ncoriander seeds, thyme, parsley, and a little fleur de sel. Simmer*\nfor 5 hours, topping up with spring water, if necessary. Drain the\ntripe and cut it into 4cm - 1 1/2 inch cubes. Filter the cooking\nliquid through a strainer (sieve) into a saucepan. Set aside both\nthe tripe and cooking liquid.\nMAKE THE\nGARNISH\nPeel the carrots and halve lengthwise. Cut into half-rounds. Halve\nthe celery lengthwise. Rinse and trim the new onions. Peel the\npotatoes. Heat the olive oil in a Dutch oven (cast-iron casserole)\nand brown the potatoes. Add the garlic and thyme, followed by\nthe carrots and onions. Moisten with a little tripe cooking liquid.\nAdd the peppercorns and season with fleur de sel. Cover with a\nlid and cook for 15 minutes. Add the celery and cook for another\n10 minutes. Only a little cooking liquid should remain to bind the\ncontents of the pan.\nFINISHING\nReduce the tripe cooking liquid by half in a saucepan. Whisk\ntogether the cream, egg yolks, and mustard.\nGently reheat the tripe in a saucepan. Transfer to the Dutch oven,\nleaving the liquid in the pan. Bring it to a boil, then remove the\npan from the heat, whisk in the mustard and cream mixture, and\ngently reheat. Adjust the seasoning with salt and pepper and pour\nthe sauce over the tripe. Add the lemon juice and vegetables.\nSeason with fleur de sel and pepper.\nTHE WINE\nA WHITE BURGUNDY, SUCH AS SAINT-VERAN"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "main",
"Title": "AUX LYONNAIS",
"Subtitle": "TRIPE à la Lyonnaise",
"Preparation_Time": 90,
"Cooking_Time": 330,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"600G 1 POUND 5 OUNCES BEEF TRIPE",
"1/2 cow's FOOT",
"2 CARROTS",
"1 ONION",
"2 CLOVES",
"1 LEEK",
"1.5 LITERS 6 1/3 CUPS SPRING WATER, PLUS MORE IF NEEDED",
"1 STALK CELERY",
"2 CLOVES GARLIC",
"1 BAY LEAF",
"10 PEPPERCORNS",
"10 CORIANDER SEEDS",
"2 SPRIGS THYME",
"1 SPRIG FLAT-LEAF PARSLEY",
"FLEUR DE SEL"
]
},
{
"section": "GARNISH",
"ingredients": [
"2 MEDIUM CARROTS",
"1 CELERY HEART",
"4 NEW ONIONS",
"250G 8.82 OUNCES SMALL POTATOES",
"50ML 3 1/2 TABLESPOONS OLIVE OIL",
"4 SMALL CLOVES GARLIC",
"4 SPRIGS THYME",
"4 BLACK PEPPERCORNS",
"FLEUR DE SEL"
]
},
{
"section": "FINISHING",
"ingredients": [
"200ML 3/4 CUP PLUS 1 TABLESPOON LIGHT CREAM",
"3 EGG YOLKS",
"2 TABLESPOONS MUSTARD",
"SALT",
"PEPPER",
"JUICE OF 1/2 LEMON",
"FLEUR DE SEL"
]
}
],
"Description": "AUX LYONNAIS is a savory and traditional French dish featuring tripe prepared in a rich and delicious sauce, perfect for warming you up on a chilly evening.",
"Instructions": [
"One day ahead, put the tripe and cow's foot into a bowl with cold water to cover and refrigerate for 12 hours.",
"The day of serving, put the tripe and cow's foot into a saucepan with cold water and bring to a boil.",
"Skim off the scum, then rinse the tripe and cow's foot in cold water and drain.",
"Peel the carrots and onion.",
"Stud the onion with the cloves.",
"Carefully wash and trim the leek.",
"Put the tripe and cow's foot into a large sauce-pan.",
"Add the water.",
"Bring to a boil, skimming regularly.",
"Add the carrots, onion, leek, celery, crushed garlic, bay leaf, peppercorns, coriander seeds, thyme, parsley, and a little fleur de sel.",
"Simmer for 5 hours, topping up with spring water, if necessary.",
"Drain the tripe and cut it into 4cm - 1 1/2 inch cubes.",
"Filter the cooking liquid through a strainer (sieve) into a saucepan.",
"Set aside both the tripe and cooking liquid.",
"Peel the carrots and halve lengthwise.",
"Cut into half-rounds.",
"Halve the celery lengthwise.",
"Rinse and trim the new onions.",
"Peel the potatoes.",
"Heat the olive oil in a Dutch oven (cast-iron casserole) and brown the potatoes.",
"Add the garlic and thyme, followed by the carrots and onions.",
"Moisten with a little tripe cooking liquid.",
"Add the peppercorns and season with fleur de sel.",
"Cover with a lid and cook for 15 minutes.",
"Add the celery and cook for another 10 minutes.",
"Only a little cooking liquid should remain to bind the contents of the pan.",
"Reduce the tripe cooking liquid by half in a saucepan.",
"Whisk together the cream, egg yolks, and mustard.",
"Gently reheat the tripe in a saucepan.",
"Transfer to the Dutch oven, leaving the liquid in the pan.",
"Bring it to a boil, then remove the pan from the heat, whisk in the mustard and cream mixture, and gently reheat.",
"Adjust the seasoning with salt and pepper and pour the sauce over the tripe.",
"Add the lemon juice and vegetables.",
"Season with fleur de sel and pepper."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": "Serve with a white Burgundy, such as Saint-Veran."
}