OrgAI / .env.example
Phonex
TheTruthSchool_RAG
167596f
# Agentic RAG System - Environment Variables
# Copy this file to .env and fill in your actual API keys
# ============================================
# Required: Google Gemini API Key
# ============================================
# Get your free API key from: https://makersuite.google.com/app/apikey
GEMINI_API_KEY=your_gemini_api_key_here
# ============================================
# Gemini Model Configuration (Optional)
# ============================================
# Text generation model (fast responses)
GEMINI_TEXT_MODEL=models/gemini-flash-latest
# Verification model (quality checking)
GEMINI_VERIFIER_MODEL=models/gemini-pro-latest
# Vision model (image processing)
GEMINI_VISION_MODEL=models/gemini-flash-latest
# Embedding model (vector embeddings)
GEMINI_EMBEDDING_MODEL=models/text-embedding-004
# ============================================
# Optional: Tavily API Key (Web Search)
# ============================================
# Get your free API key from: https://tavily.com
# Leave empty to disable web search features
TAVILY_API_KEY=your_tavily_api_key_here
# ============================================
# Application Configuration
# ============================================
# Backend API URL (used by frontend)
REACT_APP_BACKEND_URL=http://localhost:8000
# Backend port
BACKEND_PORT=8000
# Frontend port
FRONTEND_PORT=3000
# ============================================
# Hugging Face Space Configuration
# ============================================
# When deploying to Hugging Face Spaces:
# 1. Go to your Space settings
# 2. Add secrets for GEMINI_API_KEY and TAVILY_API_KEY
# 3. The Dockerfile will use port 7860 automatically
# 4. REACT_APP_BACKEND_URL will be set to /api automatically