Spaces:
Sleeping
Sleeping
Download debug_index.py from build-small-hackathon/InsureChat: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/spaces/build-small-hackathon/InsureChat/resolve/main/debug_index.py
- Command line
-
hf download hf://spaces/build-small-hackathon/InsureChat/debug_index.py
-
curl -L -o debug_index.py https://huggingface.co/spaces/build-small-hackathon/InsureChat/resolve/main/debug_index.py
257 Bytes
| import insurechat.app as app | |
| print('Index texts:', len(app.index.texts)) | |
| if app.index.texts: | |
| print('Sample text 0:', app.index.texts[0][:200]) | |
| else: | |
| print('No texts loaded') | |
| print('Query copay results count:', len(app.index.query('copay', topk=3))) | |