How dream-johnson/multi-agent-rag-debate-arena works
The product is a password-gated web app for debating a user-submitted topic with Wikipedia-backed RAG and three Claude agents. The main workflow runs from browser login and topic submission through authenticated API orchestration, article ingestion, concurrent FOR/AGAINST generation, judging, and rendered results. The graph also preserves configuration, request/result schemas, and the distinct security and retrieval stages. Evidence is based on the README and excerpted source; frontend loading stages are illustrative rather than a live progress feed.
Main entry points: debate.py Debate orchestrator · main.py API routes · agents.py FOR/AGAINST agents · app.js Debate UI
Components 19
Web experience
- Debate UI
frontend/app.js
API and security
- API routes
backend/main.py - Password gate
backend/auth.py
Knowledge ingestion
- Wikipedia retrieval
backend/wikipedia_service.py - Text chunking
backend/chunking.py - Document embeddings
backend/embeddings.py - Pinecone vectors
backend/vectorstore.py - Query embedding
backend/embeddings.py
Debate generation
- Debate orchestrator
backend/debate.py - FOR/AGAINST agents
backend/agents.py - Debate judge
backend/agents.py
Shared foundation
- Request schema
backend/models.py - Result schema
backend/models.py - Application settings
backend/config.py
Other components
- Debate user
- Wikipedia API
- Voyage AI
- Pinecone service
- Anthropic Claude
Connections 24
- Debate user → Debate UI: uses
frontend/app.js - Debate UI → API routes: submits topic
frontend/app.js - API routes → Password gate: checks password
backend/main.py - API routes → Request schema: validates request
backend/main.py - API routes → Debate orchestrator: runs debate
backend/main.py - Debate orchestrator → Wikipedia retrieval: fetches article
backend/debate.py - Wikipedia retrieval → Wikipedia API: searches and fetches
backend/wikipedia_service.py - Debate orchestrator → Text chunking: chunks article
backend/debate.py - Debate orchestrator → Document embeddings: embeds chunks
backend/debate.py - Document embeddings → Voyage AI: requests vectors
backend/embeddings.py - Debate orchestrator → Pinecone vectors: upserts chunks
backend/debate.py - Pinecone vectors → Pinecone service: stores and queries
backend/vectorstore.py - Debate orchestrator → FOR/AGAINST agents: runs concurrently
backend/debate.py - FOR/AGAINST agents → Query embedding: embeds topic
backend/agents.py - Query embedding → Voyage AI: requests vector
backend/embeddings.py - FOR/AGAINST agents → Pinecone vectors: retrieves chunks
backend/agents.py - FOR/AGAINST agents → Anthropic Claude: generates arguments
backend/agents.py - Debate orchestrator → Debate judge: judges arguments
backend/debate.py - Debate judge → Anthropic Claude: scores arguments
backend/agents.py - Debate orchestrator → Result schema: builds result
backend/debate.py - API routes → Debate UI: returns debate
frontend/app.js - Debate UI → Debate user: shows result
frontend/app.js - Password gate → Application settings: reads secret
backend/auth.py - Debate orchestrator → Application settings: configures pipeline