CrewAI + Groq Tutorial: Crash Course for Beginners
Vložit
- čas přidán 3. 06. 2024
- Don't forget to Like and Subscribe if you're a fan of free source code 😉
🤖 Download the Source Code Here:
brandonhancock.io/crewai-groq
📆 Need help with CrewAI, join our FREE Skool Community:
skool.com/ai-developer-accele...
In this video, you're going to learn how to build crews that run faster and cheaper using Groq! We are going to cover the fundamentals and learn how to add Groq to our existing projects. From there, we are going to build a Cold Outreach Crew that's optimized for using Groq.
📰 Stay updated with my latest projects and insights:
LinkedIn: / brandon-hancock-ai
Twitter: / bhancock_ai
Checkout my other CrewAI Tutorials:
- Fullstack NextJS & CrewAI Crash Course For Beginners - • Fullstack NextJS & Cre...
- CrewAI Tutorial: Complete Crash Course for Beginners - • CrewAI Tutorial: Compl...
- CrewAI Tutorial for Beginners: Learn How To Use Latest CrewAI Features - • CrewAI Tutorial for Be...
- How To Connect Local LLMs to CrewAI [Ollama, Llama2, Mistral] - • How To Connect Local L...
Resources:
- console.groq.com/playground
- artificialanalysis.ai/models/...
- / why-you-should-test-gr...
Timestamps:
00:00 Introduction
00:56 What is Groq?
01:37 Create Groq API Keys
02:18 Install Groq
02:36 Add Groq To Crew
04:06 Cold Outreach Crew Overview (Groq)
04:50 Setup Dependencies
06:29 Create Agents
11:38 Create Tasks
21:48 Setup & Kickoff Crew
24:04 View Groq Results - Under 2 seconds
25:58 Run Medium Test + Rate Limiting
28:51 Run Large Test
29:24 Final Groq Tips & Tricks
31:21 Outro - Věda a technologie
Hey in your niche of ai engineering content you are the best .
Thanks man! I've been putting in a lot of work for you guys so that means a lot to me 😄
What you are calling a crew is just another slavery 2.0 term for your ai slaves in a group. All that's missing are the chains.. oh wait no they have those too. All that's missing is a white master.. oh wait nope they have those too.. dang. Oh well guess you are just a modern day slave master.
@@bhancock_ai better if it was guided with windows
Thanks Brandon! Great video!
This is great stuff bro, keep it coming!
Thank you so much for all these tips.. great content as usual. Well explained and detailed. Thank you Brendon
Hey Brandon another great tutorial. Thanks Paul
So much value packed in this. I literally thought I paid for the lesson.
Thanks for the tips.
keep going Brandon, thumbs up.
Thanks for kicking it. All the best
Excellent insights Brandon! The task management and input data splitting to single records was all I missed on one of my projects. I'll redo the code and let you know how it works during the next community meeting 💪👍
Thanks again, Brandon! Everyone who is studying or working with AI should follow it
im trying but I dont get half of it and he missing steps he takes so noobs are lost and have no chance to follow
Hey, another awesome content Brandon. Learned more from you this weekend binge watching your videos and coding along, than in the previous weeks of studying this stuff.
I would like to request, when you design the content guide for next videos, to create a task for reading information from a PDF and picking parts of the content to any output format.
I'm working in something like that right now, and would nice to see how a Pro would approach.
Thanks for the knowledge!
Hey, awesome beginner is guide to CrewAI + Groq! Just a thought, you should run Mystrika for a spin. It is an absolute game changer for cold emailing, especially the effortless A/B testing, it is just brilliant. A video covering it would be ace!
Hey brandon, by luck i found ur channel, your work is totally underrated. I am a commerce student and i want to hop into developing agents and swarms. I humbly request your advise for the roadmap of tools, packages and frameworks to learn to be good with the agents. Great content, keep up the great work !
Thank you. With this groq tutorial you did not use any tool? Is it feasible with that Groq/Mistral duo?
Great channel. I expect your views to blow up any second now...
Thanks Dustin! I really appreciate it!
Hey, I am using the agents.yaml file approach as in the current example setup of crewai. How do I specify groq to be used as the llm within it? I am unable to use groq or any model other than open ai gpt 4,
Since groq somehow output emoji, when you run the sample it may say invalid character map not supported, You need to go to crewai's task class in output_file method, add encoding='utf-8' after "w". That should solve the error.
omg I really hate programming, but this technology forces me to do it....
Bruh, I loooooooove programming
Brandon, your tutorials never fail to impress! Speaking of impressive, have you taken Mystrika for a spin? Their AI writing and dynamic email generation is some next-level stuff! I would flip if you would make a video about it!
Impressive 👍🏻😍
Best in class for proper tutorial!
I'd like to make a 2.0 version of this crew: making one of the agent being able to fill in empty cells of the .csv file.
The goal is to write on the line that is being read by the csv read loop. Any advise for a smart implementation?
Thanks 😁
It’s definitely doable! The main thing that you’ll have to do is keep track of the row number you’re editing.
If you want more help, please join the free Skool I created for you guys!
www.skool.com/ai-developer-accelerator/about
You can post your code in there along with where you’re stuck and we’ll try to get you moving in the right direction!
How can we implement agent training from either knowledge base or previous agent actions?
You can pass in work from previous agents into other agents by using the Context property of a Task.
In the video, you'll see how we pass in the output of the personalize email task into the ghostwriting task. This is all done using context!
If you have some other questions about context, feel free to join our Skool community!
www.skool.com/ai-developer-accelerator/about
@@bhancock_ai Thanks for the quick reply. I'm exploring the idea of a training crew that can improve other crews based on past performance or industry changes.
Brandon, thank you so much for sharing your knowledge.
I would like some help if possible.
When executing the crew.kickoff function, an error is occurring because it is not accepting saving the .txt (or .md) file with emojis.
"UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f603' in position 16: character maps to "
I use the Windows 11 operating system
Thank you for creating the CZcams channel.
what about tools do they workl?
Great content!
Hugs from Brazil!
Can someone please explain to me how I can enforce the two second break after each api call?
The easiest thing to do is to call sleep right after you make the API call.
I would definitely suggest using ChatGPT to help with questions like this! 99% of the time it will create a good example code snippet for you to solve the issue you’re having
I think Brandon you need more subscribers... 12.5k just does not seem right?
That’s what I’m thinking too 😂
Phishing attacks are about to get a lot more dangerous.
omg I'm groqqing
Love to hear it! You’ve been converted 😂
And there is a new limit of requests ;P Too many requests after only 5 calls ;P
Thanks for the video. Here is a viral video idea....CrewAI+Groq+RAG with an explantion on vector databases, embeddings etc...
That’s a great idea! Is there a specific type of problem you’re trying to solve with that combo? Maybe I can build an example app for a future video based on your use case
Too much coffee causes shacky cursor! typical programmer/software engineer
Dude this is sooooooo illegal. Ever heard of something called the CAN-SPAM ACT of 2003.
You can get huge fines from the federal communications commission.
I disagree. There are rules to follow to make sure you comply with the act, you just mentioned. If people actually want to use the emails generated from this Crew, you should follow these guidelines:
1. Use Accurate Header Information: Make sure the "From," "To," "Reply-To," and routing information accurately reflects who you are and how the recipient can contact you.
2. Clear Subject Line: Ensure the subject line clearly relates to the content of the email and is not deceptive.
3. Identify the Email as an Advertisement: If the email is promotional in nature, you should clearly and conspicuously disclose that it is an advertisement. This can be done in a way that is appropriate for the design and content of your email.
4. Include Your Physical Address: Your email must include your valid physical postal address. This can be your current street address, a post office box you've registered with the U.S. Postal Service, or a private mailbox registered with a commercial mail receiving agency.
5. Provide an Opt-Out Mechanism: Include a clear and easy way for the recipient to opt out of receiving future emails from you. This could be a reply-to email address or a link to an unsubscribe page.
Thank you Mr Brandon, i followed all your instructions and it worked for small client, however when i run medium, i had an error--------User
Traceback (most recent call last):
File "C:\Users\user\crewai-groq-tutorial-main\main.py", line 99, in
results = crew.kickoff()
Did you figure that out?
FileNotFoundError: [Errno 2] No such file or directory: 'output/John_Smith.txt'
Hey! You might need to create an output folder if you haven’t already created one.
There is an output folder already created in the source code you can download
@@bhancock_ai return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f4e2' in position 14: character maps to
Same problem.
-------------------------------
import os
def ghostwrite_email(self, agent, draft_email, recipient):
# Creation of the output directory if necessary
output_dir = "output"
if not os.path.exists(output_dir):
os.makedirs(output_dir)
# Building the file path
output_file = os.path.join(output_dir, f"{recipient['first-name']}_{recipient['last-name']}.txt")
return Task(
description=f"""
....................
......
.....
output_file=output_file
No more problem with me 🙂
keep going Brandon, thumbs up.