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": "POACHED GREEN\nAPPETIZERS 19\nPROVENCE ASPARAGUS\nVinaigrette, and Soft-Boiled Egg\nALLARD\nMAKE THE ASPARAGUS\nTrim the asparagus to leave the tips attractive and uniform, then\ncut off the woody white parts. Set aside four raw spears for finishing.\nBoil the remaining spears for 10 minutes in heavily salted water.\nCool in ice water and drain on paper towels.\nMAKE THE SOFT BOILED EGGS\nCook the eggs in boiling salted water for 6 minutes, then cool in ice\nwater. Peel the eggs and set aside*.\nMAKE\nTHE\nVINAIGRETTE\nFinely chop the chervil and parsley. Peel and finely mince* the shal-\nlots. In a small bowl, dissolve the mustard in the vinegar. Whisk in\nthe shallots and oils. Thin the vinaigrette with a little water, then\nseason with salt and pepper. Incorporate the herbs at the last minute.\nFINISHING\nSlice the four raw asparagus spears very finely with a mandoline\nslicer, using the safety guard. Be careful not to break them. Season\nwith olive oil and fleur de sel.\nWarm the asparagus and soft-boiled eggs by immersing for a few\nseconds in boiling water, then lay on paper towels. Arrange the\ncooked asparagus on a plate and coat them with the vinaigrette.\nAdd a soft-boiled egg, cut in half, and add the asparagus slices.\nSERVES 4\nPREPARATION: 30 MINUTES\nASPARAGUS\n24 SPEARS GREEN ASPARAGUS\n10G 0.35 OUNCE (2 TEASPOONS)\nCOARSE GRAY SEA SALT\n20ML 4 TEASPOONS OLIVE OIL\nFLEUR DE SEL\nSOFT-BOILED EGGS\n4 FRESH FREE-RANGE EGGS\nKOSHER (COARSE) SALT\nVINAIGRETTE\n1/4 BUNCH CHERVIL\n1/4 BUNCH FLAT-LEAF PARSLEY\n2 SHALLOTS\n1 TEASPOON DIJON MUSTARD\n2 TABLESPOONS AGED\nRED WINE VINEGAR\n50ML 3 1/2 TABLESPOONS OLIVE\nOIL, PLUS MORE FOR FINISHING\n50ML 3 1/2 TABLESPOONS\nCANOLA OR RAPESEED OIL\nSALT\nFRESHLY GROUND PEPPER\nTHE WINE\nA WHITE LOIRE VALLEY WINE, SUCH AS SAVENNIÈRES"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "appetizer",
"Title": "POACHED GREEN PROVENCE ASPARAGUS",
"Subtitle": "Vinaigrette, and Soft-Boiled Egg",
"Preparation_Time": 30,
"Cooking_Time": 16,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"24 SPEARS GREEN ASPARAGUS",
"10G 0.35 OUNCE (2 TEASPOONS) COARSE GRAY SEA SALT",
"20ML 4 TEASPOONS OLIVE OIL",
"FLEUR DE SEL",
"4 FRESH FREE-RANGE EGGS",
"KOSHER (COARSE) SALT",
"1/4 BUNCH CHERVIL",
"1/4 BUNCH FLAT-LEAF PARSLEY",
"2 SHALLOTS",
"1 TEASPOON DIJON MUSTARD",
"2 TABLESPOONS AGED RED WINE VINEGAR",
"50ML 3 1/2 TABLESPOONS OLIVE OIL, PLUS MORE FOR FINISHING",
"50ML 3 1/2 TABLESPOONS CANOLA OR RAPESEED OIL",
"SALT",
"FRESHLY GROUND PEPPER"
]
}
],
"Description": "A delightful dish that combines fresh green asparagus, soft-boiled eggs, and a tangy vinaigrette, perfect as an appetizer.",
"Instructions": [
"MAKE THE ASPARAGUS",
"Trim the asparagus to leave the tips attractive and uniform, then cut off the woody white parts. Set aside four raw spears for finishing.",
"Boil the remaining spears for 10 minutes in heavily salted water.",
"Cool in ice water and drain on paper towels.",
"MAKE THE SOFT BOILED EGGS",
"Cook the eggs in boiling salted water for 6 minutes, then cool in ice water. Peel the eggs and set aside*.",
"MAKE THE VINAIGRETTE",
"Finely chop the chervil and parsley.",
"Peel and finely mince* the shallots.",
"In a small bowl, dissolve the mustard in the vinegar.",
"Whisk in the shallots and oils.",
"Thin the vinaigrette with a little water, then season with salt and pepper.",
"Incorporate the herbs at the last minute.",
"FINISHING",
"Slice the four raw asparagus spears very finely with a mandoline slicer, using the safety guard. Be careful not to break them.",
"Season with olive oil and fleur de sel.",
"Warm the asparagus and soft-boiled eggs by immersing for a few seconds in boiling water, then lay on paper towels.",
"Arrange the cooked asparagus on a plate and coat them with the vinaigrette.",
"Add a soft-boiled egg, cut in half, and add the asparagus slices."
],
"AuthorName": "ALLARD",
"Notes_Ingredients": "THE WINE: A WHITE LOIRE VALLEY WINE, SUCH AS SAVENNIÈRES",
"Notes_Instructions": ""
}