/ env.example
env.example
  1  # ============================================================================
  2  # AI HR AUTOMATION - ENVIRONMENT CONFIGURATION
  3  # ============================================================================
  4  
  5  # ============================================================================
  6  # LLM PROVIDER CONFIGURATION
  7  # ============================================================================
  8  
  9  # Choose your LLM provider: openai, anthropic, gemini, ollama, mock
 10  # - openai: Production (paid, fast, good quality)
 11  # - anthropic: Production (paid, excellent reasoning)
 12  # - gemini: Production (paid, multimodal, long context)
 13  # - ollama: Development/Testing (free, local, private)
 14  
 15  LLM_PROVIDER=openai
 16  #LLM_PROVIDER=ollama
 17  
 18  
 19  # ----------------------------------------------------------------------------
 20  # OpenAI Configuration (if LLM_PROVIDER=openai)
 21  # ----------------------------------------------------------------------------
 22  OPENAI_MODEL=gpt-4o-mini
 23  OPENAI_API_KEY=your_open_api-key
 24  
 25  # Available OpenAI models:
 26  # - gpt-4o-mini (recommended, fast, cheap: $0.015/candidate - (~0.17 cents))
 27  # - gpt-4-turbo (best quality, expensive: $0.08/candidate)
 28  # - gpt-4 (legacy, expensive)
 29  # - gpt-3.5-turbo (cheapest, lower quality)
 30  
 31  
 32  # ----------------------------------------------------------------------------
 33  # Anthropic Configuration (if LLM_PROVIDER=anthropic)
 34  # ----------------------------------------------------------------------------
 35  ANTHROPIC_API_KEY=your_anthropic_api_key
 36  ANTHROPIC_MODEL=claude-3-5-sonnet-20241022
 37  
 38  # Available Anthropic models:
 39  # - claude-3-opus-20240229 (most capable, $0.12/candidate)
 40  # - claude-3-5-sonnet-20241022 (best balance, $0.025/candidate)
 41  # - claude-3-sonnet-20240229 (good balance, $0.02/candidate)
 42  # - claude-3-haiku-20240307 (fastest/cheapest, $0.012/candidate)
 43  
 44  # ----------------------------------------------------------------------------
 45  # Google Gemini Configuration (if LLM_PROVIDER=gemini)
 46  # ----------------------------------------------------------------------------
 47  GEMINI_API_KEY=your_google_gemini_api_key
 48  GEMINI_MODEL=gemini-2.5-pro
 49  
 50  # Available Gemini models:
 51  # - gemini-2.5-pro (latest, most capable, multimodal)
 52  # - gemini-1.5-pro (powerful, 2M token context)
 53  # - gemini-1.5-flash (fast, efficient)
 54  # - gemini-pro (standard, good balance)
 55  #
 56  # Get API key: https://makersuite.google.com/app/apikey
 57  # Pricing: https://ai.google.dev/pricing
 58  
 59  # ----------------------------------------------------------------------------
 60  # Ollama Configuration (if LLM_PROVIDER=ollama)
 61  # ----------------------------------------------------------------------------
 62  OLLAMA_MODEL=qwen3:0.6b
 63  OLLAMA_BASE_URL=http://localhost:11434
 64  
 65  # Available Ollama models (free, local):
 66  # - qwen3:6b (recommended, fast, good quality)
 67  # - llama3 (8B parameters)
 68  # - mistral (7B, fast)
 69  
 70  # Setup: ollama pull qwen3:6b
 71  
 72  # ----------------------------------------------------------------------------
 73  # LLM Temperature Settings (optional, applies to all providers)
 74  # ----------------------------------------------------------------------------
 75  EXTRACTION_TEMP=0.2
 76  SUMMARY_TEMP=0.5
 77  EVALUATION_TEMP=0.4
 78  
 79  
 80  # ============================================================================
 81  # LLAMA INDEX & LLAMA CLOUD CONFIGURATION
 82  # ============================================================================
 83  
 84  LLAMA_CLOUD_API_KEY=llama_cloud_api_key
 85  
 86  
 87  # ============================================================================
 88  # GOOGLE CLOUD CONFIGURATION
 89  # ============================================================================
 90  
 91  # Copy the downloaded Google Service Account: 'project-id.json' file from google cloud and rename
 92  GOOGLE_CREDENTIALS_JSON_FILE=google-service-account-credentials.json
 93  GOOGLE_SHEET_ID=google_sheet_id
 94  
 95  GOOGLE_CLOUD_STORAGE_BUCKET=ai-hr-cv-storage-prod
 96  
 97  # How to get these:
 98  #
 99  # GOOGLE_SHEET_ID: Create sheet, get ID from URL
100  #    https://docs.google.com/spreadsheets/d/SHEET_ID_HERE/edit
101  #
102  
103  
104  # ============================================================================
105  # DATABASE CONFIGURATION
106  # ============================================================================
107  
108  MONGODB_URL=mongodb://localhost:27017
109  
110  # ============================================================================
111  # FASTAPI CONFIGURATION
112  # ============================================================================
113  
114  HOST=0.0.0.0
115  PORT=8000
116  RELOAD=false
117  DEBUG=false
118  WORKERS=1
119  
120  
121  # Development settings:
122  # RELOAD=false
123  # DEBUG=true
124  # WORKERS=1
125  
126  
127  # ============================================================================
128  # CONFIGURATION EXAMPLES
129  # ============================================================================
130  
131  # Example 1: Production with OpenAI (Default)
132  # --------------------------------------------
133  # LLM_PROVIDER=openai
134  # OPENAI_API_KEY=sk-proj-xxxxxxxxxxxxx
135  # OPENAI_MODEL=gpt-4o-mini
136  
137  
138  # Example 2: Development with Ollama (Free!)
139  # -------------------------------------------
140  # LLM_PROVIDER=ollama
141  # OLLAMA_MODEL=qwen3:0.6b
142  # OLLAMA_BASE_URL=http://localhost:11434
143  # Cost: $0 (runs locally)
144  # Setup: ollama pull qwen3:0.6b && ollama serve
145