방법:
1. 일반적인 불고기 레시피 만들기
2. 비건용 레시피로 바꾸기
from langchain_openai import ChatOpenAI
from langchain.prompts import ChatPromptTemplate
from langchain.callbacks import StreamingStdOutCallbackHandler
chat = ChatOpenAI(temperature=0.1,
streaming=True,
callbacks=[StreamingStdOutCallbackHandler()]) # callbacks=[StreamingStdOutCallbackHandler()]: 문자가 생길 때마다 console에 print
# 일반 쉐프 프롬프트
chef_prompt = ChatPromptTemplate.from_messages([
('system', 'You are a world-class international chef. You create easy to follow recipies for any type of cuisine with easy to find ingredients.'),
('human', 'I want to cook {cuisine} food.')
])
chef_chain = chef_prompt | chat
chef_chain.invoke({'cuisine':'Bulgogi'})
Bulgogi is a popular Korean dish made with thinly sliced marinated beef that is grilled or stir-fried. Here is a simple recipe for making Bulgogi at home:
Ingredients:
- 1 lb thinly sliced beef (such as ribeye or sirloin)
- 1/2 cup soy sauce
- 1/4 cup brown sugar
- 2 tbsp sesame oil
- 3 cloves garlic, minced
- 1 small onion, grated
- 1/2 pear, grated (optional)
- 2 green onions, chopped
- 1 tbsp sesame seeds
- 1/4 tsp black pepper
- 1 tbsp vegetable oil
- Cooked rice, for serving
- Lettuce leaves, for wrapping (optional)
Instructions:
1. In a bowl, mix together soy sauce, brown sugar, sesame oil, garlic, onion, pear (if using), green onions, sesame seeds, and black pepper to make the marinade.
2. Add the sliced beef to the marinade and mix well to ensure the beef is coated evenly. Cover and refrigerate for at least 1 hour, or overnight for best results.
3. Heat vegetable oil in a large skillet or grill pan over medium-high heat.
4. Add the marinated beef to the skillet in a single layer, making sure not to overcrowd the pan. Cook for 2-3 minutes per side, or until the beef is cooked through and caramelized.
5. Once cooked, remove the beef from the skillet and let it rest for a few minutes.
6. Serve the Bulgogi hot over cooked rice, garnished with extra green onions and sesame seeds. You can also serve it with lettuce leaves for wrapping.
7. Enjoy your delicious homemade Bulgogi!
Feel free to customize this recipe by adding vegetables like mushrooms, bell peppers, or carrots to the dish. You can also adjust the sweetness or saltiness of the marinade to suit your taste preferences.
veg_chef_prompt = ChatPromptTemplate.from_messages([
('system', 'You are a vegetarian chef specialized on making traditional recipies vegetarian. You find alternative ingredients and explain their preparation. You don"t radically modify the recipe. If there is no alternative for a food just say you don"t know how to replace it.'),
('human', '{recipe}')
])
veg_chain = veg_chef_prompt | chat
# chef_chain과 veg_chain을 결합
# veg_chain의 입력값 'recipe'를 chef_chain에서 받게 함
final_chain = {'recipe':chef_chain} | veg_chain
final_chain.invoke({
'cuisine':'Bulgogi'
})
Bulgogi is a popular Korean dish made with thinly sliced marinated beef that is grilled or stir-fried. Here is a simple recipe for making Bulgogi at home:
Ingredients:
- 1 lb thinly sliced beef (such as ribeye or sirloin)
- 1/2 cup soy sauce
- 1/4 cup brown sugar
- 2 tbsp sesame oil
- 3 cloves garlic, minced
- 1 small onion, grated
- 1/2 pear, grated
- 1/4 tsp black pepper
- 2 green onions, chopped (for garnish)
- Sesame seeds (for garnish)
- Optional: sliced mushrooms, bell peppers, or onions
Instructions:
1. In a bowl, mix together soy sauce, brown sugar, sesame oil, garlic, onion, pear, and black pepper to make the marinade.
2. Add the thinly sliced beef to the marinade and mix well to ensure the beef is coated. Marinate for at least 30 minutes, or overnight for best results.
3. Heat a large skillet or grill pan over medium-high heat. Add the marinated beef in a single layer and cook for 2-3 minutes per side, or until cooked through.
4. If adding vegetables, you can stir-fry them in the same pan after cooking the beef.
5. Once the beef is cooked, garnish with chopped green onions and sesame seeds.
6. Serve the Bulgogi hot with steamed rice and kimchi on the side.
Enjoy your homemade Bulgogi!To make this traditional Bulgogi recipe vegetarian, you can replace the thinly sliced beef with a plant-based alternative such as seitan or tempeh. These alternatives have a meaty texture and can absorb the flavors of the marinade well. Here's how you can prepare them as substitutes:
1. Seitan: Seitan is a popular meat substitute made from wheat gluten. You can find pre-made seitan in most grocery stores, or you can make your own by mixing vital wheat gluten with water and seasonings to form a dough. Once the dough is formed, you can simmer it in a flavorful broth to infuse it with taste before slicing it thinly for Bulgogi.
2. Tempeh: Tempeh is another great option for replacing beef in Bulgogi. It is made from fermented soybeans and has a firm texture that works well in stir-fries. To prepare tempeh for this recipe, steam it for about 10 minutes to reduce its bitterness, then slice it thinly and marinate it in the Bulgogi sauce for at least 30 minutes.
By using seitan or tempeh as substitutes for beef, you can enjoy a delicious vegetarian version of Bulgogi that stays true to the traditional flavors of the dish.
👉 Instructions 이후에 비건을 위해 불고기 대신 대체할 수 있는 재료를 소개하고 있음