Spaces:
Paused
Paused
Download rag_service/config.py from rishik1111/vector-backend: direct link, hf CLI and curl.
- Browser
- Download file 568 Bytes
-
https://huggingface.co/spaces/rishik1111/vector-backend/resolve/main/rag_service/config.py
- Command line
-
hf download hf://spaces/rishik1111/vector-backend/rag_service/config.py
-
curl -L -o config.py https://huggingface.co/spaces/rishik1111/vector-backend/resolve/main/rag_service/config.py
568 Bytes
| """ | |
| App configuration module. | |
| Imports and re-exports configuration from root config.py, | |
| and defines benchmark latency constraints. | |
| """ | |
| import os | |
| import sys | |
| from pathlib import Path | |
| # Ensure root workspace directory is in sys.path | |
| _ROOT_DIR = Path(__file__).resolve().parent.parent | |
| if str(_ROOT_DIR) not in sys.path: | |
| sys.path.insert(0, str(_ROOT_DIR)) | |
| # Re-export all settings from root config | |
| from config import * | |
| # Latency budget in milliseconds for retrieval benchmark (embed + FAISS search) | |
| LATENCY_BUDGET_MS = float(os.getenv("LATENCY_BUDGET_MS", "50.0")) | |