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": "Pasta\nPreparation 10 mins\nCooking 25 to 30 mins\nIndividual casseroles\nof wholemeal pasta,\nbroccoli and daube\nAD- If you don't have individual\nsmall casseroles or ovenproof\nglass dishes, finish cooking the\npasta in a large casserole dish,\nsealing the lid in the same way.\nThe rosemary is in the pasta for\nthe pleasure of its aroma during\nthe cooking!\nPNA remarkably rounded\ndish: meat (protein), pasta\n(carbohydrates), vegetables\n(fibre, vitamino), and cheese\n(calcium). The fibre in wholemeal\npasta combines well with that\nin the broccoli.\nServes 4\nPrepare the broccoli\nRemove and wash the florets of 2 large heads of broccoli (keep the\nstalks for a soup) and boil in salted water for just 3 minutes.\nRemove with a slotted spoon and immerse immediately in iced water.\nThen drain and set them aside. Don't throw away the broccoli\ncooking water, you will need 500 ml of it for cooking the pasta.\nPrepare the pasta\nHeat a splash of olive oil in a frying pan, add 250 g of wholemeal\npasta and stir well. Then add 250 ml of the broccoli cooking\nwater, stir and cook until absorbed. Add a further 250 ml of this\nwater. Cook the pasta until al dente (try it).\nPrepare the mini casseroles\n... While the pasta is cooking, heat 400 g of daube with its gravy\n(page 312) and set the oven to 180 °C (gas mark 4).\nAlso prepare the sealing pastry: mix 300 g flour with 100 ml cold\nwater and the leaves of 5 sprigs of rosemary. Work the pastry\nuntil it's smooth. Shape into a ball.\n... In 4 small casseroles or ovenproof glass containers, distribute\nthe meat from the daube. Then drain the pasta and place it on top.\nArrange the broccoli, 12 segments of tomato confit (page 16) and\n80 g of grated parmesan on top of that.\n... Add 5 tablespoons of sherry vinegar to the gravy of the daube,\nstir and pour over the dishes.\n... Cut the sealing pastry into 4 pieces, shape into long sausages and\nflatten each one into a 3 cm wide strip. Use these to seal the\nlids of the casseroles (or glass dishes). Brush the pastry with\none beaten egg (mixed with a little water) and put in the oven for\n10 minutes.\nWhen you take them out of the oven shake each casserole\n(or glass dish) to soak all the ingredients with the gravy.\nServe immediately.\n84... Grains and cereals"
}
json
{
"NbPersons": 4,
"Language": "fr",
"Category": "main",
"Title": "Pasta",
"Subtitle": "Individual casseroles of wholemeal pasta, broccoli and daube",
"Preparation_Time": 10,
"Cooking_Time": 30,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"2 large heads of broccoli",
"500 ml of broccoli cooking water",
"250 g of wholemeal pasta",
"400 g of daube with its gravy",
"300 g flour",
"100 ml cold water",
"leaves of 5 sprigs of rosemary",
"12 segments of tomato confit",
"80 g of grated parmesan",
"5 tablespoons of sherry vinegar",
"1 beaten egg (mixed with a little water)",
"splash of olive oil"
]
}
],
"Description": "PNA remarkably rounded dish: meat (protein), pasta (carbohydrates), vegetables (fibre, vitamino), and cheese (calcium). The fibre in wholemeal pasta combines well with that in the broccoli.",
"Instructions": [
"Remove and wash the florets of 2 large heads of broccoli (keep the stalks for a soup) and boil in salted water for just 3 minutes.",
"Remove with a slotted spoon and immerse immediately in iced water.",
"Then drain and set them aside. Don't throw away the broccoli cooking water, you will need 500 ml of it for cooking the pasta.",
"Heat a splash of olive oil in a frying pan, add 250 g of wholemeal pasta and stir well.",
"Then add 250 ml of the broccoli cooking water, stir and cook until absorbed.",
"Add a further 250 ml of this water. Cook the pasta until al dente (try it).",
"While the pasta is cooking, heat 400 g of daube with its gravy and set the oven to 180 °C (gas mark 4).",
"Also prepare the sealing pastry: mix 300 g flour with 100 ml cold water and the leaves of 5 sprigs of rosemary. Work the pastry until it's smooth. Shape into a ball.",
"... In 4 small casseroles or ovenproof glass containers, distribute the meat from the daube.",
"Then drain the pasta and place it on top.",
"Arrange the broccoli, 12 segments of tomato confit and 80 g of grated parmesan on top of that.",
"... Add 5 tablespoons of sherry vinegar to the gravy of the daube, stir and pour over the dishes.",
"... Cut the sealing pastry into 4 pieces, shape into long sausages and flatten each one into a 3 cm wide strip.",
"Use these to seal the lids of the casseroles (or glass dishes).",
"Brush the pastry with one beaten egg (mixed with a little water) and put in the oven for 10 minutes.",
"When you take them out of the oven shake each casserole (or glass dish) to soak all the ingredients with the gravy.",
"Serve immediately."
],
"AuthorName": "",
"Notes_Ingredients": "If you don't have individual small casseroles or ovenproof glass dishes, finish cooking the pasta in a large casserole dish, sealing the lid in the same way. The rosemary is in the pasta for the pleasure of its aroma during the cooking!",
"Notes_Instructions": ""
}