🐝🐝🐝 𝐀 𝐒𝐰𝐚𝐫𝐦 𝐨𝐟 𝐀𝐠𝐞𝐧𝐭𝐬 𝐰𝐢𝐭𝐡 𝐋𝐥𝐚𝐦𝐚 3.2, 𝐆𝐏𝐓-4𝐨 𝐦𝐢𝐧𝐢 𝐚𝐧𝐝 𝐂𝐥𝐚𝐮𝐝𝐞 3.5 𝐒𝐨𝐧𝐧𝐞𝐭
text
🐝🐝🐝 𝐀 𝐒𝐰𝐚𝐫𝐦 𝐨𝐟 𝐀𝐠𝐞𝐧𝐭𝐬 𝐰𝐢𝐭𝐡 𝐋𝐥𝐚𝐦𝐚 3.2, 𝐆𝐏𝐓-4𝐨 𝐦𝐢𝐧𝐢 𝐚𝐧𝐝 𝐂𝐥𝐚𝐮𝐝𝐞 3.5 𝐒𝐨𝐧𝐧𝐞𝐭
new_line
new_line
𝐓𝐋;𝐃𝐑: I reimplemented the Swarm concept using Haystack, but made it work with both open and proprietary models 💫
text
𝐓𝐋;𝐃𝐑: I reimplemented the Swarm concept using Haystack, but made it work with both open and proprietary models 💫
new_line
new_line
✍️ blog article: 
text
✍️ blog article: 
https://haystack.deepset.ai/blog/swarm-of-agents
https://haystack.deepset.ai/blog/swarm-of-agents
link
new_line
📓 notebook: 
text
📓 notebook: 
https://haystack.deepset.ai/cookbook/swarm
https://haystack.deepset.ai/cookbook/swarm
link
new_line
new_line
new_line
Some time ago OpenAI published Swarm: an educational framework for building multi-agent systems.
text
Some time ago OpenAI published Swarm: an educational framework for building multi-agent systems.
new_line
new_line
Their approach focuses on two main concepts:
text
Their approach focuses on two main concepts:
new_line
・ 𝐑𝐨𝐮𝐭𝐢𝐧𝐞𝐬:  Each agent follows specific 📜 instructions and uses 🛠️ tools to execute them.
text
・ 𝐑𝐨𝐮𝐭𝐢𝐧𝐞𝐬:  Each agent follows specific 📜 instructions and uses 🛠️ tools to execute them.
new_line
・ 𝐇𝐚𝐧𝐝𝐨𝐟𝐟𝐬 🤝: Agents can transfer control to one another using tool/function calling.
text
・ 𝐇𝐚𝐧𝐝𝐨𝐟𝐟𝐬 🤝: Agents can transfer control to one another using tool/function calling.
new_line
new_line
new_line
When I first read these ideas, I thought: 𝘴𝘪𝘮𝘱𝘭𝘦 𝘣𝘶𝘵 𝘱𝘰𝘸𝘦𝘳𝘧𝘶𝘭! And they pair well with the recent unified tool support in Haystack.
text
When I first read these ideas, I thought: 𝘴𝘪𝘮𝘱𝘭𝘦 𝘣𝘶𝘵 𝘱𝘰𝘸𝘦𝘳𝘧𝘶𝘭! And they pair well with the recent unified tool support in Haystack.
new_line
new_line
🧑‍💻 So, I decided to re-implement these concepts using Haystack, and in just a few lines of code, I had a working prototype.
text
🧑‍💻 So, I decided to re-implement these concepts using Haystack, and in just a few lines of code, I had a working prototype.
new_line
new_line
🆒 Bonus feature: this implementation isn't tied to a single model provider - different agents can be powered by different models! 
text
🆒 Bonus feature: this implementation isn't tied to a single model provider - different agents can be powered by different models! 
new_line
new_line
I replicated the ACME customer service example from the original article, with 3 Agents:
text
I replicated the ACME customer service example from the original article, with 3 Agents:
new_line
🐝 Triage Agent - Llama 3.2 running on Ollama
text
🐝 Triage Agent - Llama 3.2 running on Ollama
new_line
🐝 Sales Agent - Anthropic Claude 3.5 Sonnet
text
🐝 Sales Agent - Anthropic Claude 3.5 Sonnet
new_line
🐝 Issues and Repairs Agent - OpenAI GPT-4o mini
text
🐝 Issues and Repairs Agent - OpenAI GPT-4o mini
new_line
new_line
new_line
Want to see the full implementation and give it a try? Check out the blog post and notebook! ✨
text
Want to see the full implementation and give it a try? Check out the blog post and notebook! ✨
🐝🐝🐝 𝐀 𝐒𝐰𝐚𝐫𝐦 𝐨𝐟 𝐀𝐠𝐞𝐧𝐭𝐬 𝐰𝐢𝐭𝐡 𝐋𝐥𝐚𝐦𝐚 3.2, 𝐆𝐏𝐓-4𝐨 𝐦𝐢𝐧𝐢 𝐚𝐧𝐝 𝐂𝐥𝐚𝐮𝐝𝐞 3.5 𝐒𝐨𝐧𝐧𝐞𝐭

𝐓𝐋;𝐃𝐑: I reimplemented the Swarm concept using Haystack, but made it work with both open and proprietary models 💫

✍️ blog article: https://haystack.deepset.ai/blog/swarm-of-agents
📓 notebook: https://haystack.deepset.ai/cookbook/swarm


Some time ago OpenAI published Swarm: an educational framework for building multi-agent systems.

Their approach focuses on two main concepts:
・ 𝐑𝐨𝐮𝐭𝐢𝐧𝐞𝐬:  Each agent follows specific 📜 instructions and uses 🛠️ tools to execute them.
・ 𝐇𝐚𝐧𝐝𝐨𝐟𝐟𝐬 🤝: Agents can transfer control to one another using tool/function calling.


When I first read these ideas, I thought: 𝘴𝘪𝘮𝘱𝘭𝘦 𝘣𝘶𝘵 𝘱𝘰𝘸𝘦𝘳𝘧𝘶𝘭! And they pair well with the recent unified tool support in Haystack.

🧑‍💻 So, I decided to re-implement these concepts using Haystack, and in just a few lines of code, I had a working prototype.

🆒 Bonus feature: this implementation isn't tied to a single model provider - different agents can be powered by different models! 

I replicated the ACME customer service example from the original article, with 3 Agents:
🐝 Triage Agent - Llama 3.2 running on Ollama
🐝 Sales Agent - Anthropic Claude 3.5 Sonnet
🐝 Issues and Repairs Agent - OpenAI GPT-4o mini


Want to see the full implementation and give it a try? Check out the blog post and notebook! ✨
👀
John6666