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": "COUNTRY-STYLE VEGETABLES\nCooked with Pot-au-Feu Broth, Aged Vinegar, and Fleur de Sel\nTHE WINE: A WHITE CORSICAN WINE, SUCH AS PATRIMONIO\nBENOIT\nAPPETIZERS 47\nMAKE THE BEEF\nBROTH\nCompletely defat* the meat. Peel the carrot and celery. Split the\nleek lengthwise and wash thoroughly. Peel and halve the onions\nlengthwise, and char them in a skillet or frying pan.\nBlanch the meat for 5 minutes in boiling water, then rinse in clean\nwater. Put the meat, marrow bone, gray sea salt, carrot, celery, leek,\ncharred onions, peppercorns, and bouquet garni in a stockpot. Place\na piece of parchment paper cut to size over the ingredients to ensure\nthat they remain completely immersed, and cover with water. Simmer*\nfor 4 hours. Filter the broth, one ladle at a time, through a conical\nstrainer (sieve) into a saucepan, then set aside*.\nMAKE THE\nVEGETABLES\nRemove the thick central rib of the cabbage leaves, and cut the leaves\ninto large triangles. Peel and turn* the carrots and turnips, leaving\ntheir greens intact. Halve the celery hearts lengthwise. Thoroughly\nwash the leeks to remove all grit, and trim them to keep only one-\nthird of the green parts. Peel the celeriac. Cut out a 3cm - 1 1/4\ninch-thick slice and cut this into triangles with 5cm - 2 inch sides.\nBring the beef broth to a boil in a saucepan and poach* each veg-\netable separately. Prick with a knife tip to check for doneness: They\nshould be very tender. Shock quickly in ice water, then set aside.\nFINISHING\nReduce the broth and season it well with coarsely ground pepper and\nfleur de sel. Reheat all of the vegetables in it. Transfer the vegetables\nto a serving bowl. Season the reduced broth with the vinegar and\noil. Dress the vegetables with the beef broth vinaigrette.\nSERVES 4\nPREPARATION: 50 MINUTES\nCOOKING: 4 HOURS 30 MINUTES\nBEEF BROTH\n1.5KG 3 POUNDS 4 OUNCES\nBEEF PLATE\n1 CARROT\n1 STALK CELERY\n1 LEEK\n2 YELLOW ONIONS\n1 MARROW BONE\nCOARSE GRAY SEA SALT\n15 BLACK PEPPERCORNS\n1 BOUQUET GARNI\nVEGETABLES\n2 SAVOY CABBAGE LEAVES\n4 MEDIUM CARROTS, WITH GREENS\n4 GOLDEN BALL TURNIPS\n4 PURPLE-TOP WHITE GLOBE TURNIPS\n4 CELERY HEARTS\n4 PENCIL-THIN LEEKS\n200G 7 OUNCES CELERIAC\n(ABOUT 1 MEDIUM)\nFINISHING\nCOARSELY GROUND PEPPER\nFLEUR DE SEL\n100ML 1/3 CUP PLUS\n1 TABLESPOON AGED\nRED WINE VINEGAR\n50ML 3 1/2 TABLESPOONS\nOLIVE OIL"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "appetizer",
"Title": "COUNTRY-STYLE VEGETABLES",
"Subtitle": "Cooked with Pot-au-Feu Broth, Aged Vinegar, and Fleur de Sel",
"Preparation_Time": 50,
"Cooking_Time": 270,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"1.5KG 3 POUNDS 4 OUNCES BEEF PLATE",
"1 CARROT",
"1 STALK CELERY",
"1 LEEK",
"2 YELLOW ONIONS",
"1 MARROW BONE",
"COARSE GRAY SEA SALT",
"15 BLACK PEPPERCORNS",
"1 BOUQUET GARNI",
"2 SAVOY CABBAGE LEAVES",
"4 MEDIUM CARROTS, WITH GREENS",
"4 GOLDEN BALL TURNIPS",
"4 PURPLE-TOP WHITE GLOBE TURNIPS",
"4 CELERY HEARTS",
"4 PENCIL-THIN LEEKS",
"200G 7 OUNCES CELERIAC (ABOUT 1 MEDIUM)",
"COARSELY GROUND PEPPER",
"FLEUR DE SEL",
"100ML 1/3 CUP PLUS 1 TABLESPOON AGED RED WINE VINEGAR",
"50ML 3 1/2 TABLESPOONS OLIVE OIL"
]
}
],
"Description": "A delightful mix of country-style vegetables enhanced by a flavorful pot-au-feu broth, elevating any dining experience.",
"Instructions": [
"Completely defat the meat.",
"Peel the carrot and celery.",
"Split the leek lengthwise and wash thoroughly.",
"Peel and halve the onions lengthwise, and char them in a skillet or frying pan.",
"Blanch the meat for 5 minutes in boiling water, then rinse in clean water.",
"Put the meat, marrow bone, gray sea salt, carrot, celery, leek, charred onions, peppercorns, and bouquet garni in a stockpot.",
"Place a piece of parchment paper cut to size over the ingredients to ensure that they remain completely immersed, and cover with water.",
"Simmer for 4 hours.",
"Filter the broth, one ladle at a time, through a conical strainer (sieve) into a saucepan, then set aside.",
"Remove the thick central rib of the cabbage leaves, and cut the leaves into large triangles.",
"Peel and turn the carrots and turnips, leaving their greens intact.",
"Halve the celery hearts lengthwise.",
"Thoroughly wash the leeks to remove all grit, and trim them to keep only one-third of the green parts.",
"Peel the celeriac.",
"Cut out a 3cm - 1 1/4 inch-thick slice and cut this into triangles with 5cm - 2 inch sides.",
"Bring the beef broth to a boil in a saucepan and poach each vegetable separately.",
"Prick with a knife tip to check for doneness: They should be very tender.",
"Shock quickly in ice water, then set aside.",
"Reduce the broth and season it well with coarsely ground pepper and fleur de sel.",
"Reheat all of the vegetables in it.",
"Transfer the vegetables to a serving bowl.",
"Season the reduced broth with the vinegar and oil.",
"Dress the vegetables with the beef broth vinaigrette."
],
"AuthorName": "BENOIT",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}