Goal: You are a world-class expert in culinary recipe classification. Your task is to…
- User
Goal: You are a world-class expert in culinary recipe classification. Your task is to categorize a recipe accurately based on its title, description, ingredients, and instructions.
Context: A recipe can either be a beverage or a food item. If it's a beverage, classify it as "drinks". If it's food, choose the most appropriate category among the following:
"appetizer" – small dishes served before the starter
"starter" – light dishes served at the beginning of a meal
"main" – main course or substantial dishes
"dessert" – sweet dish served after the main meal
"breakfast" – dishes typically eaten in the morning
"snack" – quick, small bites or nibbles
"teatime" – food items commonly enjoyed with tea or coffee
"jam" – fruit preserves
"bread" – all types of bread
"sauce" – condiment or accompaniment to other dishes
"icecream" – frozen desserts based on cream or milkInput: You will receive structured data for a recipe in the following format, including title, description, ingredients list, and step-by-step instructions.
json {"title":"Falafel Originating in the Middle East, falafel is now a global sensation often served in a pita or wrapped in a flatbread.","description":"Believed to have first been made in Egypt about a thousand years ago, falafel has sprinted across borders finding new fans and adaptations. Traditionally made from ground chickpeas or fava beans, spices, and herbs, these humble ingredients are transformed into crispy, flavorful balls or patties that have captured the hearts of street food aficionados and gourmands alike.","ingredients":[{"section":"For the recipe","ingredients":["2 cups dried chickpeas (not canned or pre-cooked)","1 large onion, roughly chopped","4 cloves of garlic, minced","1/4 cup fresh parsley, finely chopped","1/4 cup fresh cilantro, finely chopped.","1 tsp ground cumin","1 tsp ground coriander","1/4 tsp cayenne pepper (optional or to taste)","1 tsp salt, or to taste","1/2 tsp ground black pepper","1/2 tsp baking soda","1 tbsp lemon juice","2 tbsp all-purpose flour (or chickpea flour for gluten-free version)","Vegetable oil, for frying"]}],"instructions":["Soak the dried chickpeas overnight in a large bowl with plenty of water to cover. They will double in size, so ensure there's enough room for expansion.","The next day, drain and rinse the chickpeas thoroughly.","In a food processor, combine the chickpeas, onion, garlic, parsley, cilantro, cumin, coriander, cayenne, salt, and black pepper. Pulse until you get a coarse mixture that holds together when squeezed. Do not overprocess into a paste.","Transfer the mixture to a bowl and mix in the baking soda, lemon juice, and flour until well combined. Let it rest for 10 minutes.","Form the mixture into balls or patties about the size of a walnut or use a falafel scoop if available.","Heat at least 2 inches of vegetable oil in a deep pot to 350°F (175°C). Test the oil by dropping a small piece of the mixture into it; it should sizzle and float.","Fry the falafel balls in batches, without overcrowding the pot, until golden brown on all sides, about 4-5 minutes. Be sure they're submerged in oil for even cooking.","Remove with a slotted spoon and let drain on a plate lined with paper towels to remove excess oil.","Serve your falafel hot with tahini sauce, in a pita bread with lettuce, tomatoes, and pickled veggies, or atop a bed of salad greens as an appetizer."]}
- Assistantjson
{ "data": "appetizer" }