Spaces:
Sleeping
Sleeping
File size: 2,916 Bytes
d495234 | 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 | # ===========================================================================
# MediGuard AI — HuggingFace Spaces Secrets Reference
# ===========================================================================
# Copy these to your HuggingFace Space Settings → Secrets
# ===========================================================================
# ===========================================================================
# REQUIRED: LLM API Key (choose one)
# ===========================================================================
# Option 1: Groq (RECOMMENDED - fast, free)
# Get key at: https://console.groq.com/keys
GROQ_API_KEY=your_groq_api_key_here
# Option 2: Google Gemini (free tier)
# Get key at: https://aistudio.google.com/app/apikey
# GOOGLE_API_KEY=your_google_api_key_here
# ===========================================================================
# OPTIONAL: LLM Model Configuration
# ===========================================================================
# Groq model (default: llama-3.3-70b-versatile)
# Options: llama-3.3-70b-versatile, llama-3.1-8b-instant, mixtral-8x7b-32768
# GROQ_MODEL=llama-3.3-70b-versatile
# Gemini model (default: gemini-2.0-flash)
# Options: gemini-2.0-flash, gemini-1.5-pro, gemini-1.5-flash
# GEMINI_MODEL=gemini-2.0-flash
# Force specific provider (auto-detected from keys if not set)
# LLM_PROVIDER=groq
# ===========================================================================
# OPTIONAL: Embeddings Configuration
# ===========================================================================
# Embedding provider (default: huggingface - local, no API needed)
# Options: jina (high-quality 1024d), google, huggingface
# EMBEDDING_PROVIDER=huggingface
# Jina AI API key for high-quality embeddings
# Get key at: https://jina.ai/ (free tier available)
# JINA_API_KEY=your_jina_api_key_here
# ===========================================================================
# OPTIONAL: Observability (Langfuse)
# ===========================================================================
# Enable Langfuse tracing (default: false)
# LANGFUSE_ENABLED=true
# Langfuse credentials (required if LANGFUSE_ENABLED=true)
# Get at: https://cloud.langfuse.com/
# LANGFUSE_PUBLIC_KEY=pk-lf-xxx
# LANGFUSE_SECRET_KEY=sk-lf-xxx
# LANGFUSE_HOST=https://cloud.langfuse.com
# ===========================================================================
# Notes:
# ===========================================================================
#
# 1. At minimum, you need either GROQ_API_KEY or GOOGLE_API_KEY
# 2. Groq is recommended for best speed/quality balance (free tier)
# 3. HuggingFace embeddings run locally - no API key needed (default)
# 4. Jina embeddings are higher quality but require API key
# 5. Langfuse provides observability for debugging and monitoring
#
# ===========================================================================
|