-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Description
In colab, visualizing both hnsw and faiss using my own index with overview or searchRandTestVec shows the cell has finished running but the blue spinning circle goes on forever on a white output.
The same notebook can show the examples from https://colab.research.google.com/drive/12L_oJPR-yFDlORpPondsqGNTPVsSsUwi#scrollTo=N3qqBAYxYcbt though.
Is the problem with the index used?
I tried reducing the dimensionality to 5, even lower than the 10 in the example but it still loads forever.
How to investigate how the indexes at
hnswSource = 'hnswlib'
hnswIndexFile = 'https://assets.zilliz.com/hnswlib_hnsw_voc_17k_1f1dfd63a9.index'
ivfflatSource = 'faiss'
ivfflatIndexFile = 'https://assets.zilliz.com/faiss_ivf_flat_voc_17k_ab112eec72.index'
were built?
I tried to find the data using
import requests
hnswIndexFile = 'https://assets.zilliz.com/hnswlib_hnsw_voc_17k_1f1dfd63a9.index'
localFilename = 'hnswlib_hnsw_voc_17k_1f1dfd63a9.index'
response = requests.get(hnswIndexFile)
with open(localFilename, 'wb') as f:
f.write(response.content)
p = hnswlib.Index(space='l2',dim=10)
p.load_index(localFilename)
p.get_items()
but got empty list.
I was expecting get_items() to show the data added to the index
Metadata
Metadata
Assignees
Labels
No labels