File size: 817 Bytes
700863c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Example .env file for Fake News Detection System
# Rename this file to .env and modify values as needed

# GDELT API configuration
# No API key needed for GDELT
MAX_ARTICLES_PER_QUERY=250

# Ranking configuration
TOP_K_ARTICLES=250
SIMILARITY_MODEL=intfloat/multilingual-e5-base
MIN_SIMILARITY_THRESHOLD=0.1

# Display configuration
SHOW_SIMILARITY_SCORES=true
SHOW_PUBLISH_DATE=true
SHOW_URL=true

# Domain filtering configuration
USE_WHITELIST_ONLY=false

# Google Gemini API
# Get your API key from https://ai.google.dev/
GEMINI_API_KEY=your_gemini_api_key_here
GEMINI_MODEL=gemini-2.5-flash

# Google Search API (SerpAPI)
# Get your API key from https://serpapi.com/
SERPAPI_KEY=your_serpapi_key_here

# Bias Analysis configuration
TOP_ARTICLES_PER_BIAS_CATEGORY=5

# Server configuration
PORT=5000
DEBUG=false