-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
92 lines (78 loc) · 3.06 KB
/
.env.example
File metadata and controls
92 lines (78 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# ============================================
# PeerNet++ V3 - Environment Configuration
# 2025 SOTA AI Stack - Multi-Provider Setup
# ============================================
# Copy this file to .env and fill in your values
# cp .env.example .env
# ============================================
# MONGODB CONFIGURATION
# ============================================
# MongoDB Atlas (RECOMMENDED - set this for cloud)
# Format: mongodb+srv://username:password@cluster.mongodb.net/database
MONGODB_URI=mongodb+srv://your_username:your_password@cluster.mongodb.net/peernet_plus
# Local MongoDB fallback (used if MONGODB_URI is empty)
MONGODB_HOST=localhost
MONGODB_PORT=27017
MONGODB_DB=peernet_plus
MONGODB_USERNAME=
MONGODB_PASSWORD=
MONGODB_AUTH_DB=admin
# ============================================
# GOOGLE GEMINI API (For Vision + Embeddings)
# ============================================
# Get your key at: https://aistudio.google.com/apikey
GEMINI_API_KEY=your_gemini_api_key_here
# PDF Vision Model (needs vision capability)
GEMINI_VISION_MODEL=gemini-2.0-flash
# Embedding Model for Plagiarism Detection
GEMINI_EMBEDDING_MODEL=text-embedding-004
# ============================================
# GROQ API (For Reviewers - Llama 3.1 8B)
# ============================================
# Get your key at: https://console.groq.com/keys
# Free tier: 30 requests/minute, very fast inference (560 tps)
GROQ_API_KEY=your_groq_api_key_here
# Groq Model - Llama 3.1 8B (fast, 560 tokens/sec)
GROQ_MODEL=llama-3.1-8b-instant
# ============================================
# OPENROUTER API (Gemma 3 Fallback - FREE!)
# ============================================
# Get your key at: https://openrouter.ai/keys
# Used as fallback when Groq rate limits hit
OPENROUTER_API_KEY=your_openrouter_api_key_here
OPENROUTER_MODEL=google/gemma-3-27b-it:free
OPENROUTER_API_URL=https://openrouter.ai/api/v1
# ============================================
# GEMINI THINKING MODEL (For Consensus)
# ============================================
# Gemini 2.5 Flash has built-in reasoning capabilities - FREE!
GEMINI_THINKING_MODEL=gemini-2.5-flash
# ============================================
# PLAGIARISM DETECTION
# ============================================
# Similarity threshold (0.0 - 1.0)
# Papers above this threshold are REJECTED before review
PLAGIARISM_SIMILARITY_THRESHOLD=0.85
# ============================================
# FLASK CONFIGURATION
# ============================================
SECRET_KEY=generate_a_secure_random_key_here
DEBUG=True
HOST=0.0.0.0
PORT=5000
# ============================================
# LOGGING
# ============================================
LOG_LEVEL=INFO
LOG_FILE=logs/peernet.log
# ============================================
# REVIEWER AGENT CONFIGURATION
# ============================================
MIN_REVIEWERS=3
MAX_REVIEWERS=5
REVIEWER_COUNT=4
# ============================================
# LEGACY APIs (Optional - not used in V3)
# ============================================
# OpenAlex API (for metadata enrichment)
OPENALEX_API_URL=https://api.openalex.org/works/