CrewAI + Groq Tutorial: Crash Course for Beginners

Поделиться
HTML-код
  • Опубликовано: 28 май 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
  • НаукаНаука

Комментарии • 62

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

  • @lukascharao
    @lukascharao Месяц назад +1

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

    • @AndyPandy-ni1io
      @AndyPandy-ni1io 6 дней назад +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

  • @smashrockmediainc6932
    @smashrockmediainc6932 Месяц назад +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  Месяц назад

      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

  • @olegsmarandi-work
    @olegsmarandi-work Месяц назад

    This is great stuff bro, keep it coming!

  • @oshodikolapo2159
    @oshodikolapo2159 Месяц назад

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

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

  • @nuclearthrone2497
    @nuclearthrone2497 Месяц назад +4

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

    • @Prox-wb9tk
      @Prox-wb9tk Месяц назад

      Bruh, I loooooooove programming

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

  • @leonorabogus1486
    @leonorabogus1486 Месяц назад +2

    Thanks Brandon! Great video!

  • @thefutureisbright
    @thefutureisbright Месяц назад +1

    Hey Brandon another great tutorial. Thanks Paul

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

  • @aosamai
    @aosamai Месяц назад +1

    keep going Brandon, thumbs up.

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

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

  • @valentinmarguet575
    @valentinmarguet575 Месяц назад

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

  • @valentinmarguet575
    @valentinmarguet575 4 дня назад

    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?

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

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

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

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

  • @AndyPandy-ni1io
    @AndyPandy-ni1io 6 дней назад

    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

  • @vaioslaschos
    @vaioslaschos 3 дня назад

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

  • @bens4446
    @bens4446 Месяц назад

    Phishing attacks are about to get a lot more dangerous.

  • @1242elena
    @1242elena Месяц назад +1

    Impressive 👍🏻😍

  • @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 RUclips channel.

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

  • @LukasSmith827
    @LukasSmith827 Месяц назад +1

    omg I'm groqqing

    • @bhancock_ai
      @bhancock_ai  Месяц назад

      Love to hear it! You’ve been converted 😂

  • @marko_z_bogdanca
    @marko_z_bogdanca Месяц назад

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

  • @dicasdedevgpt
    @dicasdedevgpt Месяц назад +2

    Great content!
    Hugs from Brazil!

  • @svenvanwier7196
    @svenvanwier7196 3 дня назад

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

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

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

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