Spaces:
Sleeping
Sleeping
| # Copy to `.env` for local development. NEVER commit `.env`. | |
| # | |
| # In production (HuggingFace Space), set these as Space *secrets* in the | |
| # Space settings UI, not as env vars (Space secrets are encrypted at rest | |
| # and not exposed in build logs). | |
| # ---- required in production ---- | |
| # 32-char URL-safe random string. Generate with: | |
| # python -c "import secrets; print(secrets.token_urlsafe(32))" | |
| EMBEDDER_API_KEY=change-me-to-a-random-32-char-string | |
| # ---- optional ---- | |
| # sentence-transformers model id. Must match what the eduai_platform side | |
| # configures so embeddings stay interoperable. | |
| EMBEDDER_MODEL_NAME=all-MiniLM-L6-v2 | |
| # Hard limits to protect the box from runaway clients. | |
| EMBEDDER_MAX_BATCH=128 | |
| EMBEDDER_MAX_TEXT_LEN=8000 | |
| # Comma-separated allow-list. Use specific origins in production: | |
| # EMBEDDER_CORS=http://localhost:8000,https://eduai.example.com | |
| EMBEDDER_CORS=* | |