6de6b6e2b2
- prompts/cooklang-converter.md: Comprehensive guide with full syntax
reference, examples, and 12 conversion guidelines
- prompts/system-prompt.md: Concise system prompt for direct API use
- prompts/user-prompt-template.md: Template with {{PLACEHOLDER}}s for
injecting specific recipe text
- prompts/test-cases.md: 3 test cases with source recipes and expected
Cooklang output covering fractions, multi-word ingredients, sections,
timers, notes, and complex multi-component recipes
154 lines
5.7 KiB
Markdown
154 lines
5.7 KiB
Markdown
# Test cases for Cooklang converter prompts
|
|
|
|
## Test 1: Simple recipe with fractions and multi-word ingredients
|
|
|
|
**Source:** https://example.com/creamy-mushroom-pasta
|
|
|
|
```text
|
|
Creamy Mushroom Pasta
|
|
Serves 2
|
|
|
|
Ingredients:
|
|
- 200g pasta (spaghetti or fettuccine)
|
|
- 250g mushrooms, sliced
|
|
- 2 cloves garlic, minced
|
|
- 1/2 cup heavy cream
|
|
- 30g Parmesan, grated
|
|
- 2 tbsp butter
|
|
- Salt and pepper to taste
|
|
|
|
Cook the pasta in salted boiling water according to package directions, about 10 minutes. Reserve 1/2 cup pasta water before draining.
|
|
|
|
While the pasta cooks, melt the butter in a large skillet over medium heat. Add the mushrooms and cook for 5-6 minutes until golden. Add the garlic and cook 1 minute more.
|
|
|
|
Reduce heat to low, pour in the cream, and stir in the Parmesan. Season with salt and pepper. Simmer for 2-3 minutes until the sauce thickens.
|
|
|
|
Add the drained pasta to the skillet and toss to coat. Add pasta water a splash at a time if the sauce is too thick. Serve immediately with extra Parmesan.
|
|
```
|
|
|
|
**Expected Cooklang output:**
|
|
```cooklang
|
|
---
|
|
title: Creamy Mushroom Pasta
|
|
servings: 2
|
|
---
|
|
|
|
Cook the @pasta{200%g} in salted boiling @water{} according to package directions, ~{10%minutes}. Reserve 1/2 cup @pasta water{} before draining.
|
|
|
|
While the pasta cooks, melt the @butter{2%tbsp} in a #large skillet{} over medium heat. Add the @mushrooms{250%g}(sliced) and cook for ~{5-6%minutes} until golden. Add the @garlic{2%cloves}(minced) and cook ~{1%minutes} more.
|
|
|
|
Reduce heat to low, pour in the @heavy cream{1/2%cup}, and stir in the @Parmesan{30%g}(grated). Season with @salt{} and @pepper{}. Simmer for ~{2-3%minutes} until the sauce thickens.
|
|
|
|
Add the drained @pasta{} to the #skillet and toss to coat. Add @pasta water{} a splash at a time if the sauce is too thick. Serve immediately with extra @Parmesan{}.
|
|
```
|
|
|
|
## Test 2: Multi-component recipe with sections
|
|
|
|
**Source:** https://example.com/beef-tacos
|
|
|
|
```text
|
|
Beef Tacos
|
|
Serves 4
|
|
Prep time: 15 minutes
|
|
Cook time: 20 minutes
|
|
|
|
Filling:
|
|
- 500g ground beef
|
|
- 1 onion, diced
|
|
- 2 cloves garlic, minced
|
|
- 1 tbsp chili powder
|
|
- 1 tsp cumin
|
|
- Salt to taste
|
|
|
|
Toppings:
|
|
- 8 small tortillas
|
|
- 1 cup shredded lettuce
|
|
- 2 tomatoes, diced
|
|
- 1/2 cup sour cream
|
|
- 1/2 cup grated cheese
|
|
|
|
Brown the beef in a skillet over medium-high heat for 5-6 minutes. Drain excess fat. Add the onion and cook 3 minutes until softened. Add garlic, chili powder, cumin, and salt. Cook 1 minute until fragrant.
|
|
|
|
Warm the tortillas in a dry pan or directly over a gas flame for about 30 seconds per side.
|
|
|
|
Assemble the tacos: fill each tortilla with the beef mixture, then top with lettuce, tomatoes, sour cream, and cheese.
|
|
```
|
|
|
|
**Expected Cooklang output:**
|
|
```cooklang
|
|
---
|
|
title: Beef Tacos
|
|
servings: 4
|
|
prep time: 15 minutes
|
|
cook time: 20 minutes
|
|
---
|
|
|
|
== Filling ==
|
|
|
|
Brown the @ground beef{500%g} in a #skillet over medium-high heat for ~{5-6%minutes}. Drain excess fat. Add the @onion{1}(diced) and cook ~{3%minutes} until softened. Add @garlic{2%cloves}(minced), @chili powder{1%tbsp}, @cumin{1%tsp}, and @salt{}. Cook ~{1%minutes} until fragrant.
|
|
|
|
== Toppings ==
|
|
|
|
Warm the @tortillas{8} in a dry #pan or directly over a gas flame for ~{30%seconds} per side.
|
|
|
|
Assemble the tacos: fill each @tortilla{} with the @beef mixture{}, then top with @lettuce{1%cup}(shredded), @tomatoes{2}(diced), @sour cream{1/2%cup}, and @cheese{1/2%cup}(grated).
|
|
```
|
|
|
|
## Test 3: Recipe with timers, notes, and multiple components
|
|
|
|
**Source:** https://example.com/braised-short-ribs
|
|
|
|
```text
|
|
Braised Short Ribs
|
|
Serves 6
|
|
Time: 3 hours
|
|
|
|
Ingredients:
|
|
- 2kg bone-in beef short ribs
|
|
- 2 tbsp olive oil
|
|
- 1 large onion, chopped
|
|
- 3 carrots, chopped
|
|
- 3 celery stalks, chopped
|
|
- 4 cloves garlic, crushed
|
|
- 2 tbsp tomato paste
|
|
- 500ml red wine
|
|
- 500ml beef stock
|
|
- 2 sprigs fresh rosemary
|
|
- 3 sprigs fresh thyme
|
|
- 2 bay leaves
|
|
- Salt and pepper
|
|
|
|
Preheat oven to 160°C.
|
|
|
|
Season the short ribs generously with salt and pepper. Heat the olive oil in a large Dutch oven over medium-high heat. Sear the ribs in batches for 3-4 minutes per side until deeply browned. Set aside.
|
|
|
|
In the same pot, add the onion, carrots, and celery. Cook for 6-8 minutes until softened. Add the garlic and cook 1 minute. Stir in the tomato paste and cook 2 minutes until it darkens.
|
|
|
|
Pour in the red wine and scrape up any browned bits from the bottom. Let it simmer for 3-4 minutes until reduced by half. Add the beef stock, rosemary, thyme, and bay leaves. Return the ribs to the pot, nestling them into the liquid.
|
|
|
|
Cover and braise in the oven for 2.5 to 3 hours, until the meat is fork-tender. Remove the herb sprigs and bay leaves before serving.
|
|
|
|
Serve over mashed potatoes or creamy polenta.
|
|
```
|
|
|
|
**Expected Cooklang output:**
|
|
```cooklang
|
|
---
|
|
title: Braised Short Ribs
|
|
servings: 6
|
|
time: 3 hours
|
|
---
|
|
|
|
Preheat #oven to 160°C.
|
|
|
|
Season the @beef short ribs{2%kg} generously with @salt{} and @pepper{}. Heat the @olive oil{2%tbsp} in a #large Dutch oven{} over medium-high heat. Sear the @ribs{} in batches for ~{3-4%minutes} per side until deeply browned. Set aside.
|
|
|
|
In the same #pot{}, add the @onion{1}(chopped), @carrots{3}(chopped), and @celery{3}(chopped). Cook for ~{6-8%minutes} until softened. Add the @garlic{4%cloves}(crushed) and cook ~{1%minutes}. Stir in the @tomato paste{2%tbsp} and cook ~{2%minutes} until it darkens.
|
|
|
|
Pour in the @red wine{500%ml} and scrape up any browned bits from the bottom. Let it simmer for ~{3-4%minutes} until reduced by half. Add the @beef stock{500%ml}, @rosemary{2}(fresh), @thyme{3}(fresh), and @bay leaves{2}. Return the @ribs{} to the #pot{}, nestling them into the liquid.
|
|
|
|
Cover and braise in the #oven for ~{2.5-3%hours}, until the meat is fork-tender. > Remove the herb sprigs and bay leaves before serving.
|
|
|
|
Serve over @mashed potatoes{} or @creamy polenta{}.
|
|
```
|