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 20 mins\nPreparation 20 mins\nFresh vegetables\nVegetables\nà la barigoule\nwith vanilla\nServes 4\nPrepare the vegetables\n... Peel and wash 4 carrots with tops keeping 1 cm of top, and cut them\nin half. Separate the florets of 1 broccoli and wash them. Peel\n4 medium white onions. Cut 1 fennel bulb into 8 wedges, and rinse.\nPeel 4 garlic cloves. Peel and wash 1 bundle of green asparagus,\ncut the tips into 7 cm lengths and tie in a bundle.\n... Plunge the broccoli florets and asparagus in salted boiling water\nfor about 3 minutes. Drain and refresh in iced water.\nCook the rest of the vegetables\nHeat 500 ml of chicken stock (page 10).\n... Tie up 10 coriander seeds, 5 peppercorns, 1 bay leaf, 4 sprigs\nof thyme and 1 garlic clove in a piece of cotton muslin or an\ninfusion bag.\nHeat a sauté pan with a splash of olive oil. Put in the carrots,\nonions, fennel and garlic cloves.\n... Split 1 vanilla pod and add it to the hot chicken stock, then pour\nthis into the sauté pan. Then add the bag of aromatic herbs and\nallow to simmer for 12 to 15 minutes.\nTo finish your dish\nTake out the vanilla pod and bag of aromatic herbs. Add the\nbroccoli florets and the asparagus tips then stir gently.\n... Lift out all these vegetables with a slotted spoon and keep in\na warm dish.\nReduce the cooking liquid down to a good glassful (200 ml). Pour in\n2 tablespoons of olive oil and a splash of sherry vinegar and stir\nvigorously. Check the seasoning and pour over the vegetables.\nAdd a few grains of sea salt and a few coriander leaves.\nServe hot.\nAD- The vegetables should be\nslightly crunchy. Check with the tip\nof a knife as you cook them and\ntake any that are cooked sooner out\nof the sauté pan.\nPN- It takes only about 40 minutes\nto prepare this tasty cocktail of\nvitamins, minerals and antioxidanto\nof all kinds, so don't miss out on\nthis dish!\nVegetables... 195"
}
json
{
"NbPersons": 4,
"Language": "fr",
"Category": "main",
"Title": "à la barigoule",
"Subtitle": "with vanilla",
"Preparation_Time": 20,
"Cooking_Time": 20,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"4 carrots with tops keeping 1 cm of top",
"1 broccoli",
"4 medium white onions",
"1 fennel bulb",
"4 garlic cloves",
"1 bundle of green asparagus",
"500 ml of chicken stock",
"10 coriander seeds",
"5 peppercorns",
"1 bay leaf",
"4 sprigs of thyme",
"1 vanilla pod",
"olive oil",
"sherry vinegar",
"sea salt",
"coriander leaves"
]
}
],
"Description": "Prepare yourself for a delightfully flavorful dish packed with fresh vegetables, perfect for anyone looking to enjoy a healthy meal.",
"Instructions": [
"Peel and wash 4 carrots with tops keeping 1 cm of top, and cut them in half.",
"Separate the florets of 1 broccoli and wash them.",
"Peel 4 medium white onions.",
"Cut 1 fennel bulb into 8 wedges, and rinse.",
"Peel 4 garlic cloves.",
"Peel and wash 1 bundle of green asparagus, cut the tips into 7 cm lengths and tie in a bundle.",
"Plunge the broccoli florets and asparagus in salted boiling water for about 3 minutes.",
"Drain and refresh in iced water.",
"Heat 500 ml of chicken stock (page 10).",
"Tie up 10 coriander seeds, 5 peppercorns, 1 bay leaf, 4 sprigs of thyme and 1 garlic clove in a piece of cotton muslin or an infusion bag.",
"Heat a sauté pan with a splash of olive oil.",
"Put in the carrots, onions, fennel and garlic cloves.",
"Split 1 vanilla pod and add it to the hot chicken stock, then pour this into the sauté pan.",
"Then add the bag of aromatic herbs and allow to simmer for 12 to 15 minutes.",
"Take out the vanilla pod and bag of aromatic herbs.",
"Add the broccoli florets and the asparagus tips then stir gently.",
"Lift out all these vegetables with a slotted spoon and keep in a warm dish.",
"Reduce the cooking liquid down to a good glassful (200 ml).",
"Pour in 2 tablespoons of olive oil and a splash of sherry vinegar and stir vigorously.",
"Check the seasoning and pour over the vegetables.",
"Add a few grains of sea salt and a few coriander leaves.",
"Serve hot."
],
"AuthorName": "",
"Notes_Ingredients": "",
"Notes_Instructions": "The vegetables should be slightly crunchy. Check with the tip of a knife as you cook them and take any that are cooked sooner out of the sauté pan. It takes only about 40 minutes to prepare this tasty cocktail of vitamins, minerals and antioxidants of all kinds, so don't miss out on this dish!"
}