AutoGen TUTORIAL | Teaching PROMPTS to Your Agents

preview_player
Показать описание
Hello and welcome to another AutoGen Tutorial where we learn how we can teach our agents better prompting. This isn't full proof...as nothing is, but especially for some prompts/tasks where you need multiple things, we can let AutoGen craft the prompts for us so it can orchestrate the responses with better accuracy.

Don't forget to sign up for the newsletter below to give updates in AI, what I'm working on and struggles I've dealt with (which you may have too!):

=========================================================
=========================================================

📖 Chapters:
00:00 Introduction
00:10 Explanation
00:47 Code
02:53 Example Multiple Chats
03:22 Example w/ Better Prompt

💬 If you have any issues, let me know in the comments and I will help you out!
Рекомендации по теме
Комментарии
Автор

Hey I think this can help with prompting for some more complex tasks, especially when they require multiple tasks. What do you think?

TylerReedAI
Автор

Love all of your use cases. You must definitely be an entrepreneur that codes and not just a developer that codes 😂 love it, and by that I mean each and everyone of your posts is unique and actually practical. Too many other me too videos with the same outcome it’s like why’d you make this it’s already on the internet 😂, so thank you for fresh original and useful content and tutorials

build.aiagents
Автор

Does AutoGen have any feature where it lists no. of Prompts and we can select that prompt and use it ?

swarajnavthare
Автор

Dumb question, but I don't see autogen-teaching in your git repo. I like to type most of the code, but when you have the tasks and zip over them, I like to copy the tasks because it is all the busy work. Also it would be nice to know the versions of libraries you are using. I am having issues with AI code, because it is chainging so fast. In langchain, you cannot even copy their templates and get it working easily because you never know what version of langchain they used. I know the code is changing quickly and it is a hazard, but so many youtube and udemy classes become very difficult to use for people that are learning but are not experts already at programming.

When will the code for this video be in the git repo?

RetiredVet
Автор

🤣This is the recipe I got from running your code: 🤣
Recipe Name: Ultimate Chocolate Cake

Ingredients:
- 2 cups all-purpose flour
- 1 3/4 cups granulated sugar
- 3/4 cup unsweetened cocoa powder
- 2 tsp baking powder
- 1 1/2 tsp baking soda
- 1 tsp salt
- 2 large eggs
- 1 cup whole milk
- 1/2 cup vegetable oil
- 2 tsp vanilla extract
- 1 cup boiling water

Instructions:
1. Preheat the oven to 350°F (180°C) and grease and flour two 9-inch round baking pans.
2. In a large mixing bowl, combine flour, sugar, cocoa, baking powder, baking soda, and salt.
3. Add eggs, milk, oil, and vanilla extract to the dry ingredients and mix until well combined.
4. Stir in boiling water to the batter until smooth.
5. Pour the batter into the prepared pans and bake for 30-35 minutes or until a toothpick inserted comes out clean.
6. Let the cakes cool in the pans for 10 minutes, then transfer to a wire rack to cool completely.
7. Frost the cake with your favorite frosting and enjoy!

Obviously I must have made some errors in the copying the tasks from the video. A good learning opportunity.

RetiredVet