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": "Hot soups\nPreparation 30 mins\nCooking 1 hr\nPesto\nsoup\nAD- A rustic summer soup, this\nis the great classic of Southern\nFrench cooking. It may look\ncomplicated but it takes little\nover an hour to make.\nPN An all-round dish that gives\nyou absolutely everything you need.\nA little cheese and fruit and violà!\nDinner is served.\n... Serves 6\n.. Prepare the pesto (page 36) and keep the basil stalks.\nPut 400 g of fresh hulled coco beans (white kidney beans) in a\nsaucepan with half an onion studded with a clove. Cover well with\nwater (about 1 litre) and bring to just under a boil (simmering)\n.. Skim off the scum then add the reserved basil stalks, 1 sprig of\nthyme and 1 bay leaf. Cook for 30 to 40 minutes and add salt only\nat the end of the cooking time. Set aside the beans in\ntheir liquid.\nWhile the coco beans are cooking, wash and cut into slivers\n200 g young fresh stringless green beans. Cut into large sections\nand immerse in boiling water for 5 minutes (they should still be\ncrunchy), drain and set aside.\nBlanch and deseed 2 tomatoes, then chop the flesh into 5 mm dice.\nReserve.\n... Peel and wash 4 carrots, 4 courgettes (preferably round ones),\n1 head of celery and the white portion of 2 leeks. Cut the carrots,\ncourgettes and celery into dice and the leek into rounds.\n... Dice 100 g of cured ham and soften gently in a large saucepan with\na splash of olive oil. Add the vegetables (carrots, courgettes,\ncelery and leeks), salt lightly, stir well, cover and cook for\n10 minutes without allowing to colour. Drain the coco beans and add\ntheir cooking stock to these vegetables. Boil for 2 minutes,\nthen remove all the vegetables with a slotted spoon and keep hot.\nTip 100 g of fresh pasta into the saucepan and cook until\nal dente.\n... Then put the vegetables back and add the coco beans, the fresh\nbeans and the diced tomato. Stir, boil briefly then remove from\nthe heat and check the seasoning.\nTake the leaves off 2 sprigs of basil.\n... Pour the hot soup into a tureen. Serve the pesto separately in a\nsauce boat or add to the soup at the last minute, stirring well.\nIn either case, sprinkle the soup with basil leaves.\n140 ... Soups"
}
json
{
"NbPersons": 6,
"Language": "en",
"Category": "soup",
"Title": "Hot soups",
"Subtitle": "A rustic summer soup",
"Preparation_Time": 30,
"Cooking_Time": 60,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"400 g of fresh hulled coco beans (white kidney beans)",
"half an onion studded with a clove",
"1 litre of water",
"reserved basil stalks",
"1 sprig of thyme",
"1 bay leaf",
"salt",
"200 g young fresh stringless green beans",
"2 tomatoes",
"4 carrots",
"4 courgettes (preferably round ones)",
"1 head of celery",
"2 leeks",
"100 g of cured ham",
"a splash of olive oil",
"100 g of fresh pasta"
]
}
],
"Description": "AD- A rustic summer soup, this is the great classic of Southern French cooking. It may look complicated but it takes little over an hour to make. PN An all-round dish that gives you absolutely everything you need. A little cheese and fruit and violà! Dinner is served.",
"Instructions": [
"Prepare the pesto (page 36) and keep the basil stalks.",
"Put 400 g of fresh hulled coco beans (white kidney beans) in a saucepan with half an onion studded with a clove.",
"Cover well with water (about 1 litre) and bring to just under a boil (simmering).",
"Skim off the scum then add the reserved basil stalks, 1 sprig of thyme and 1 bay leaf.",
"Cook for 30 to 40 minutes and add salt only at the end of the cooking time.",
"Set aside the beans in their liquid.",
"While the coco beans are cooking, wash and cut into slivers 200 g young fresh stringless green beans.",
"Cut into large sections and immerse in boiling water for 5 minutes (they should still be crunchy), drain and set aside.",
"Blanch and deseed 2 tomatoes, then chop the flesh into 5 mm dice. Reserve.",
"Peel and wash 4 carrots, 4 courgettes (preferably round ones), 1 head of celery and the white portion of 2 leeks.",
"Cut the carrots, courgettes and celery into dice and the leek into rounds.",
"Dice 100 g of cured ham and soften gently in a large saucepan with a splash of olive oil.",
"Add the vegetables (carrots, courgettes, celery and leeks), salt lightly, stir well, cover and cook for 10 minutes without allowing to colour.",
"Drain the coco beans and add their cooking stock to these vegetables.",
"Boil for 2 minutes, then remove all the vegetables with a slotted spoon and keep hot.",
"Tip 100 g of fresh pasta into the saucepan and cook until al dente.",
"Then put the vegetables back and add the coco beans, the fresh beans and the diced tomato.",
"Stir, boil briefly then remove from the heat and check the seasoning.",
"Take the leaves off 2 sprigs of basil.",
"Pour the hot soup into a tureen.",
"Serve the pesto separately in a sauce boat or add to the soup at the last minute, stirring well.",
"In either case, sprinkle the soup with basil leaves."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": ""
}