AI-Powered Academic Peer Review System - 2025 SOTA Multi-Provider Stack
Revolutionizes academic paper evaluation through intelligent automation, custom reviewer personalities, plagiarism-first architecture, and blockchain-style audit trails.
- π¬ Gemini 2.0 Flash for PDF Vision extraction
- π€ Groq Llama 3.1 8B for lightning-fast reviews (560 tok/sec)
- π§ Gemini 2.5 Flash Thinking for consensus with reasoning
- π text-embedding-004 for plagiarism detection
- π Gemma 3 27B Fallback via OpenRouter (FREE!)
- β‘ Plagiarism-First Architecture - Rejects before wasting API calls
- π‘ Real-time WebSocket Progress with step-by-step live logs
| Component | Technology | Purpose |
|---|---|---|
| PDF Extraction | Gemini 2.0 Flash Lite | Vision-based text + figure extraction |
| Embeddings | text-embedding-004 | 768-dim vectors for similarity |
| Reviews | Groq Llama 3.1 8B | Fast inference (560 tok/sec) |
| Consensus | Gemini 2.5 Flash | Built-in reasoning capabilities |
| Fallback | Gemma 3 27B (OpenRouter) | FREE fallback when rate limited |
| Database | MongoDB Atlas | Cloud-hosted document store |
| Real-time | Flask-SocketIO | Live progress updates |
- PDF Upload: AI-powered vision extraction with figure descriptions
- JSON Upload: Direct structured metadata input
- API Integration: arXiv, PubMed, Semantic Scholar, OpenAlex
- Papers checked BEFORE reviews (saves API costs!)
- 85% similarity threshold auto-rejects duplicates
- Cosine similarity on 768-dim embeddings
- Primary: Groq Llama 3.1 8B (DSPy optimized)
- Fallback 1: Groq direct API
- Fallback 2: Gemma 3 27B via OpenRouter (FREE)
- 5 reviewer personalities: Methodology, Innovation, Communication, Theory, Application
Create personalized AI reviewers with 6 adjustable traits:
- Strictness (Lenient β Harsh)
- Detail Focus (Big Picture β Nitpicky)
- Innovation Bias (Conservative β Novelty-seeking)
- Writing Standards (Relaxed β Perfectionist)
- Methodology Rigor (Flexible β Statistical Purist)
- Optimism (Critical β Encouraging)
- Real-time Dashboard: Live progress with emojis and step numbers
- Bias Detection: Automated identification and flagging
- Blockchain Ledger: Immutable SHA-256 audit trail
- PDF Report Export: Download complete review reports
-
Clone & Setup
git clone https://github.com/anVSS1/PeerNet.git cd PeerNet python -m venv venv venv\Scripts\activate # Windows # source venv/bin/activate # Linux/Mac pip install -r requirements.txt
-
Configure Environment
cp .env.example .env # Edit .env with your API keys -
Required API Keys (all have free tiers!)
- Google AI Studio - Gemini API
- Groq Console - Groq API
- OpenRouter - Gemma fallback
- MongoDB Atlas - Database
-
Run
python app.py # Visit: http://127.0.0.1:5000
Edit .env file:
# MongoDB Atlas
MONGODB_URI=mongodb+srv://user:pass@cluster.mongodb.net/peernet_plus
# Google Gemini (Vision + Embeddings + Consensus)
GEMINI_API_KEY=your_gemini_key
GEMINI_VISION_MODEL=gemini-2.0-flash-lite
GEMINI_EMBEDDING_MODEL=text-embedding-004
GEMINI_THINKING_MODEL=gemini-2.5-flash
# Groq (Reviews - 560 tokens/sec!)
GROQ_API_KEY=your_groq_key
GROQ_MODEL=llama-3.1-8b-instant
# OpenRouter (Gemma 3 Fallback - FREE!)
OPENROUTER_API_KEY=your_openrouter_key
OPENROUTER_MODEL=google/gemma-3-27b-it:free
# Plagiarism Threshold
PLAGIARISM_SIMILARITY_THRESHOLD=0.85
# Review Settings
MIN_REVIEWERS=3
MAX_REVIEWERS=5PeerNet++/
βββ agents/ # AI Review Agents
β βββ reviewer_agent.py # DSPy + Groq + Gemma fallback
β βββ consensus_agent.py # Gemini 2.5 Flash Thinking
β βββ bias_detection_agent.py
β βββ plagiarism_agent.py
βββ api/ # REST API Endpoints
βββ dashboard/ # Web Interface & Templates
βββ data_collection/ # Paper Intake System
β βββ pdf_parser.py # Gemini Vision extraction
β βββ paper_intake.py # Plagiarism-first pipeline
β βββ arxiv_fetcher.py
β βββ pubmed_fetcher.py
β βββ semantic_fetcher.py
βββ models/ # MongoDB Models
βββ simulation/ # Review Orchestration
βββ utils/ # Utilities & Security
βββ app.py # Main Flask Application
βββ requirements.txt
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
β 1. Upload βββββΆβ 2. Extract βββββΆβ 3. Embed β
β PDF/JSON β β Gemini Visionβ β text-emb-004β
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
β
βΌ
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
β 6. Consensusββββββ 5. Reviews ββββββ4. Plagiarismβ
βGemini 2.5 β β Groq/Gemma β β Check FIRST β
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
β β
βΌ βΌ
βββββββββββββββ βββββββββββββββ
β 7. Bias β β REJECT if β
β Detection β β >85% match β
βββββββββββββββ βββββββββββββββ
Real-time WebSocket updates show:
π Starting AI review for: Neural Networks for Image...
π Step 1/5: Assembling reviewer panel...
π₯ 3 reviewers assigned: Methodology Expert, Novelty Expert, Clarity Expert
π€ Step 2/5: Methodology Expert analyzing... (1/3) [Groq Llama 3.1]
π― Step 3/5: Building consensus from 3 reviews... [Groq Llama 3.3 70B]
β
Preliminary decision: Accept (confidence: 85%)
π Step 4/5: Running originality check...
βοΈ Step 5/5: Analyzing for reviewer bias patterns...
π Review complete! β
Decision: Accept | 3 reviewers
- Fork the repository
- Create feature branch:
git checkout -b feature-name - Commit changes:
git commit -m 'Add feature' - Push branch:
git push origin feature-name - Open Pull Request
MIT License - see LICENSE file for details.
- Anass Ouzaouit - GitHub | LinkedIn
- Abdelaziz Afquir - GitHub | LinkedIn
- Mohamed Kannoun - GitHub | LinkedIn
Built with:
- Google Gemini - Vision, Embeddings, Consensus
- Groq - Ultra-fast LLM inference
- OpenRouter - Gemma 3 fallback
- MongoDB Atlas - Cloud database
- Flask - Web framework
- DSPy - LLM optimization
Made with β€οΈ for the academic community
Version: 3.0.0 | Last Updated: December 2025