CrewAI Step-by-Step | Complete Course for Beginners

  Рет қаралды 37,564

Alejandro AO - Software & Ai

Alejandro AO - Software & Ai

Күн бұрын

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.

Пікірлер: 172
@johnbarbuto5387
@johnbarbuto5387 Ай бұрын
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 Ай бұрын
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 24 күн бұрын
​@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.
@BrandonFoltz
@BrandonFoltz 2 ай бұрын
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 ай бұрын
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 ай бұрын
@@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 ай бұрын
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 ай бұрын
I've been waiting for a video like this. Thank you!
@alejandro_ao
@alejandro_ao 2 ай бұрын
great! i will be making a series about this actually
@andydataguy
@andydataguy Ай бұрын
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!
@Jaiken451
@Jaiken451 Ай бұрын
Heading over to Patreon this morning. Killer tutorials 🙏🏼🙌
@alejandro_ao
@alejandro_ao Ай бұрын
awesome man, thanks!
@marektalpak4315
@marektalpak4315 Ай бұрын
Thank you for the great vido! Very well presented. Looking forward to additional videos.
@user-bb6hp8hn2f
@user-bb6hp8hn2f 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.
@free_thinker4958
@free_thinker4958 Ай бұрын
You're the man 💯👏 rarely high quality content.
@alejandro_ao
@alejandro_ao Ай бұрын
I appreciate that! Will do!
@duponce
@duponce Ай бұрын
Very good, sensational, congratulations. Without a doubt the best video I've seen so far!
@alejandro_ao
@alejandro_ao Ай бұрын
this means a lot man, thanks :)
@ibikunleadekiitan9882
@ibikunleadekiitan9882 2 ай бұрын
Beautiful idea
@moejobe
@moejobe Ай бұрын
Awesome Video! Thank you for putting this together~
@alejandro_ao
@alejandro_ao Ай бұрын
it’s my pleasure!
@youngchrisyang
@youngchrisyang 2 ай бұрын
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 ай бұрын
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 :)
@mygicarskrsk4465
@mygicarskrsk4465 2 ай бұрын
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
@TomVanSchoor
@TomVanSchoor 16 күн бұрын
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 15 күн бұрын
Hey Tom! Thanks, I appreciate it! i try to make all the videos as beginner-friendly as possible :) New tutorial coming up today!
@bodmaniko
@bodmaniko 2 ай бұрын
Beautifully done, thank you !
@alejandro_ao
@alejandro_ao Ай бұрын
thank YOU
@hakeemowais9845
@hakeemowais9845 2 ай бұрын
Thank you Was waiting for Agents, Tools
@alejandro_ao
@alejandro_ao 2 ай бұрын
let me know what you think of it!
@funmiemore194
@funmiemore194 Ай бұрын
Thank you for the detailed breakdown!!
@alejandro_ao
@alejandro_ao Ай бұрын
hey Funmi! it's my pleasure :)
@user-zt2dj4rl6d
@user-zt2dj4rl6d Ай бұрын
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)
@alejandro_ao
@alejandro_ao Ай бұрын
i'm working on it! 🫡
@samertallauze729
@samertallauze729 16 күн бұрын
Thank you. Well presented :)
@alejandro_ao
@alejandro_ao 16 күн бұрын
thanks!!
@jordanz9580
@jordanz9580 Ай бұрын
I wanna say the video is so good and easy to understand, I HAVE ZERO CODING background! im still able to follow !!!
@user-xj1bc8hk8o
@user-xj1bc8hk8o Ай бұрын
Awesome, thank you!
@alejandro_ao
@alejandro_ao Ай бұрын
No worries!
@shadowfreaper8158
@shadowfreaper8158 20 күн бұрын
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
@sr.modanez
@sr.modanez Ай бұрын
parabéns, perfeito, traga novos usos para estudo, estou impressionado com isso, obrigado por ter nos mostrado.
@alejandro_ao
@alejandro_ao 26 күн бұрын
muito obrigado !
@crepusculoooo
@crepusculoooo 2 ай бұрын
thanks alejandro? gracias por tu contenido de alta calidad!
@alejandro_ao
@alejandro_ao 2 ай бұрын
muchas gracias a ti! saludos!
@AIdevel
@AIdevel Ай бұрын
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 Ай бұрын
adding a GUI is an excellent idea
@rvick3914
@rvick3914 2 ай бұрын
Very informative content Thahnks bro
@alejandro_ao
@alejandro_ao Ай бұрын
My pleasure :)
@stephaneleroi8506
@stephaneleroi8506 Күн бұрын
Thank you very much for the video. Can you tell me for information what is the code assistant you are using ? Thx a lot
@jordanz9580
@jordanz9580 Ай бұрын
Thanks!
@hectorprx
@hectorprx Ай бұрын
Thanks, all the best
@alejandro_ao
@alejandro_ao Ай бұрын
all the best to you too!
@trungtalks
@trungtalks 2 ай бұрын
Thank you, hello from Vietnam
@alejandro_ao
@alejandro_ao Ай бұрын
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?
@hakikitosunpasa335
@hakikitosunpasa335 Ай бұрын
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 Ай бұрын
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!
@oberdansantos5802
@oberdansantos5802 9 күн бұрын
Embora seja muito conteúdo, ele foi bem articulado 🤖. Então, parabéns🍻 pela leveza da condução da apresentação do video.
@alejandro_ao
@alejandro_ao 9 күн бұрын
muito obrigado! 🔥
@AnkitKapur
@AnkitKapur Ай бұрын
🎉 blog post looks amazing, what software did you use for it?
@alejandro_ao
@alejandro_ao 26 күн бұрын
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
@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.)
@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 ай бұрын
Hi ! I impressed with your chat with MySQL solution Can you make a video about chat with api which has swagger docs ?
@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
@wg5920
@wg5920 2 ай бұрын
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 Ай бұрын
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
@kexuncsu
@kexuncsu 23 күн бұрын
thanks for sharing. could you share the "how agents work" page?
@Lucromick13
@Lucromick13 Ай бұрын
You have a nice voice Alejandro
@Spydaw
@Spydaw Ай бұрын
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
@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 ай бұрын
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
@shashankgupta3549
@shashankgupta3549 26 күн бұрын
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?
@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?
@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 22 күн бұрын
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?
@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 16 күн бұрын
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. 👍
@jjclark968
@jjclark968 Ай бұрын
So the tasks class could be consider the "process"?
@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 ;)
@Amrscanners
@Amrscanners Ай бұрын
May I know what llm operating these agent. Can use differnt LLM&VLM?
@TomVanSchoor
@TomVanSchoor 16 күн бұрын
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)
@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?
@bahamaej
@bahamaej Ай бұрын
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 Ай бұрын
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
@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
@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 ай бұрын
great! how did that go? did you manage to set up ollama?
@duanxn
@duanxn 2 ай бұрын
@@alejandro_ao thanks for following up. Yes, it worked.
@mpazaryna
@mpazaryna 9 күн бұрын
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 9 күн бұрын
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 9 күн бұрын
@@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.
@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! 😎
@sdmj45
@sdmj45 Ай бұрын
What's the plugin do you use to auto complete your code in vs studio?
@alejandro_ao
@alejandro_ao Ай бұрын
that's github copilot
@sdmj45
@sdmj45 Ай бұрын
@@alejandro_ao thanks, is it free for using?
@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
@dikshyakasaju7541
@dikshyakasaju7541 Ай бұрын
Amazing!!! But how is this different from LangChain Agents and Tools and when to use one over another?
@alejandro_ao
@alejandro_ao Ай бұрын
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 Ай бұрын
@@alejandro_ao Thanks for the brief explanation. Totally makes sense. :)
@jimcollins6619
@jimcollins6619 Ай бұрын
Excellent. No annoying, heavy accent, no unpleasant grating or whining voice. What software was used to create the diagrams?
@jasonsalgado4917
@jasonsalgado4917 14 күн бұрын
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 9 күн бұрын
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
@divyanshmishra535
@divyanshmishra535 2 ай бұрын
can we try it with open source models ?
@alejandro_ao
@alejandro_ao 2 ай бұрын
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!
@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 ай бұрын
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
@user-tq4yh9ol8o
@user-tq4yh9ol8o 2 ай бұрын
What difference did you feel between Crewai and Langgraph? When would you use each one?
@agugi
@agugi 6 күн бұрын
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 8 күн бұрын
You are handsome, and look kind. I couldn’t focus on the video🎉
@AndyPandy-ni1io
@AndyPandy-ni1io 9 күн бұрын
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 9 күн бұрын
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!
@wdmeister
@wdmeister 28 күн бұрын
👍👌❤
@ddongson1010
@ddongson1010 Ай бұрын
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 Ай бұрын
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.
@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
@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!
@flakky626
@flakky626 22 күн бұрын
Why not give code? I wanted requirements folder you didnt mention versions
@alejandro_ao
@alejandro_ao 22 күн бұрын
hey there. the code is on the blog post. i also added the link to the gh repo over there.
@alejandro_ao
@alejandro_ao 22 күн бұрын
here it is for quick access: github.com/alejandro-ao/crewai-crash-course
@flakky626
@flakky626 21 күн бұрын
@@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 9 күн бұрын
haha slow down with that mouse
@alejandro_ao
@alejandro_ao 9 күн бұрын
yeah, i don't think i will be using this screen recording app for long format videos anymore tbh
@moroccanguy1957
@moroccanguy1957 Ай бұрын
But is crew ai free ?
@alejandro_ao
@alejandro_ao Ай бұрын
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 Ай бұрын
@@alejandro_ao thanks
@alejandro_ao
@alejandro_ao Ай бұрын
@@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 29 күн бұрын
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 26 күн бұрын
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/
@AndyPandy-ni1io
@AndyPandy-ni1io 9 күн бұрын
yet another impossible-to-follow video!!!!
@alejandro_ao
@alejandro_ao 9 күн бұрын
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 8 күн бұрын
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 😄.
@PhunkyBob
@PhunkyBob 8 күн бұрын
$7 to $9 for the execution... ouch 😑
@alejandro_ao
@alejandro_ao 8 күн бұрын
yeah… got-4o and claude are much cheaper though. you can also use local models like llama3 instead for free!
@PhunkyBob
@PhunkyBob 5 күн бұрын
@@alejandro_ao Groq + Llama3 70b may fit well in this configuration.
@sayanbhattacharyya95
@sayanbhattacharyya95 28 күн бұрын
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 26 күн бұрын
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 14 күн бұрын
@alejandro_ao
@alejandro_ao 12 күн бұрын
✌️
@BrandonFoltz
@BrandonFoltz 2 ай бұрын
Thanks!
@alejandro_ao
@alejandro_ao 2 ай бұрын
thank you for the superthanks brandon!
@BrandonFoltz
@BrandonFoltz 2 ай бұрын
@@alejandro_ao You have it backwards my friend. We thank YOU.
@Matepediaoficial
@Matepediaoficial 2 ай бұрын
Thanks!!!!!
@alejandro_ao
@alejandro_ao 2 ай бұрын
No problem!
Python: Automating a Marketing Team with AI Agents | Planning and Implementing CrewAI
1:03:27
The Complete Guide to Building AI Agents for Beginners
28:43
Когда на улице Маябрь 😈 #марьяна #шортс
00:17
OMG 😨 Era o tênis dela 🤬
00:19
Polar em português
Рет қаралды 11 МЛН
Forget CrewAI & AutoGen, Build CUSTOM AI Agents!
45:28
Data Centric
Рет қаралды 15 М.
Build a Web App (GUI) for your CrewAI Automation (Easy with Python)
52:30
Alejandro AO - Software & Ai
Рет қаралды 9 М.
Build Anything with AI Agents, Here's How
29:49
David Ondrej
Рет қаралды 168 М.
CrewAI Tutorial: Complete Crash Course for Beginners
1:05:43
codewithbrandon
Рет қаралды 132 М.
AI Pioneer Shows The Power of AI AGENTS - "The Future Is Agentic"
23:47
Why I'm Staying Away from Crew AI: My Honest Opinion
53:48
Data Centric
Рет қаралды 17 М.
AutoGen Studio: Build Self-Improving AI Agents With No-Code
27:06
Pratik Cat6 kablo soyma
0:15
Elektrik-Elektronik
Рет қаралды 8 МЛН
5 НЕЛЕГАЛЬНЫХ гаджетов, за которые вас посадят
0:59
Кибер Андерсон
Рет қаралды 611 М.
Nokia 3310 versus Red Hot Ball
0:37
PressTube
Рет қаралды 3,7 МЛН
🤔Почему Samsung ПОМОГАЕТ Apple?
0:48
Technodeus
Рет қаралды 461 М.
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 2,6 МЛН
Kalem ile Apple Pen Nasıl Yapılır?😱
0:20
Safak Novruz
Рет қаралды 1,2 МЛН