Skip to content

feat: add AG2 multi-agent RAG example with Weaviate#70

Open
faridun-ag2 wants to merge 1 commit into
weaviate:mainfrom
faridun-ag2:main
Open

feat: add AG2 multi-agent RAG example with Weaviate#70
faridun-ag2 wants to merge 1 commit into
weaviate:mainfrom
faridun-ag2:main

Conversation

@faridun-ag2

Copy link
Copy Markdown

Summary

Add an example for AG2 (formerly AutoGen), a multi-agent conversation framework with 500K+ monthly PyPI downloads, 4,300+ GitHub stars, and 400+ contributors.

What's included

  • ag2-multiagent-rag/ag2_multiagent_rag_with_weaviate.ipynb — Complete notebook
  • ag2-multiagent-rag/test_e2e.py — End-to-end test script
  • ag2-multiagent-rag/README.md — Setup instructions and overview

How it works

  1. Documents are indexed into Weaviate with automatic embedding (text2vec-openai)
  2. AG2 Research Agent uses a registered search_documents tool to query Weaviate
  3. AG2 Analyst Agent synthesizes retrieved information into grounded answers
  4. Agents collaborate via AG2 GroupChat with automatic tool execution

Key features

  • Zero setup: Uses Weaviate Embedded (in-process, no Docker needed)
  • Automatic embeddings: text2vec-openai vectorizer, no manual embedding step
  • Multi-agent RAG: Researcher retrieves, Analyst synthesizes
  • Tool registration: Weaviate search exposed as AG2 tool via decorator pattern
  • Colab ready: Can run directly in Google Colab
  • E2E tested: Verified with real LLM calls (gpt-4o-mini) and Weaviate Embedded

Related

Jupyter notebook and e2e test demonstrating AG2 (formerly AutoGen)
multi-agent conversations using Weaviate as the vector store for RAG.

- Weaviate Embedded for zero-setup vector search
- Automatic embeddings via text2vec-openai module
- AG2 GroupChat with Research + Analyst agents
- Weaviate search registered as AG2 tool via decorator pattern
- Google Colab support

@orca-security-eu orca-security-eu Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@faridun-ag2

Copy link
Copy Markdown
Author

Hi @databyjp @victorialslocum — could one of you review this when you get a chance? Thanks!

@weaviate-git-bot

Copy link
Copy Markdown

To avoid any confusion in the future about your contribution to Weaviate, we work with a Contributor License Agreement. If you agree, you can simply add a comment to this PR that you agree with the CLA so that we can merge.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Forum?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants