File size: 1,736 Bytes
167596f | 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 | # 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
|