CrewAI Step-by-Step | Complete Course for Beginners

Поделиться
HTML-код
  • Опубликовано: 8 июн 2024
  • This is a full step-by-step introductory tutorial to CrewAI. In it, you will learn how to create teams of autonomous agents and AI crews to make your work for you. In this clear explanation, in the form of a crash course, we'll unveil the secrets behind Crew AI and how it works, showing you how to start from scratch without using their CLI builder tools. By the end of this tutorial, you'll have crafted your own intelligent crew of AI agents, capable of independent thought and designed to perform complex tasks. You will be able to create your own crews of AI agents who may do your work for you.
    Links
    ===
    🔗 Blog post: alejandro-ao.com/crew-ai-cras...
    💬 Join the Discord Help Server: link.alejandro-ao.com/HrFKZn
    ❤️ Become a Patreon (thanks): link.alejandro-ao.com/patreon
    🍺 Buy me a coffee... or a beer (thanks): link.alejandro-ao.com/YR8Fkw
    ✉️ Get the Newsletter: link.alejandro-ao.com/AIIguB
    Timestamps
    ===
    0:00 Introduction
    1:49 What is CrewAI
    3:16 What we will build
    6:04 CrewAI Components
    8:51 Project Setup
    10:01 Create Tasks
    17:48 Create Agents
    23:53 Create Tools
    34:37 How Agents Work
    44:12 Create Your Crew
    53:07 Note on Costs
    55:17 Setup API Keys & LangSmith
    56:55 Test with GPT-3
    1:03:00 Test with GPT-4
    1:06:31 Conclusion
    What You Will Learn
    ===
    - Fundamentals of Crew AI: Get a solid understanding of how Crew AI operates behind the scenes.
    - Building Your Crew: Follow our detailed instructions to create your crew from the ground up, ensuring you grasp the mechanics involved.
    - Design and Diagrams: Utilize our expertly prepared diagrams to visualize the process, making complex concepts easy to understand.
    - Hands-On Experience: We'll guide you through designing your own autonomous agents, using real-world examples and practical coding sessions.
    - Additional Resources: Access the written version of this tutorial in the video description, complete with text, diagrams, code snippets, and a link to the GitHub repository for an immersive learning experience.
    Embark on your journey to mastering Crew AI and unlock the potential of autonomous agents in your applications. Whether you're a beginner or looking to expand your knowledge, this tutorial is your gateway to the future of intelligent systems.
  • НаукаНаука

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

  • @johnbarbuto5387
    @johnbarbuto5387 Месяц назад +23

    I'm a retired neurologist - very interested in all of this, but from an entirely different background (and era). I'm absolutely fascinated at how these processes are similar to neurobiology. Of course, as humans we are building AI to "think like humans" (which has its strengths and weaknesses). However, it is fascinating to watch this arena "evolve" in real time - developing function elements just as brains developed function elements over hundreds of millions of years. In this case, specifically, I'm fascinated by the "backstory" element. It is essentially programming a "way of thinking" that functions somewhat similar to how our own "personal stories" program our ways of thinking. Thank you. It is a fascinating time on this planet!

    • @leonardommarques
      @leonardommarques Месяц назад +3

      Thank you for the input. How about you make a 10min video with your thougs and comments on this?

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

      funny you say this, it reminds me of waking up from operation and feeling great until my mind kicked in and I recall it was like programs starting up then the pain arrived. That was early 90s so AI wasnt even an imaginary thing yet. But I felt like a coded program. Makes you wonder.

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

      @@markdkberry Indeed. We actually have lots of "coded programs". The old (and surprisingly naive) idea was that we were born with "tabula rasa" - the empty slate, no inherent programs. Antoine de St. Exupery wrote: "more wisdom is latent in things as they are than in all the words men use". Indeed, a lot of ideas about behavior are just stupid if you simply look around at the whole planet of living creatures providing commentary on the antecedents of behavior - to those willing to look.
      Indeed, pain behavior is highly complex. It has the ability to both turn up and turn down the perception of pain from a given source of pain (the nociceptor). Within adaptive reason, pain is turned down during sleep. (Not to say it can't wake us up, but it does tend to be less perceived when we sleep - thus allowing sleep, a necessary physiological time.) Pain behavior is a long story.

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

      ​@johnbarbuto5387 Very interesting information, thanks. I've been imagining that advanced ai, with tools like this and "flow engineering" and architecture, will end up being like hybrid of human brain/mind organizational structures and organizational structures we have developed with people. Which will further develop in a distributed way, like an ai internet, or ai being deeply integrated with the internet.
      Seems like developers aren't up to speed with the workings of the human mind! They might consider studying more in neuro and psych.

    • @happyshadow
      @happyshadow 5 дней назад

      Yes I've thought a few times that with how complicated and intricate these systems become the more we could be faced with AI "mental health" issues when destructive processes go unnoticed 😅

  • @BrandonFoltz
    @BrandonFoltz 2 месяца назад +20

    Oh...my...goodness. I have been waiting for a walk-through of crewAI and not just people talking over code screens. This worked for me on the first try which is a miracle. Agents are the next big thing and I am grateful for the video and the time I spent learning this was well worth it!

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +3

      Hey brandon! It's great to hear this. Yeah, I had seen many videos showing some code generated by CrewAI's GPT and i thought it was not really clear what was going on behind the scenes. For real projects, I would be using their CLI and their GPT to create the crews because it's more efficient, but it is super useful to know how the system is designed!

    • @BrandonFoltz
      @BrandonFoltz 2 месяца назад +2

      @@alejandro_ao Yep! Since the code is so modular, I have found it quick to do. Just copy, paste, edit, etc. I have also been using LLMs to create backstories, tasks, etc.
      Maybe a next step would be to create a simple UI on the main script...hint...hint. :)
      Keep up the great work as always!

  • @GerardoBarcia
    @GerardoBarcia 2 месяца назад +5

    You’re getting better over time! Thanks for sharing your knowledge!

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      thank you man! i appreciate it :)

  • @ModernCentrist
    @ModernCentrist 2 месяца назад +3

    I've been waiting for a video like this. Thank you!

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +2

      great! i will be making a series about this actually

  • @Jaiken451
    @Jaiken451 2 месяца назад +2

    Heading over to Patreon this morning. Killer tutorials 🙏🏼🙌

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

    Bro this tutorial was amazing!! Thank you for breaking it down in such detail. I feel confident about using CrewAI in the wild. Trying to get a custom crew for content creation made by the end of this week. Let's gooooo!

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

    Thank you for the great vido! Very well presented. Looking forward to additional videos.

  • @mygicarskrsk4465
    @mygicarskrsk4465 2 месяца назад +1

    thanks for taking time to create these amazing helpful videos!

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      i really enjoy it. and i have learned so much by making them and talking to the community here. you guys are awesome

  • @free_thinker4958
    @free_thinker4958 2 месяца назад

    You're the man 💯👏 rarely high quality content.

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +1

      I appreciate that! Will do!

  • @bodmaniko
    @bodmaniko 2 месяца назад

    Beautifully done, thank you !

  • @youngchrisyang
    @youngchrisyang 2 месяца назад +1

    Another great content bro! This is definitely more structural and abstract way to create a agent team :) Also thanks for the notes on costs, it's definitely a ROI question.

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +1

      no worries mate. sure! i mean, usually, i would use their CLI and their GPT to set all this up. but i figured it was useful to see what was actually happening behind the scenes :)

  • @TomVanSchoor
    @TomVanSchoor 23 дня назад

    Awesome content Alejandro 👍
    I love how you build it from scratch so that anyone can follow. You earned a subscribe and notify-all from me 😜

    • @alejandro_ao
      @alejandro_ao  22 дня назад

      Hey Tom! Thanks, I appreciate it! i try to make all the videos as beginner-friendly as possible :) New tutorial coming up today!

  • @ibikunleadekiitan9882
    @ibikunleadekiitan9882 2 месяца назад

    Beautiful idea

  • @duponce
    @duponce 2 месяца назад

    Very good, sensational, congratulations. Without a doubt the best video I've seen so far!

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      this means a lot man, thanks :)

  • @hakeemowais9845
    @hakeemowais9845 2 месяца назад

    Thank you
    Was waiting for Agents, Tools

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      let me know what you think of it!

  • @user-bb6hp8hn2f
    @user-bb6hp8hn2f 2 месяца назад +2

    crewAI is a good tool, but if you consider it from multiple perspectives, for example:
    1. Self-awareness, such as: Who are you? What can you do? What's the date today?
    2. MySQL database query, such as: how many data in the table? What is the highest temperature in 2024? etc.
    3. Vector library (This may include some basic knowledge, and it is not necessary to query MySQL. Of course, self-awareness can also be included here to simplify things.)
    I think it's difficult to achieve the three aspects simultaneously, as they have different dimensions, which makes me excited.
    If you can publish a video on this, I believe it will be viewed by many people because it is very practical. Thank you. Wish you well.

  • @samertallauze729
    @samertallauze729 23 дня назад

    Thank you. Well presented :)

  • @moejobe
    @moejobe 2 месяца назад

    Awesome Video! Thank you for putting this together~

  • @funmiemore194
    @funmiemore194 2 месяца назад

    Thank you for the detailed breakdown!!

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +1

      hey Funmi! it's my pleasure :)

  • @user-zt2dj4rl6d
    @user-zt2dj4rl6d 2 месяца назад +3

    An excellent tutorial, and the materials were also very well done.
    Looking forward to additional videos on:
    - crewAI memory (this is not that well documented in crewAI, but I'm intrigued by the possibilities)
    - crewAI hierarchical processes
    - crewAI and advanced uses of Langchain (e.g. reasonably sophisticated RAG)

  • @user-xj1bc8hk8o
    @user-xj1bc8hk8o 2 месяца назад

    Awesome, thank you!

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

    Thanks!

  • @crepusculoooo
    @crepusculoooo 2 месяца назад

    thanks alejandro? gracias por tu contenido de alta calidad!

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      muchas gracias a ti! saludos!

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

    I wanna say the video is so good and easy to understand, I HAVE ZERO CODING background! im still able to follow !!!

  • @rvick3914
    @rvick3914 2 месяца назад

    Very informative content Thahnks bro

  • @sr.modanez
    @sr.modanez Месяц назад +1

    parabéns, perfeito, traga novos usos para estudo, estou impressionado com isso, obrigado por ter nos mostrado.

  • @shadowfreaper8158
    @shadowfreaper8158 28 дней назад +1

    Bro you should use Gemini pro for your testing its just as powerful as gpt 3.5 but its free to use all you want it what I used in this video for testing . Hopfully in the future more large llm will be free to use.
    Ps - Thank you so much for this as a high school kid you made it so easy for me thank you

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

    Thanks, all the best

  • @trungtalks
    @trungtalks 2 месяца назад

    Thank you, hello from Vietnam

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      thanks man! hello from france!

  • @kaidone1
    @kaidone1 2 месяца назад

    cant wait to test it out.
    a great next idea would be cost saving and calculation with ai

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      you have a section in the video that shows how to monitor exactly how much you are spending. i that what you meant?

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

    Great content! What is the tool you used for drawing the diagrams?

  • @AIdevel
    @AIdevel 2 месяца назад

    This video is particularly beneficial I have already begun to think about using crew AI to automate tasks in the HR department this video will help me a lot to achieve that once I wrap into a front end UI thanks Alejandro for making these tremendously helpful videos ❤❤

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      adding a GUI is an excellent idea

  • @oberdansantos5802
    @oberdansantos5802 17 дней назад

    Embora seja muito conteúdo, ele foi bem articulado 🤖. Então, parabéns🍻 pela leveza da condução da apresentação do video.

  • @hakikitosunpasa335
    @hakikitosunpasa335 2 месяца назад

    Amazing, simple, clean and well explained. Thanks!
    I got confused in one part though, do I need to give contexts for tasks considering the agent working order? Basically does it follow task order or agent order?

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      great, thanks! so since we are using a sequential process, it follows the task order. this means that the tasks will be executed one by one in the order that you specify them when you create your crew.
      there is, however, a possibility of creating a crew with a "manager" that decides by himself the order of the tasks and the agents to assign them to. this would be a "hierarchical" process. i will make a video about it soon!

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

    Hello, Alejandro! First of all, thanks for the great content you bring to our community of AI fans. /Question: How can I make this example work using an Azure OpenAI API Key along with its endpoint? Any help will be appreciated. Thanks!

  • @softwareideology2033
    @softwareideology2033 2 месяца назад +1

    Hi ! I impressed with your chat with MySQL solution Can you make a video about chat with api which has swagger docs ?

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

    🎉 blog post looks amazing, what software did you use for it?

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

      hey there, i use Hugo (Go-based static website generator) for the static website and a theme called Blowfish. i love the set up. i might make a video about it, even though it is not very AI

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

    You have a nice voice Alejandro

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

    Can this be made to work with Ollama and local LLM's? Would it be possible to demo this please? Reason I ask is when I follow the above I get the following error: Agent stopped due to iteration limit or time limit

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

    thanks for sharing. could you share the "how agents work" page?

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

    Next, I'd like to see something similar using Llama 8b API, or Groq API? Not sure how to change the code to get that functional and working tbh. But I'd like to see how it works. Any idea on how I can start experimenting with it. I get lost where you create the tools because you are using Exa, if that makes sense. I know you said you'll be looking at different Llm's below. Keep up the great work, very comfortable following along with you. Thank you so much!!

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

    Overall, a fabulous, clear, detailed examination of CrewAI use with agents. Inclusion of cost issues at the end was very, very helpful for real-world analysis. Now here is a final question. I have near-zero knowledge of programming Python, use of GitHub, and programming CrewAI. I'm reasonably smart but this is not my area of expertise. Presume I wanted to hire you to do a task similar to what you did here. Ballpark, how much would that cost? Or, how would I correctly ask someone about programmer costs for this kind of function? (I'm building a neuroscience-and-theater based educational tool with a colleague and this kind of research could be useful to us.)

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

    Nice Tutorial,
    One question - how to share the output of 1 task with another task, is it possible to share the context? if yes then how?

  • @shingenma
    @shingenma 2 месяца назад

    Very well done introduction, as always.
    Is it better to use this or LangGraph? I'm curious to know if you have an opinion about the best framework for working with agents.

    • @TomVanSchoor
      @TomVanSchoor 23 дня назад

      It should be used in conjunction with LangGraph, together they are an amazing ecosystem where you can use LangGraph as the control flow between different Agent Crews.
      And they are completely compatible since under the hood they are all LangChain Agents. 👍

  • @biswanathbiswas5686
    @biswanathbiswas5686 2 месяца назад

    Thanks for the great content, a quick clarification, can we use open-source LLM like Mistral, LLAMA 2, etc. instead of OPENAI also any alternative to EXA. This is to control the cost while testing.

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +2

      absolutely. there is not a very flexible way to do it so far, but i will be making a video about more llms and other tools. in the meantime, you can do the following for mistral:
      OPENAI_API_KEY=your-mistral-api-key
      OPENAI_API_BASE=api.mistral.ai/v1
      OPENAI_MODEL_NAME="mistral-small"
      more info here: docs.crewai.com/how-to/LLM-Connections/#configuration-examples

  • @wg5920
    @wg5920 2 месяца назад +1

    Amazing tutorial. It would be great if a new one can be done using Local Models. Besides the differences in capabilities of local LLM against Chat-GPT, the main issue is getting tools to work, which severely limits what you can do with local models

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      local models are coming up next week! and yeah, tools are the tricky part. that's what takes me the most time when preparing these tutorials

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

    Hi, I am adding the gemini model to the agents using the llm parameter, but the model does not begin executing, after showing " Entering new CrewAgentExecutor chain..." two times there is no further steps being taken after that. Can you help me resolve this issue?

  • @stephaneleroi8506
    @stephaneleroi8506 8 дней назад

    Thank you very much for the video. Can you tell me for information what is the code assistant you are using ? Thx a lot

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

      that' would be github copilot, really recommend

  • @mathavansg9227
    @mathavansg9227 2 месяца назад

    bruh never fail to surprise us with the up to date content

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      and there is much more coming up! 😎

  • @jjclark968
    @jjclark968 2 месяца назад

    So the tasks class could be consider the "process"?

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

    Hello Alejandro, please implement this OS-World, this can be the solution for a lot of use cases in which agents have to work with the compute OS-WORLD

  • @happyshadow
    @happyshadow 5 дней назад

    Could a workflow be created that could interact with an OS X Audio software (for example logic or cubase) to carry out tasks?
    For example grouping audio files, dropping those files into the app, colour coding, sorting into folders and maybe even using the application to assess audio files to determine volume levels.
    I'm keen to speed up the mundane part of my work

  • @chibuzoemelike6403
    @chibuzoemelike6403 2 месяца назад

    This is so good thank you so much for this course. Can crewai be used to create a chatbot where it's conversational? Which has a memory like lagchain?

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      absolutely! i'm working on a video about this ;)

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

    Hello, First of all, thank you for your video! I am getting repeated errors while using the search tools. I think it is related to EXA API: "I encountered an error while trying to use the tool. This was the error: eval() arg 1 must be a string, bytes or code object.
    Tool get_contents accepts these inputs: get_contents(ids: str) - Get the contents of a webpage.
    The ids must be passed in as a list, a list of ids returned from `search`." Could you help me please?

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

    Have I missed a step?
    ERROR: Cannot install -r requirements.txt (line 1) and python-dotenv==1.0.1 because these package versions have conflicting dependencies.
    The conflict is caused by:
    The user requested python-dotenv==1.0.1
    crewai 0.22.5 depends on python-dotenv==1.0.0

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

    Is it possible to have an orchestration layer that call different crews that solve specific tasks and pass back results?If so can you do a video about it in the future?

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

      hey Jim! so good to hear from you! this would be so awesome, and it is not super hard to build. all you would need is a crew that creates and tests crews based on a user's input. i will try to make a video about that, maybe even with a GUI

  • @user-tq4yh9ol8o
    @user-tq4yh9ol8o 2 месяца назад

    What difference did you feel between Crewai and Langgraph? When would you use each one?

  • @duanxn
    @duanxn 2 месяца назад

    Great tutorial! Is there anyway to run local model instead of OpenAI model with CrewAI?

    • @duanxn
      @duanxn 2 месяца назад

      I found the document for connecting local running model. Thanks

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +1

      great! how did that go? did you manage to set up ollama?

    • @duanxn
      @duanxn 2 месяца назад

      @@alejandro_ao thanks for following up. Yes, it worked.

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

    Removed my other comment having now watched the video and understanding the costs better. Great video and breakdown. Might be a better idea to mention cost at start, not just end, just so we know if this is a free service or not. This isn't free, but the cost to test it is small. I still prefer to know that, as I wont be handing over my credit card details to Open AI just to test this, so this is effectively of no use to me, and I didnt find that out until the very end. I would definitely be interested more in services outside of the big tech companies for a bunch of reasons. Open source outside of big tech control is important to ensure a healthy future, imo. Despite your saying it has problems with local LLMs and only paid ones work, it would be good to see this working with local download LLMs, given what I saw from GPT4 also suggested cat coffee shops could work and I suspect that is hallucination too.

    • @alejandro_ao
      @alejandro_ao  29 дней назад

      hey Mark. thanks for the feedback. i will keep that in mind for next videos. and yeah, i really see a very close future when most of these automations can be run locally with open source models. this video came out before llama3, but actually llama3 is the first model i found that is very reliable for local crews. have you tried it?

  • @bahamaej
    @bahamaej 2 месяца назад

    Awesome tutorial and I'm getting ready to explore crews myself. Sorry if I missed but can you give the total cost for the Crews using 3.5Turbo vs. GPT4? I think 3.5T was 4 euros, but I didn't catch the total cost for the GPT4 crew

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      hey there, actually after tweaking a little bit the crew (especially after removing the tools from some agents who didn’t really need them), the final cost with GPT-4 was less than 1 USD.
      GPT-3 might be slightly cheaper but not too much because it tends to make more requests (it makes more mistakes and tries to correct itself time after time). also in general, for agentic behaviour, results are pretty bad on GPT-3. I’d go for gpt-4 all day long

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

    May I know what llm operating these agent. Can use differnt LLM&VLM?

    • @TomVanSchoor
      @TomVanSchoor 23 дня назад

      You can pass in the LLM you want to use in the Agent() constructor, so you could use a different model based on the Agent requirements.
      Even local models are possible to be used as long as they are able to handle functions (there are quite a few that support functions)
      The default LLM that is being used is set up in the Agent source code as:
      llm: Any = Field(
      default_factory=lambda: ChatOpenAI(
      model=os.environ.get("OPENAI_MODEL_NAME", "gpt-4")
      ),
      description="Language model that will run the agent.",
      )
      So the default is GPT-4 and you can change that by setting a variable in your .env OPENAI_MODEL_NAME=gpt-4o (or any other model)

  • @pauledam2174
    @pauledam2174 5 дней назад

    can anyone tell me where MeetingPrepTasks is defined in the github repo?

  • @dikshyakasaju7541
    @dikshyakasaju7541 2 месяца назад

    Amazing!!!
    But how is this different from LangChain Agents and Tools and when to use one over another?

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +1

      Hey there! Thanks :) CrewAI is actually built on top of LangChain agents. It allows you to create a team of LangChain agents that work together and interact with each other. You could achieve the same thing (a team of agents) by using LangChain agents alone, but you would have to code the entire framework of how they interact with each other and organize their tasks. Effectively, you would be coding your own version of CrewAI by doing that...
      I would say that if you need a single agent, LangChain alone is the way to go. If you want a tea of agents that would replace an entire departmemt in a company, then maybe CreaAI is for you :)
      A more direct comparison of two products that do the same thing would be CrewAI vs AutoGen, for example!

    • @dikshyakasaju7541
      @dikshyakasaju7541 2 месяца назад

      @@alejandro_ao Thanks for the brief explanation. Totally makes sense. :)

  • @jasonsalgado4917
    @jasonsalgado4917 21 день назад

    This is all nice for a single crew. But what if you want to switch between multiple crews? What if I have two different crews in the AI needs to decide which task is most appropriate for which crew

    • @alejandro_ao
      @alejandro_ao  16 дней назад

      you would probably need to plug in each crew to a tool and then make an agent choose between those two tools. that's where i would start, at least

  • @mpazaryna
    @mpazaryna 17 дней назад

    Thanks for the work. I reran this and modified it to use gpt4-o, and on review (I used AgentOps Dashboard), the cost was $3.24. That seems to be very high. Are you seeing a similar charge? Thanks

    • @alejandro_ao
      @alejandro_ao  16 дней назад

      hey there, yeah that seems a bit high, especially for gpt-4o, which is supposed to be cheaper than gpt-4. are you sure that the crew is actually calling this model?

    • @mpazaryna
      @mpazaryna 16 дней назад

      @@alejandro_ao Yes. If you're interested, I can send you the run results from the AgentOps Dashboard. It shows 118k prompt tokens and 14k completion tokens.

  • @divyanshmishra535
    @divyanshmishra535 2 месяца назад +1

    can we try it with open source models ?

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +1

      sure, they have an integration with ollama. and with a bit of tweaking, you can use any model that langchain has an integration for. coming up in the next video!

  • @sdmj45
    @sdmj45 2 месяца назад

    What's the plugin do you use to auto complete your code in vs studio?

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      that's github copilot

    • @sdmj45
      @sdmj45 2 месяца назад

      @@alejandro_ao thanks, is it free for using?

  • @attilavass6935
    @attilavass6935 2 месяца назад

    What LLMs did work well with CrewAI for you beside gpt-4-turbo, at least for specific tasks?

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +1

      so far i have tried mixtral8x7b with groq and was working pretty good too. but that requires a bit more tweaking behind the scenes. i might do a video with benchmarks, actually...

    • @attilavass6935
      @attilavass6935 2 месяца назад

      @@alejandro_ao which role was tested with mixtral with success: all or just less important ones?

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      @@attilavass6935 i used the same llm for all agents here

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

    Excellent. No annoying, heavy accent, no unpleasant grating or whining voice.
    What software was used to create the diagrams?

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

    exa_py==1.0.9 wont install, also I get 63 errors does that matter? also my writing is different colour does that mean this don't work?

    • @alejandro_ao
      @alejandro_ao  16 дней назад

      what version of python are you using? are you using conda environments? you can let me know with a bit more detail on the discord server. you can post your code there and maybe i can help you out: link.alejandro-ao.com/discord
      please tag me there when you post your question to be sure that i see it!

  • @agugi
    @agugi 13 дней назад

    I wish you would give an example that is more useful rather than one taken from the documentation. For instance, you could prepare and send an Instagram post once a week. Or, I don't know, you could examine Google ads and prepare a more effective ad campaign to surpass competitors. The ones in the documentation are certainly very helpful, but they contain information that is not useful to anyone. Maybe they are ideal for understanding the basics, but if you are going to teach how to build an agent from scratch, wouldn't it be great if it was something more useful and something people would want to use?

  • @user-gd6gt8hi5r
    @user-gd6gt8hi5r 15 дней назад

    You are handsome, and look kind. I couldn’t focus on the video🎉

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

    👍👌❤

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

    I am no programmer... yet... maybe that is why it doesn't work. I have installed crew ai and I get no errors. However, when I type "from crewai..." I don't get creai autosuggested, not Tasks...
    I suppose that I am doing something seriously wrong, but I can't figure out what.

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

      Hmm... Import "crewai" could not be resolved Pylance (reportmissingimports)

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

      Ahaaa.... if I use a different interpreter I get the crewai autosuggested!

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

      hey there! are you sure you have created and activated your conda environment before installing and importing crewai? that might be the source of all your trouble!

  • @Javed.humayun
    @Javed.humayun 2 месяца назад

    I am confused. Help me to find a roadmap for a career in AI.

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      hey mate, it is usually super hard to answer this question because it depends on each person. but i will try my best in a few lines:
      i would say that you should become a software engineer first, and then specialize in AI. become good at solving problems, applying algorithms and implementing APIs. backend development should be your main specialization. while you're at it, try to apply all your learning projects to AI-applications and learn the generative-AI stacks (langchain, llamaindex, crewai, vectorstores like chrmadb or qdrant...). but definitely aim at software first, Ai second. it will come naturally ;)

    • @Javed.humayun
      @Javed.humayun 2 месяца назад

      Thanks mate I am a software engineer ( backend ) right now I have a use case to discuss can I have your email to discuss? Thanks

  • @ddongson1010
    @ddongson1010 2 месяца назад

    hi!!
    i’m Korean salesman of medical AI software. so i’ve wanted to learn AI programing or something. Can i use your picture of your blog on my blog? i want to write a process of studying AI . also i will mention that this pic is captured from your blog.

    • @alejandro_ao
      @alejandro_ao  2 месяца назад

      sure thing! please add a link back to my post!

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

      @@alejandro_ao thanks~ but.. i didnt post on my blog yet because i dont understand CrewAI.. if i can post i will remain my blog url. i always watch your video. thanks.

  • @flakky626
    @flakky626 29 дней назад

    Why not give code?
    I wanted requirements folder you didnt mention versions

    • @alejandro_ao
      @alejandro_ao  29 дней назад

      hey there. the code is on the blog post. i also added the link to the gh repo over there.

    • @alejandro_ao
      @alejandro_ao  29 дней назад

      here it is for quick access: github.com/alejandro-ao/crewai-crash-course

    • @flakky626
      @flakky626 28 дней назад

      @@alejandro_ao Thank you so much

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

    *_"Complete Course for Beginners"_*
    Beginners? You're seriously funny. 😂

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

      hey michael, please let me know what exactly caught you off guard. i am trying to make my videos as beginner-friendly as possible, even though these are quite sophisticated frameworks

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

    haha slow down with that mouse

    • @alejandro_ao
      @alejandro_ao  16 дней назад +1

      yeah, i don't think i will be using this screen recording app for long format videos anymore tbh

  • @moroccanguy1957
    @moroccanguy1957 2 месяца назад +2

    But is crew ai free ?

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +2

      yeah, but the language models are not all free, especially the ones with which this works correctly. you can try to run this with ollama or groq, but they don’t work as well as GPT-4. the problem with groq is the rate limit, not the models they have

    • @moroccanguy1957
      @moroccanguy1957 2 месяца назад

      @@alejandro_ao thanks

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

      @@moroccanguy1957 i may add that groq is amazing. the only reason why agentic behavior does not work with them right now is that they have not released a paid plan. they only have a rate-limited free tier. and the agents eat up on that rate-limit pretty fast. as soon as they release their paid options, they will be probably the best way to run open source LLMs that are great for creating agents

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

    I appreciate the tutorial but I had to stop 25 minutes in when I learned there's a 3rd party commercial API involved.

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

      hey there, if you are talking about Exa, they have 1000 queries/month for free, so that should be enough for most projects and i found that their search api is the best for LLM-apps. if you prefer to use a google wrapper, you can use Google Serper (although they only give you 2500 free queries total): serper.dev/

  • @PhunkyBob
    @PhunkyBob 15 дней назад

    $7 to $9 for the execution... ouch 😑

    • @alejandro_ao
      @alejandro_ao  15 дней назад

      yeah… got-4o and claude are much cheaper though. you can also use local models like llama3 instead for free!

    • @PhunkyBob
      @PhunkyBob 12 дней назад

      @@alejandro_ao Groq + Llama3 70b may fit well in this configuration.

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

    yet another impossible-to-follow video!!!!

    • @alejandro_ao
      @alejandro_ao  16 дней назад +1

      hey there, can you let me know what you mean by this? where did you get lost? i try to make these videos as approachable as possible

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

      Will do I'm just going to have another go. Will start from scratch, just new to python and environments and API keys and everything else. I won't give up till I get it working. So I was thinking if I had something working then I could understand subtle changes I make or bots I've designed and repurpose the agents to do what idea I've got. But when I load in the code it's got loads of errors so I'm doing something wrong or is it the code I download, I'll make step by step notes on my next attempt. Just to stress I'm 100% noob to this so if I can learn this, we'll then anyone can, I'm a good advert if it works 😄.

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

    Hi, what is the purpose of this in the get_contents() tool?
    contents = [content[:1000] for content in contents]
    as in, why specifically 1000 characters?
    Also, saw this error during execution:
    "I encountered an error while trying to use the tool. This was the error: eval() arg 1 must be a string, bytes or code object.
    Tool get_contents accepts these inputs: get_contents(ids: str) - Get the contents of a webpage.
    The ids must be passed in as a list, a list of ids returned from `search`."
    But overall, nice work!

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

      hey there! thanks for pointing that out. Actually, there is no need to run the `eval` command as the LLM identifies the input in JSON automatically. So you can comment out that line and it should work. Sorry about that!

  • @AIfortomorrow2024
    @AIfortomorrow2024 21 день назад

  • @BrandonFoltz
    @BrandonFoltz 2 месяца назад

    Thanks!

    • @alejandro_ao
      @alejandro_ao  2 месяца назад +1

      thank you for the superthanks brandon!

    • @BrandonFoltz
      @BrandonFoltz 2 месяца назад

      @@alejandro_ao You have it backwards my friend. We thank YOU.

  • @Matepediaoficial
    @Matepediaoficial 2 месяца назад

    Thanks!!!!!