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": "Rice\nPreparation 30 mins.\nCooking 30 mins\nSteamed rice\nand spring\nvegetables\nAD- This is an essentially\nMediterranean dish and all the\nflavours are concentrated when\nyou steam it like this. Be careful\nwith the salt, as you will need less\nif you're using chicken stock and\nmore if you're using water.\nPN- Yes, very much a\nMediterranean dish, and with\nall the basic ingredients of the\nMediterranean diet that is so\ngood for your health, with grains,\nvegetables and olive oil.\n... Serves 4\n.... Scrape and wash 16 small green asparagus spears, cut the tips.\ninto 6 cm lengths and slice all the tender part of the bases into\nrounds. Remove the outer leaves and wash 1 small leek and\n16 runner beans and cut them into rounds.\nTurn 4 young violet \"poivrade\" artichokes, cut into four, remove\nthe choke and sprinkle with lemon juice.\nPeel and wash 4 small fresh onions and cut into rounds (don't\nthrow away the stalks). Prepare 100 g of shelled fresh peas and\n100 g of shelled broad beans.\n... Preheat the oven to 170 °C (gas mark 3 to 4).\n... Heat 400 ml of chicken stock (page 10) or water in a pan.\nHeat a flameproof casserole dish with 2 tablespoons of olive oil.\nAdd all the vegetables together, salt and cook on the hob for\n2 minutes, stirring gently.\n... Add 200 g of basmati rice and stir until it is translucent. Pour in\nthe chicken stock (or water), stir briefly, taste and correct the\nseasoning.\nCover the casserole dish with a lid and put in the oven for\n17 minutes.\n... Then take it out and leave to rest for 10 minutes.\n... Rinse a quarter of a salt-preserved lemon (page 15) and slice\nthinly. Remove the tips of the onion stalks you set aside and chop\nthe rest. Rinse and thoroughly dry a handful of wild rocket.\n... Gently stir the rice and vegetables, add the preserved lemon,\nonion stalks and rocket along with a splash of olive oil. Serve\nimmediately in the casserole dish or on individual plates.\n100 Grains and cereals\n100"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "main",
"Title": "Rice",
"Subtitle": "Steamed rice and spring vegetables",
"Preparation_Time": 30,
"Cooking_Time": 30,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"16 small green asparagus spears",
"1 small leek",
"16 runner beans",
"4 young violet 'poivrade' artichokes",
"4 small fresh onions",
"100 g of shelled fresh peas",
"100 g of shelled broad beans",
"400 ml of chicken stock or water",
"2 tablespoons of olive oil",
"200 g of basmati rice",
"a quarter of a salt-preserved lemon",
"wild rocket"
]
}
],
"Description": "This is an essentially Mediterranean dish and all the flavours are concentrated when you steam it like this.",
"Instructions": [
"Scrape and wash 16 small green asparagus spears, cut the tips into 6 cm lengths and slice all the tender part of the bases into rounds.",
"Remove the outer leaves and wash 1 small leek and 16 runner beans and cut them into rounds.",
"Turn 4 young violet 'poivrade' artichokes, cut into four, remove the choke and sprinkle with lemon juice.",
"Peel and wash 4 small fresh onions and cut into rounds (don't throw away the stalks).",
"Prepare 100 g of shelled fresh peas and 100 g of shelled broad beans.",
"Preheat the oven to 170 °C (gas mark 3 to 4).",
"Heat 400 ml of chicken stock (page 10) or water in a pan.",
"Heat a flameproof casserole dish with 2 tablespoons of olive oil.",
"Add all the vegetables together, salt and cook on the hob for 2 minutes, stirring gently.",
"Add 200 g of basmati rice and stir until it is translucent.",
"Pour in the chicken stock (or water), stir briefly, taste and correct the seasoning.",
"Cover the casserole dish with a lid and put in the oven for 17 minutes.",
"Then take it out and leave to rest for 10 minutes.",
"Rinse a quarter of a salt-preserved lemon (page 15) and slice thinly.",
"Remove the tips of the onion stalks you set aside and chop the rest.",
"Rinse and thoroughly dry a handful of wild rocket.",
"Gently stir the rice and vegetables, add the preserved lemon, onion stalks and rocket along with a splash of olive oil.",
"Serve immediately in the casserole dish or on individual plates."
],
"AuthorName": "",
"Notes_Ingredients": "Be careful with the salt, as you will need less if you're using chicken stock and more if you're using water.",
"Notes_Instructions": "This Mediterranean dish includes all the basic ingredients of the Mediterranean diet that is so good for your health, with grains, vegetables, and olive oil."
}