gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
Goal Objectif est d'extraire et structurer les informations d'une recette de cuisine…
- User
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.
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, mocktail). Sinon choisis la meilleure option parmis (bread, appetizer, starter, main, dessert, breakfast, snack, teatime, jam, sauce, icecream) - 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": "Tomato Soup with Grilled Cheese Squares\nTomato soup with grilled cheese is the ultimate comfort food on a cold winter's night. It was my father's staple\n\"warm up the kids\" dish when I was a child. It's also a great dish to serve at parties. Pass out mugs of tomato\nsoup and grilled cheese squares for a tasty finger food, perfect for dunking. Make the grilled cheese squares\nwhile the soup is simmering. You can find sliced Daiya vegan cheese at the deli counter at Whole Foods.\nSERVES 4\n2 tablespoons olive oil\n1½ cups diced yellow onion\nI clove garlic, minced or pressed\nI teaspoon dried thyme\n2 tablespoons superfine brown rice flour\n2 cups low-sodium chicken broth or vegetable broth, warmed\n¼ teaspoon salt\nFreshly ground pepper\nI tablespoon agave nectar\n1 (28-ounce) can whole plum tomatoes (preferably San Marzano)\n½ cup rice milk\nGRILLED CHEESE SQUARES\n8 slices allergy-friendly sandwich bread\n8 teaspoons Earth Balance soy-free buttery spread, at room temperature\n½ pound thinly sliced Daiya vegan cheddar\n1 Heat the olive oil in a large, heavy pot over medium-high-heat. Add the onion and cook for2 minutes, stirring a\nfew times. Add the garlic and thyme and cook for 1 minute more.\n2 Sprinkle in the brown rice flour and cook, stirring, for 2 minutes, until lightly golden and aromatic. Slowly add the\nwarmed broth, stirring. Add the salt and a few turns of pepper and stir in the agave nectar. Reduce the heat to\nmedium and cook for 2 minutes, stirring often. Add the tomatoes, bring to a simmer, reduce the heat to medium-\nlow, and simmer for 10 minutes.\n3 Puree in the pot with an immersion blender, or puree in batches in a jar blender or food processor, then return to\nthe pot. Add the rice milk and cook for 5 minutes more. Adjust the salt and pepper to taste.\n4 Meanwhile, prepare the grilled cheese squares. Lay out 4 slices of bread. Spread 1 teaspoon of buttery spread on\neach. Flip so that the buttery side is down. Distribute the vegan cheese evenly among the four sandwiches, and cover\neach with another slice of bread. Spread 1 teaspoon of buttery spread on top of each.\n5 Heat a large nonstick pan or griddle over medium-high heat for 2 minutes. I use a well-seasoned cast-iron pan\nfor this. Add as many sandwiches as will fit, cover, and cook for 2 minutes, until the cheese is starting to melt and\nthe bread is browning on the bottom. Flip the sandwiches and press down hard with a spatula. Cook for about 1\nminute more, then flip again and press down to get a final crisp on both sides. Remove the sandwiches from the pan\nand cut each into quarters. Grill the other sandwiches if you were not able to do them all in one batch. Serve\nalongside the soup." - Assistant