CrewAI + Groq Tutorial: Crash Course for Beginners

Поділитися
Вставка
  • Опубліковано 22 тра 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
  • Наука та технологія

КОМЕНТАРІ • 52

  • @CodeSnap01
    @CodeSnap01 Місяць тому +11

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

    • @bhancock_ai
      @bhancock_ai  Місяць тому

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

    • @orangehatmusic225
      @orangehatmusic225 Місяць тому

      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 Місяць тому

      @@bhancock_ai better if it was guided with windows

  • @olegsmarandi-work
    @olegsmarandi-work Місяць тому

    This is great stuff bro, keep it coming!

  • @leonorabogus1486
    @leonorabogus1486 Місяць тому +2

    Thanks Brandon! Great video!

  • @loryo80
    @loryo80 Місяць тому +1

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

  • @favianlopez1486
    @favianlopez1486 Місяць тому +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!

  • @oshodikolapo2159
    @oshodikolapo2159 Місяць тому

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

  • @lukascharao
    @lukascharao Місяць тому +1

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

    • @AndyPandy-ni1io
      @AndyPandy-ni1io 10 годин тому +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

  • @thefutureisbright
    @thefutureisbright Місяць тому +1

    Hey Brandon another great tutorial. Thanks Paul

  • @marcintabedzki3578
    @marcintabedzki3578 Місяць тому

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

  • @aosamai
    @aosamai Місяць тому +1

    keep going Brandon, thumbs up.

  • @rheavictor7
    @rheavictor7 Місяць тому

    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!

  • @dustinandrews89019
    @dustinandrews89019 Місяць тому +1

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

    • @bhancock_ai
      @bhancock_ai  Місяць тому

      Thanks Dustin! I really appreciate it!

  • @hectorprx
    @hectorprx Місяць тому

    Thanks for kicking it. All the best

  • @smashrockmediainc6932
    @smashrockmediainc6932 27 днів тому +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  27 днів тому

      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

  • @mufgideon
    @mufgideon Місяць тому

    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 !

  • @madimndz9091
    @madimndz9091 Місяць тому

    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!

  • @nuclearthrone2497
    @nuclearthrone2497 Місяць тому +4

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

    • @Prox-wb9tk
      @Prox-wb9tk Місяць тому

      Bruh, I loooooooove programming

  • @1242elena
    @1242elena Місяць тому +1

    Impressive 👍🏻😍

  • @valentinmarguet575
    @valentinmarguet575 Місяць тому

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

  • @AndyPandy-ni1io
    @AndyPandy-ni1io 10 годин тому

    what code editor are you using? and whats poetry or pip thought this was for newbies I'm lost at 2min 40 sec, agents file that you already set up GREAT how the offf do I set that up then shocking teacher

  • @dukenukem9666
    @dukenukem9666 Місяць тому

    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.

  • @jjclark968
    @jjclark968 Місяць тому +2

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

    • @bhancock_ai
      @bhancock_ai  Місяць тому +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 Місяць тому

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

  • @bilalmoten8855
    @bilalmoten8855 Місяць тому

    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,

  • @dicasdedevgpt
    @dicasdedevgpt Місяць тому +2

    Great content!
    Hugs from Brazil!

  • @bens4446
    @bens4446 25 днів тому

    Phishing attacks are about to get a lot more dangerous.

  • @artmusic6937
    @artmusic6937 Місяць тому

    what about tools do they workl?

  • @renatocinttra
    @renatocinttra Місяць тому

    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 UA-cam channel.

  • @LukasSmith827
    @LukasSmith827 Місяць тому +1

    omg I'm groqqing

    • @bhancock_ai
      @bhancock_ai  Місяць тому

      Love to hear it! You’ve been converted 😂

  • @mickelodiansurname9578
    @mickelodiansurname9578 Місяць тому +1

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

    • @bhancock_ai
      @bhancock_ai  Місяць тому

      That’s what I’m thinking too 😂

  • @marko_z_bogdanca
    @marko_z_bogdanca Місяць тому

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

  • @MeMine-zu1mg
    @MeMine-zu1mg Місяць тому

    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  Місяць тому +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.

  • @1242elena
    @1242elena Місяць тому +5

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

    • @bhancock_ai
      @bhancock_ai  Місяць тому +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 Місяць тому

      @@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 Місяць тому +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 🙂

  • @spigg777
    @spigg777 Місяць тому +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()

  • @olegsmarandi-work
    @olegsmarandi-work Місяць тому

    keep going Brandon, thumbs up.