You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run your test example, but without using a remote index source location like `https://assets.zilliz.com/hnswlib_hnsw_voc_17k_1f1dfd63a9.index%60. I downloaded the index and put it in my directory.
With the remote index, all the visualizations were loaded, but with the local index, the visualizations didn't load and became stuck in an infinite loop.
Can you explain why this is happening, please?
Here is the code with both sources:
fromfederpy.federpyimportFederPyif__name__=='__main__':
hnswSource='hnswlib'hnswIndexFile='https://assets.zilliz.com/hnswlib_hnsw_voc_17k_1f1dfd63a9.index'# hnswIndexFile = 'hnswlib_hnsw_voc_17k_1f1dfd63a9.index'# Lite version, only input indexFile, no viewParams, no images.federPy_hnsw_lite=FederPy(hnswIndexFile, hnswSource)
# federPy_hnsw_lite.overview()federPy_hnsw_lite.searchRandTestVec()
The text was updated successfully, but these errors were encountered:
@luancaarvalhoFederPy cannot read local files directly.
In fact, FederPy generates an html for display. This hmtl is run by the browser. It will read the index file in the browser and call FederJs to parse it. Note that browsers are not allowed to read local files directly, which violates the CORS protocol.
If you want to read a local file, you first have to place the index file on the "network". Maybe you can place it on s3 so that other people on the network can see what you're sharing. Or a simpler example, you can use Python's SimpleHTTPServer to build a simple static file server, then Feder can find your index file from localhost.
Hello Feder team!
I'm trying to run your test example, but without using a remote index source location like `https://assets.zilliz.com/hnswlib_hnsw_voc_17k_1f1dfd63a9.index%60. I downloaded the index and put it in my directory.
With the remote index, all the visualizations were loaded, but with the local index, the visualizations didn't load and became stuck in an infinite loop.
Can you explain why this is happening, please?
Here is the code with both sources:
The text was updated successfully, but these errors were encountered: