Download src/rag/agent/state.py from ZhangNguyen/Legislation_GraphRag: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/spaces/ZhangNguyen/Legislation_GraphRag/resolve/main/src/rag/agent/state.py
- Command line
-
hf download hf://spaces/ZhangNguyen/Legislation_GraphRag/src/rag/agent/state.py
-
curl -L -o state.py https://huggingface.co/spaces/ZhangNguyen/Legislation_GraphRag/resolve/main/src/rag/agent/state.py
466 Bytes
| from __future__ import annotations | |
| from typing import Any, Dict, List, Optional, TypedDict | |
| class LegalRagState(TypedDict, total=False): | |
| question: str | |
| graph: Dict[str, Any] | |
| filters: Dict[str, Any] | |
| query_profile: Dict[str, Any] | |
| retrieval_result: Dict[str, Any] | |
| passages: List[Dict[str, Any]] | |
| context_grade: Dict[str, Any] | |
| answer: str | |
| sources: List[Dict[str, Any]] | |
| citation_validation: Dict[str, Any] | |
| error: Optional[str] | |