Download skill/query-hf-graphrag/scripts/query_hf_graphrag.py from justicedao/ipfs_uscode: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/datasets/justicedao/ipfs_uscode/resolve/main/skill/query-hf-graphrag/scripts/query_hf_graphrag.py
- Command line
-
hf download hf://datasets/justicedao/ipfs_uscode/skill/query-hf-graphrag/scripts/query_hf_graphrag.py
-
curl -L -o query_hf_graphrag.py https://huggingface.co/datasets/justicedao/ipfs_uscode/resolve/main/skill/query-hf-graphrag/scripts/query_hf_graphrag.py
403 Bytes
| #!/usr/bin/env python3 | |
| from pathlib import Path | |
| import runpy | |
| ROOT = Path(__file__).resolve().parents[3] | |
| for candidate in ( | |
| ROOT / "scripts" / "query_hf_graphrag.py", | |
| ROOT / "scripts" / "query_hf_graphrag.py", | |
| ): | |
| if candidate.is_file(): | |
| runpy.run_path(str(candidate), run_name="__main__") | |
| break | |
| else: | |
| raise SystemExit("GraphRAG query client is missing from this release") | |