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 25 mins\nPreparation 15 mins\nRice\nSpanish rice with\nsquid and lemon\n... Serves 4\nPrepare the squid\nSeparate the body and head of 1 squid weighing approximately\n300 g. Then separate the tentacles and clean out the inside of the\nbody. Rub off the small membranes with coarse salt then rinse with\nplenty of water.\n... Finely slice the tentacles.\n... With a very sharp knife, cut the skin of the body in a lattice\npattern then cut it into medium-sized slivers. Set all the squid\naside in a cool place.\nPrepare the rice\nPreheat the oven to 180 °C (gas mark 4).\nPeel and dice 3 new onions with leaves or 1 white onion. Rinse\nhalf a bulb of fennel and dice very finely (brunoise).\n. Cut half an unwaxed lemon into triangles.\n. Heat an ovenproof dish with 4 tablespoons of olive oil and sweat\nthe diced vegetables and squid tentacles for approximately\n2 minutes, stirring.\nAdd 300 g of round-grain Spanish or Italian rice, a pinch of\nsalt, and cook for 2 minutes over a low heat, stirring. Then add\nthe lemon triangles and 50 g of shelled fresh peas, then add\napproximately 600 ml of cold water.\nSpread the rice evenly over the surface and put in the oven for\n20 minutes. Check the progress of the rice regularly and if it's\nbecoming too dry, add a little water. When it's cooked, the rice\nshould be soft in the centre of the dish and crunchy round\nthe edge.\nThen heat a frying pan with a drop of olive oil and sauté the\nslivers of squid for just 10 seconds. Arrange them over the rice,\nadd 4 basil leaves and a twist of freshly ground black pepper.\n... Serve nice and hot in the cooking dish.\nAD-Round-grain Italian (Riso\ndella Zelata) or Spanish (Arroz\nBomba] rice has the ability to\nabsorb a lot of liquid and swell up\nconsiderably whilst remaining quite\nfirm. It is important not to rinse it\nbefore cooking.\nPN- Rice and squid provide a\ngood measure of protein so there's\nno need for further meat or fish.\nServe with a vegetable starter, a\ncheese or other dairy product and\na piece of fruit, and you will have a\nwell balanced meal.\nGrains and cereals ... 99"
}
json
{
"NbPersons": 4,
"Language": "en",
"Category": "main",
"Title": "Spanish rice with squid and lemon",
"Subtitle": "",
"Preparation_Time": 15,
"Cooking_Time": 25,
"Difficulty": "medium",
"Ingredients": [
{
"section": "Pour la recette",
"ingredients": [
"1 squid weighing approximately 300 g",
"3 new onions with leaves or 1 white onion",
"half a bulb of fennel",
"half an unwaxed lemon",
"4 tablespoons of olive oil",
"300 g of round-grain Spanish or Italian rice",
"a pinch of salt",
"50 g of shelled fresh peas",
"approximately 600 ml of cold water",
"4 basil leaves",
"a twist of freshly ground black pepper"
]
}
],
"Description": "Spanish rice with squid and lemon is a delightful dish that combines the rich flavors of squid and the freshness of lemon, providing a perfect balance for the palate.",
"Instructions": [
"Prepare the squid.",
"Separate the body and head of 1 squid weighing approximately 300 g. Then separate the tentacles and clean out the inside of the body.",
"Rub off the small membranes with coarse salt then rinse with plenty of water.",
"Finely slice the tentacles.",
"With a very sharp knife, cut the skin of the body in a lattice pattern then cut it into medium-sized slivers.",
"Set all the squid aside in a cool place.",
"Prepare the rice.",
"Preheat the oven to 180 °C (gas mark 4).",
"Peel and dice 3 new onions with leaves or 1 white onion.",
"Rinse half a bulb of fennel and dice very finely (brunoise).",
"Cut half an unwaxed lemon into triangles.",
"Heat an ovenproof dish with 4 tablespoons of olive oil and sweat the diced vegetables and squid tentacles for approximately 2 minutes, stirring.",
"Add 300 g of round-grain Spanish or Italian rice, a pinch of salt, and cook for 2 minutes over a low heat, stirring.",
"Then add the lemon triangles and 50 g of shelled fresh peas, then add approximately 600 ml of cold water.",
"Spread the rice evenly over the surface and put in the oven for 20 minutes.",
"Check the progress of the rice regularly and if it's becoming too dry, add a little water.",
"When it's cooked, the rice should be soft in the centre of the dish and crunchy round the edge.",
"Then heat a frying pan with a drop of olive oil and sauté the slivers of squid for just 10 seconds.",
"Arrange them over the rice, add 4 basil leaves and a twist of freshly ground black pepper.",
"Serve nice and hot in the cooking dish."
],
"AuthorName": "",
"Notes_Ingredients": "AD-Round-grain Italian (Riso della Zelata) or Spanish (Arroz Bomba) rice has the ability to absorb a lot of liquid and swell up considerably whilst remaining quite firm. It is important not to rinse it before cooking.\nPN- Rice and squid provide a good measure of protein so there's no need for further meat or fish. Serve with a vegetable starter, a cheese or other dairy product and a piece of fruit, and you will have a well balanced meal.",
"Notes_Instructions": ""
}