Download backend/state.py from Qar-Raz/NLP-RAG: direct link, hf CLI and curl.
- Browser
- Download file 216 Bytes
-
https://huggingface.co/spaces/Qar-Raz/NLP-RAG/resolve/main/backend/state.py
- Command line
-
hf download hf://spaces/Qar-Raz/NLP-RAG/backend/state.py
-
curl -L -o state.py https://huggingface.co/spaces/Qar-Raz/NLP-RAG/resolve/main/backend/state.py
216 Bytes
| from typing import Any | |
| state: dict[str, Any] = {} | |
| # this file defines the state dict | |
| # think of this as the runtime object created after startup | |
| REQUIRED_STATE_KEYS = ("index", "retriever", "rag_engine", "models") | |