CrewAI + Groq Tutorial: Crash Course for Beginners

Sdílet
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

Komentáře • 63

  • @CodeSnap01
    @CodeSnap01 Před měsícem +11

    Hey in your niche of ai engineering content you are the best .

    • @bhancock_ai
      @bhancock_ai  Před měsícem

      Thanks man! I've been putting in a lot of work for you guys so that means a lot to me 😄

    • @orangehatmusic225
      @orangehatmusic225 Před měsícem

      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.

    • @craig6095
      @craig6095 Před měsícem

      @@bhancock_ai better if it was guided with windows

  • @leonorabogus1486
    @leonorabogus1486 Před měsícem +2

    Thanks Brandon! Great video!

  • @olegsmarandi-work
    @olegsmarandi-work Před měsícem

    This is great stuff bro, keep it coming!

  • @loryo80
    @loryo80 Před měsícem +1

    Thank you so much for all these tips.. great content as usual. Well explained and detailed. Thank you Brendon

  • @thefutureisbright
    @thefutureisbright Před měsícem +1

    Hey Brandon another great tutorial. Thanks Paul

  • @oshodikolapo2159
    @oshodikolapo2159 Před měsícem

    So much value packed in this. I literally thought I paid for the lesson.
    Thanks for the tips.

  • @aosamai
    @aosamai Před měsícem +1

    keep going Brandon, thumbs up.

  • @hectorprx
    @hectorprx Před měsícem

    Thanks for kicking it. All the best

  • @marcintabedzki3578
    @marcintabedzki3578 Před měsícem

    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 💪👍

  • @lukascharao
    @lukascharao Před měsícem +1

    Thanks again, Brandon! Everyone who is studying or working with AI should follow it

    • @AndyPandy-ni1io
      @AndyPandy-ni1io Před 13 dny +1

      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

  • @rheavictor7
    @rheavictor7 Před měsícem

    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!

  • @favianlopez1486
    @favianlopez1486 Před měsícem +1

    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!

  • @mufgideon
    @mufgideon Před měsícem

    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 !

  • @valentinmarguet575
    @valentinmarguet575 Před měsícem

    Thank you. With this groq tutorial you did not use any tool? Is it feasible with that Groq/Mistral duo?

  • @dustinandrews89019
    @dustinandrews89019 Před měsícem +1

    Great channel. I expect your views to blow up any second now...

    • @bhancock_ai
      @bhancock_ai  Před měsícem

      Thanks Dustin! I really appreciate it!

  • @bilalmoten8855
    @bilalmoten8855 Před měsícem

    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,

  • @dukenukem9666
    @dukenukem9666 Před měsícem

    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.

  • @nuclearthrone2497
    @nuclearthrone2497 Před měsícem +4

    omg I really hate programming, but this technology forces me to do it....

    • @Prox-wb9tk
      @Prox-wb9tk Před měsícem

      Bruh, I loooooooove programming

  • @madimndz9091
    @madimndz9091 Před měsícem

    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!

  • @1242elena
    @1242elena Před měsícem +1

    Impressive 👍🏻😍

  • @valentinmarguet575
    @valentinmarguet575 Před 11 dny +1

    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?

    • @bhancock_ai
      @bhancock_ai  Před dnem +1

      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!

  • @jjclark968
    @jjclark968 Před měsícem +2

    How can we implement agent training from either knowledge base or previous agent actions?

    • @bhancock_ai
      @bhancock_ai  Před měsícem +1

      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

    • @jjclark968
      @jjclark968 Před měsícem

      @@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.

  • @renatocinttra
    @renatocinttra Před měsícem

    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.

  • @artmusic6937
    @artmusic6937 Před měsícem

    what about tools do they workl?

  • @dicasdedevgpt
    @dicasdedevgpt Před měsícem +2

    Great content!
    Hugs from Brazil!

  • @vaioslaschos
    @vaioslaschos Před 10 dny +1

    Can someone please explain to me how I can enforce the two second break after each api call?

    • @bhancock_ai
      @bhancock_ai  Před dnem

      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

  • @mickelodiansurname9578
    @mickelodiansurname9578 Před měsícem +1

    I think Brandon you need more subscribers... 12.5k just does not seem right?

    • @bhancock_ai
      @bhancock_ai  Před měsícem

      That’s what I’m thinking too 😂

  • @bens4446
    @bens4446 Před měsícem

    Phishing attacks are about to get a lot more dangerous.

  • @LukasSmith827
    @LukasSmith827 Před měsícem +1

    omg I'm groqqing

    • @bhancock_ai
      @bhancock_ai  Před měsícem

      Love to hear it! You’ve been converted 😂

  • @marko_z_bogdanca
    @marko_z_bogdanca Před měsícem

    And there is a new limit of requests ;P Too many requests after only 5 calls ;P

  • @smashrockmediainc6932
    @smashrockmediainc6932 Před měsícem +2

    Thanks for the video. Here is a viral video idea....CrewAI+Groq+RAG with an explantion on vector databases, embeddings etc...

    • @bhancock_ai
      @bhancock_ai  Před měsícem

      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

  • @svenvanwier7196
    @svenvanwier7196 Před 10 dny +1

    Too much coffee causes shacky cursor! typical programmer/software engineer

  • @MeMine-zu1mg
    @MeMine-zu1mg Před měsícem

    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.

    • @bhancock_ai
      @bhancock_ai  Před měsícem +4

      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.

  • @spigg777
    @spigg777 Před měsícem +1

    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()

  • @1242elena
    @1242elena Před měsícem +5

    FileNotFoundError: [Errno 2] No such file or directory: 'output/John_Smith.txt'

    • @bhancock_ai
      @bhancock_ai  Před měsícem +2

      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

    • @1242elena
      @1242elena Před měsícem

      @@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

    • @paulham.2447
      @paulham.2447 Před měsícem +2

      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 🙂

  • @olegsmarandi-work
    @olegsmarandi-work Před měsícem

    keep going Brandon, thumbs up.