Spaces:
Sleeping
Sleeping
Download .env.example from orakzai-io/Rednote: direct link, hf CLI and curl.
- Browser
- Download file 2.07 kB
-
https://huggingface.co/spaces/orakzai-io/Rednote/resolve/main/.env.example
- Command line
-
hf download hf://spaces/orakzai-io/Rednote/.env.example
-
curl -L -o .env.example https://huggingface.co/spaces/orakzai-io/Rednote/resolve/main/.env.example
2.07 kB
| # ββ Database ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # PostgreSQL connection string (async with asyncpg driver) | |
| DATABASE_URL=postgresql+asyncpg://postgres:postgres@localhost:5432/rag_db | |
| # ββ Groq API ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Get your API key at https://console.groq.com | |
| GROQ_API_KEY=gsk_your_groq_api_key_here | |
| # ββ Authentication ββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Generate a strong random secret: python -c "import secrets; print(secrets.token_hex(32))" | |
| SECRET_KEY=your_jwt_secret_change_this_in_production | |
| # ββ Uploads βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| UPLOAD_DIR=./uploads | |
| FASTEMBED_CACHE_PATH=../fastembed_cache | |
| # ββ Application Settings ββββββββββββββββββββββββββββββββββββββββββββββ | |
| # How many relevant chunks to retrieve per query | |
| TOP_K=5 | |
| # Token-based chunk size for document splitting | |
| CHUNK_SIZE=500 | |
| # Overlap between consecutive chunks | |
| CHUNK_OVERLAP=50 | |
| # Maximum file upload size in bytes (10MB default) | |
| MAX_FILE_SIZE=10485760 | |
| # Allowed CORS origins (comma-separated for multiple origins) | |
| ALLOWED_ORIGINS=http://localhost:5173,http://localhost:80 | |
| # Number of uvicorn workers for production | |
| UVICORN_WORKERS=4 | |
| # ββ Frontend (Vite) βββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Base URL for the backend API | |
| VITE_API_URL=http://localhost:8000 |