Spaces:
Runtime error
Runtime error
Download test/vector_store.py from JR818/JarvisFastAPI: direct link, hf CLI and curl.
- Browser
- Download file 227 Bytes
-
https://huggingface.co/spaces/JR818/JarvisFastAPI/resolve/e9fffa81c981f9eddbbc7065d231ffc8ee7fb485/test/vector_store.py
- Command line
-
hf download hf://spaces/JR818/JarvisFastAPI@e9fffa81c981f9eddbbc7065d231ffc8ee7fb485/test/vector_store.py
-
curl -L -o vector_store.py https://huggingface.co/spaces/JR818/JarvisFastAPI/resolve/e9fffa81c981f9eddbbc7065d231ffc8ee7fb485/test/vector_store.py
227 Bytes
| from service import VectorStore | |
| index_name = 'filecoin' | |
| vector_store = VectorStore(index_name) | |
| print(vector_store.search("what is filecoin",ret_json=True)) | |
| print(vector_store.marginal_search("what is filecoin",ret_json=True)) |