GraphRAG framework for multi-agent debate from social media
Top 45.8% on sourcepulse
This project provides a multi-agent chatbot framework that leverages GraphRAG to simulate debates between AI agents representing different social media platforms. It extracts user comments from social platforms, builds a knowledge graph, and enables agents to debate topics using platform-specific viewpoints and language. The target audience includes researchers and developers interested in LLM-based debate simulation and knowledge graph integration.
How It Works
The framework combines a knowledge graph with Retrieval-Augmented Generation (RAG). User comments are processed to extract entities and relationships, forming a knowledge graph database. This graph is then used by a retriever to fetch relevant information, which augments the prompts for LLM agents. Agents are designed to emulate distinct platform perspectives, facilitating debates on specified topics.
Quick Start & Requirements
conda create -n platform_war python=3.11.7
conda activate platform_war
conda install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 pytorch-cuda=12.1 -c pytorch -c nvidia
conda install -c conda-forge faiss-gpu
pip install -r requirements.txt
config.py
. For CPU-only operation, modify embedding_model.py
to use "device": "cpu"
.result.json
in a specific format for knowledge graph extraction. Pre-extracted knowledge bases for Bilibili, Weibo, and Zhihu are available via Baidu Netdisk and Google Drive.python platform_war.py
Highlighted Details
Maintenance & Community
No specific contributors, sponsorships, or community links (Discord/Slack) are mentioned in the README.
Licensing & Compatibility
The README does not explicitly state a license. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The UI has known display issues with adaptive sizing and conversation overlap when exceeding screen height. The project is primarily designed for Windows/Linux systems due to FAISS-GPU's CUDA dependency.
7 months ago
Inactive