Download show_data.py from Sanjam19/GraphRAG: direct link, hf CLI and curl.
- Browser
- Download file 199 Bytes
-
https://huggingface.co/spaces/Sanjam19/GraphRAG/resolve/main/show_data.py
- Command line
-
hf download hf://spaces/Sanjam19/GraphRAG/show_data.py
-
curl -L -o show_data.py https://huggingface.co/spaces/Sanjam19/GraphRAG/resolve/main/show_data.py
199 Bytes
| # show_data.py | |
| import json | |
| c = json.load(open('data/chunks.json', encoding='utf-8')) | |
| print(f"Chunks: {len(c)}") | |
| print(f"Sample company: {c[0]['company']}") | |
| print(f"Sample text: {c[0]['text'][:150]}") |