tahp0604/multi-agent-debate-defense
0
DebateGuard: Adversarial RAG Defense
This Space hosts the DebateGuard RAG pipeline, which uses a two-stage adversarial defense to protect against Indirect Prompt Injection (IPI) attacks.
๐ Features
- GPU-Accelerated Detection: Uses a fine-tuned Cross-Encoder on the Space's T4 GPU to scan documents in milliseconds.
- Adversarial Debate: Flags suspicious chunks for a multi-agent debate (Prosecutor, Defender, Judge) powered by Groq.
- S3 Integration: Automatically syncs documents from your AWS S3 bucket on startup.
๐ ๏ธ Configuration
To run this Space, you must set the following Secrets in the HF Space settings:
๐ฆ Local Usage
You can also run this locally on your PC by cloning the repo and installing the requirements:
pip install -r requirements.txt
python flask_app/app.pyEnsure your .env file contains the keys listed above.
