How to make AI assistants do your work [with CrewAI]
Marco van Hurne
Partnering with the most innovative AI and RPA platforms to optimize back office processes, automate manual tasks, improve customer service, save money, and grow profits.
Download my latest 1000+ book on Machine Learning
Artificial Intelligence has become such a beautiful part of our lives. It is simplifying tasks and providing solutions to complex problems. In the AI domain, large language models play an important role, but understanding how they work and what their capabilities are, is essential for effective use. In this article, I’ll explore how AI, specifically LLMs, processes information and how we can leverage them for more advanced tasks, by using so-called AI Agents in tandem (sometimes referred to as swarm intelligence), with the open-source framework of CrewAI.
What is CrewAI
CrewAI offers a platform to assemble teams of AI agents, each specializing in different roles. These agents can collaborate to solve problems or carry out tasks. Essentially, it allows you to create and manage a group of AI assistants that work together to achieve a common goal, much like a crew on a ship or a team of workers on a project.
Here are some key things to know about CrewAI:
What are some common use cases for crewAI?
So, overall, crewAI is a powerful tool that can be used to create intelligent and collaborative AI systems. If you are looking for a way to leverage the power of AI to solve complex problems, crewAI is worth checking out.
The crewAI workflow process
A typical crewAI workflow process consists of the following setup.
Let’s work on a practical example of setting up three agents to analyze and refine a startup concept.
Setting up AI agents for startup analysis
1. Marketer agent:
2. Technologist agent:
3. Business development agent:
领英推荐
Defining tasks and collaboration
Tasks should be specific and results-oriented. For our startup example:
With tasks defined, we can instantiate the crew, specifying how agents collaborate sequentially to achieve the end result.
Enhancing agent intelligence with real-world data
Making AI agents smarter involves giving them access to real-world, real-time data. Crew AI offers built-in tools for this purpose. By integrating tools like text-to-speech or Google search, agents can gather more accurate and up-to-date information, enhancing their problem-solving abilities.
The pitfalls of paying high API fees: going local
While using Crew AI is powerful, it comes with costs. To avoid hefty API fees and maintain privacy, running models locally is a viable solution. Experimenting with 13 open-source models revealed varied results, with some models struggling to understand tasks. Notably, the “regular llama 13 billion parameters” model surprisingly incorporated data from a subreddit, showcasing potential for local models.
The journey with local models
Testing various local models highlighted significant differences in performance. Models like “llama 2 Series” and “Falcon” with fewer parameters struggled, while “open chat” and “mistro” showed promise. Surprisingly, a non-fine-tuned “llama 13 billion parameters” model demonstrated an understanding of the task, though not perfectly.
Takeaways and moving forward
1. Optimizing AI agents:
2. Cost-efficiency and privacy:
3. Continuous improvement:
OK, that’s all for me for now. In the next article, I will show you how I coded the different agents in CrewAI using Python. Hopefully, you found this article useful. If you did, please connect with me on LinkedIn, or our newsletter: TechTonic Shifts. From there, you can see my other published stories and subscribe to get notified when I post new content.
Signing off - Marco
Other stuff you might be interested in