Spaces:
Sleeping
Sleeping
Download graph/state.py from mikail-bitik/CorrectiveRAGProject: direct link, hf CLI and curl.
- Browser
- Download file 361 Bytes
-
https://huggingface.co/spaces/mikail-bitik/CorrectiveRAGProject/resolve/main/graph/state.py
- Command line
-
hf download hf://spaces/mikail-bitik/CorrectiveRAGProject/graph/state.py
-
curl -L -o state.py https://huggingface.co/spaces/mikail-bitik/CorrectiveRAGProject/resolve/main/graph/state.py
361 Bytes
| from typing import List, TypedDict | |
| class GraphState(TypedDict): | |
| """ | |
| Represents state of a graph | |
| Attributes: | |
| question: question | |
| generation: LLM generation | |
| web_search: whether to add search or not | |
| documents: list of documents | |
| """ | |
| question: str | |
| generation: str | |
| web_search: bool | |
| documents: List[str] |