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": "24 APPETIZERS\nAUX LYONNAIS\nPISTACHIO CERVELAS\nen Brioche\nSERVES 10\nPREPARATION: 30 MINUTES\nCOOKING: 20 MINUTES\nRESTING: 2 HOURS\nCERVELAS IN BRIOCHE\n250G 8.82 OUNCES (2 CUPS) FLOUR\n20G 0.71 OUNCE (5 TEASPOONS) SUGAR\n12G\n0.42 OUNCE BAKER'S YEAST\nMAKE THE CERVELAS EN\nBRIOCHE\nCombine all the ingredients, except the sausage and egg yolk, in\nthe bowl of a stand mixer equipped with a dough hook. Mix on\nthe lowest speed setting for 4 minutes, then increase the speed to\nthe second setting and mix for 9 minutes. Roll out the dough to a\nthickness of 1.5cm - 5/8 inch. Roll the sausage inside the dough.\nTrim off the excess dough. Rest for 2 hours at room temperature.\nPreheat the oven to 180°C - 350°F. Brush the dough with the egg\n50G - 1.76 OUNCES (3 1/2 TABLESPOONS) yolk. Bake for 20 minutes. Set aside* on a rack.\nBUTTER\n135G 4.76 OUNCES (1/2 CUP\nPLUS 1 TABLESPOON) MILK\n5G 0.18 OUNCE (1 TEASPOON) SALT\n1 PISTACHIO CERVELAS SAUSAGE, COOKED\n1 EGG YOLK, BEATEN\nRASTEAU SAUCE\n1 SHALLOT\n1/2 CARROT\n1/2 STALK CELERY\n40G 1.41 OUNCES (3 TABLESPOONS)\nBUTTER\n500ML 2 CUPS RED RASTEAU OR\nPORT WINE\n500ML 2 CUPS VEAL JUS (SEE P. 250)\nFLEUR DE SEL\nFRESHLY GROUND PEPPER\nMAKE THE RASTEAU\nSAUCE\nPeel the shallot, carrot, and celery. Cut into a small dice. In a sauté\npan, melt 10g - 0.35oz (3/4 tablespoon) butter and sweat* the veg-\netables without coloring. Pour in the wine. Heat the wine, light it with\na match, and flambé. Reduce the liquid to the consistency of syrup.\n*Note: Follow all necessary safety precautions when working with\nopen flame.\nAdd the veal jus and reduce gradually, skimming regularly, to make\nabout 100ml - 1/3 cup plus 1 tablespoon of glossy sauce. Filter the\nsauce through a fine strainer (sieve) set over a bowl and return it to\nthe pan. Incorporate the remaining butter. Season with fleur de sel\nand pepper, if necessary. Keep warm.\nFINISHING\nCut the warm brioche roll into slices, arrange on plates, and drizzle\nthe sauce around the slices. Serve with a green salad.\nTHE WINE\nA WHITE BEAUJOLAIS"
}
json
{
"NbPersons": 10,
"Language": "fr",
"Category": "appetizer",
"Title": "CERVELAS EN BRIOCHE",
"Subtitle": "PISTACHIO CERVELAS",
"Preparation_Time": 30,
"Cooking_Time": 20,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"250G 8.82 OUNCES (2 CUPS) FLOUR",
"20G 0.71 OUNCE (5 TEASPOONS) SUGAR",
"12G 0.42 OUNCE BAKER'S YEAST",
"50G - 1.76 OUNCES (3 1/2 TABLESPOONS) BUTTER",
"135G 4.76 OUNCES (1/2 CUP PLUS 1 TABLESPOON) MILK",
"5G 0.18 OUNCE (1 TEASPOON) SALT",
"1 PISTACHIO CERVELAS SAUSAGE, COOKED",
"1 EGG YOLK, BEATEN",
"1 SHALLOT",
"1/2 CARROT",
"1/2 STALK CELERY",
"40G 1.41 OUNCES (3 TABLESPOONS) BUTTER",
"500ML 2 CUPS RED RASTEAU OR PORT WINE",
"500ML 2 CUPS VEAL JUS (SEE P. 250)",
"FLEUR DE SEL",
"FRESHLY GROUND PEPPER"
]
}
],
"Description": "Une délicieuse recette de cervelas à la pistache enrobé dans une brioche moelleuse, parfait pour impressionner vos invités.",
"Instructions": [
"Combine all the ingredients, except the sausage and egg yolk, in the bowl of a stand mixer equipped with a dough hook.",
"Mix on the lowest speed setting for 4 minutes, then increase the speed to the second setting and mix for 9 minutes.",
"Roll out the dough to a thickness of 1.5cm - 5/8 inch.",
"Roll the sausage inside the dough.",
"Trim off the excess dough.",
"Rest for 2 hours at room temperature.",
"Preheat the oven to 180°C - 350°F.",
"Brush the dough with the egg yolk.",
"Bake for 20 minutes.",
"Set aside* on a rack.",
"Peel the shallot, carrot, and celery.",
"Cut into a small dice.",
"In a sauté pan, melt 10g - 0.35oz (3/4 tablespoon) butter and sweat* the vegetables without coloring.",
"Pour in the wine.",
"Heat the wine, light it with a match, and flambé.",
"Reduce the liquid to the consistency of syrup.",
"*Note: Follow all necessary safety precautions when working with open flame.",
"Add the veal jus and reduce gradually, skimming regularly, to make about 100ml - 1/3 cup plus 1 tablespoon of glossy sauce.",
"Filter the sauce through a fine strainer (sieve) set over a bowl and return it to the pan.",
"Incorporate the remaining butter.",
"Season with fleur de sel and pepper, if necessary.",
"Keep warm.",
"Cut the warm brioche roll into slices, arrange on plates, and drizzle the sauce around the slices.",
"Serve with a green salad."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": "*Note: Follow all necessary safety precautions when working with open flame."
}