Skip to content

Why does my overview() load forever? #71

@gitgithan

Description

@gitgithan

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions