Skip to content
/ PeerNet Public

PeerNet++ - AI-powered academic peer review system using Google Gemini 2.0/2.5, Groq Llama 3.1, and MongoDB. Features plagiarism-first pipeline, 5 AI reviewer personalities, custom reviewer builder with 6 adjustable traits, real-time WebSocket updates, and blockchain-style audit trails. Built with Flask + SocketIO. All APIs have free tiers.

License

Notifications You must be signed in to change notification settings

anVSS1/PeerNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

PeerNet++ V3.0

License: MIT Python 3.8+ Flask

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.

πŸ†• What's New in V3.0

  • πŸ”¬ 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

πŸ› οΈ Tech Stack

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

πŸš€ Features

πŸ“„ Multi-Modal Paper Upload

  • PDF Upload: AI-powered vision extraction with figure descriptions
  • JSON Upload: Direct structured metadata input
  • API Integration: arXiv, PubMed, Semantic Scholar, OpenAlex

πŸ” Plagiarism-First Architecture

  • Papers checked BEFORE reviews (saves API costs!)
  • 85% similarity threshold auto-rejects duplicates
  • Cosine similarity on 768-dim embeddings

πŸ€– Multi-Provider AI Reviews

  • 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

πŸ‘€ Custom Reviewer Builder

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)

πŸ“Š Advanced Features

  • 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

πŸ› οΈ Quick Start

  1. 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
  2. Configure Environment

    cp .env.example .env
    # Edit .env with your API keys
  3. Required API Keys (all have free tiers!)

  4. Run

    python app.py
    # Visit: http://127.0.0.1:5000

βš™οΈ Configuration

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=5

πŸ“ Project Structure

PeerNet++/
β”œβ”€β”€ 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

🎯 How It Works

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  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 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“‘ Live Progress Logs

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

🀝 Contributing

  1. Fork the repository
  2. Create feature branch: git checkout -b feature-name
  3. Commit changes: git commit -m 'Add feature'
  4. Push branch: git push origin feature-name
  5. Open Pull Request

πŸ“„ License

MIT License - see LICENSE file for details.

πŸ‘₯ Team

πŸ™ Acknowledgments

Built with:


Made with ❀️ for the academic community

Version: 3.0.0 | Last Updated: December 2025

About

PeerNet++ - AI-powered academic peer review system using Google Gemini 2.0/2.5, Groq Llama 3.1, and MongoDB. Features plagiarism-first pipeline, 5 AI reviewer personalities, custom reviewer builder with 6 adjustable traits, real-time WebSocket updates, and blockchain-style audit trails. Built with Flask + SocketIO. All APIs have free tiers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published