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": "Cooking 15 mins\nPreparation 20 mins\nPoultry\nChicken breasts\nin yogurt with\nstir-fried vegetables\nServes 4\nThe day before, prepare the chicken\n... Take the leaves from 5 sprigs of coriander, peel 5 cm of ginger,\nremove the seeds from 1 piri piri and chop all these ingredients.\nIn a bowl, mix 1 plain yogurt (125 g), 3 tablespoons of fromage blanc,\n3 tablespoons of light cream, the coriander, the piri piri and\nthe chopped ginger, half a teaspoon of ground mace and a pinch of\nPiment d'Espelette. Stir well.\n...Sprinkle salt on the 4 free-range chicken breasts and coat them\nentirely with this marinade. Wrap each one in cling film and keep\nin a cold place for 24 hours.\nOn the day\nPeel and wash 2 carrots, 1 bunch of green asparagus, 2 endives,\n8 shiitake mushrooms, I cauliflower and 100 g of bean sprouts.\nFinely slice the carrots, asparagus, endives and shiitake mushrooms\nwith a mandoline slicer. Separate the cauliflower florets.\nPreheat the oven to 220 °C (gas mark 7).\nTake the chicken breasts out of the cling film. Wipe them and cook\non a grill pan or griddle skin side down for about 5 minutes, until\nthey are a nice golden colour. Then put them on a baking tray and\ninto the oven for 3 minutes to finish cooking. Keep warm.\nHeat 1 tablespoon of olive oil in a wok. Over a high heat sauté the\ncarrots, cauliflower, asparagus, endives and shiitake mushrooms,\nuntil lightly coloured.\nSalt lightly and add the bean sprouts. Continue to stir for\n2 minutes and deglaze the wok with 3 tablespoons of soy sauce.\n... Cut the chicken breasts into slices lengthwise and lay them on\na serving dish or individual plates. Arrange the stir-fried\nvegetables alongside. Give a generous twist of freshly ground black\npepper and serve.\nAD If you don't have mace,\nsubstitute with a little grated\nnutmeg. Mace is the outer membrane\nof the nutmeg and it has a finer\nflavour. If you can get hold of red\nendives, use these! They will add an\nextra splash of colour to your panful\nof vegetables.\nPN- A nice panful of winter\nvegetables with very healthy chicken\nbreasts! The yogurt and fromage\nblanc in the marinade don't give you\nenough calcium, so this meal calls\nfor a dairy product or cheese.\nLand... 287"
}
json
{
"NbPersons": 4,
"Language": "fr",
"Category": "main",
"Title": "Poultry Chicken breasts in yogurt with stir-fried vegetables",
"Subtitle": "",
"Preparation_Time": 20,
"Cooking_Time": 15,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"4 free-range chicken breasts",
"1 plain yogurt (125 g)",
"3 tablespoons of fromage blanc",
"3 tablespoons of light cream",
"5 sprigs of coriander",
"5 cm of ginger",
"1 piri piri",
"0.5 teaspoon of ground mace",
"a pinch of Piment d'Espelette",
"2 carrots",
"1 bunch of green asparagus",
"2 endives",
"8 shiitake mushrooms",
"1 cauliflower",
"100 g of bean sprouts",
"1 tablespoon of olive oil",
"3 tablespoons of soy sauce"
]
}
],
"Description": "A nice panful of winter vegetables with very healthy chicken breasts! The yogurt and fromage blanc in the marinade don't give you enough calcium, so this meal calls for a dairy product or cheese.",
"Instructions": [
"The day before, prepare the chicken...",
"Take the leaves from 5 sprigs of coriander, peel 5 cm of ginger, remove the seeds from 1 piri piri and chop all these ingredients.",
"In a bowl, mix 1 plain yogurt (125 g), 3 tablespoons of fromage blanc, 3 tablespoons of light cream, the coriander, the piri piri and the chopped ginger, half a teaspoon of ground mace and a pinch of Piment d'Espelette. Stir well.",
"Sprinkle salt on the 4 free-range chicken breasts and coat them entirely with this marinade. Wrap each one in cling film and keep in a cold place for 24 hours.",
"On the day, peel and wash 2 carrots, 1 bunch of green asparagus, 2 endives, 8 shiitake mushrooms, 1 cauliflower and 100 g of bean sprouts.",
"Finely slice the carrots, asparagus, endives and shiitake mushrooms with a mandoline slicer. Separate the cauliflower florets.",
"Preheat the oven to 220 °C (gas mark 7).",
"Take the chicken breasts out of the cling film. Wipe them and cook on a grill pan or griddle skin side down for about 5 minutes, until they are a nice golden colour.",
"Then put them on a baking tray and into the oven for 3 minutes to finish cooking. Keep warm.",
"Heat 1 tablespoon of olive oil in a wok. Over a high heat sauté the carrots, cauliflower, asparagus, endives and shiitake mushrooms, until lightly coloured.",
"Salt lightly and add the bean sprouts. Continue to stir for 2 minutes and deglaze the wok with 3 tablespoons of soy sauce.",
"Cut the chicken breasts into slices lengthwise and lay them on a serving dish or individual plates. Arrange the stir-fried vegetables alongside. Give a generous twist of freshly ground black pepper and serve."
],
"AuthorName": "",
"Notes_Ingredients": "If you don't have mace, substitute with a little grated nutmeg. Mace is the outer membrane of the nutmeg and it has a finer flavour. If you can get hold of red endives, use these! They will add an extra splash of colour to your panful of vegetables.",
"Notes_Instructions": ""
}