question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error Reconstructing FAISS Index

See original GitHub issue

Hiya! Thanks for making this library out in the open!

I’ve been trying to get your training wrapper working, but when it tries to generate the index, I get the following error:

RuntimeError: Error in virtual void faiss::Index::reconstruct(faiss::Index::idx_t, float*) const at /project/faiss/faiss/Index.cpp:48: reconstruct not implemented for this type of index

To reproduce, you can use this google colab: https://colab.research.google.com/drive/1BcOtBpWBGmXX_tOC7WKcHOa9SukWEKpf?usp=sharing

Any help with this would be greatly appreciated!

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rom1504commented, May 1, 2022

anyway here is the official recommendation https://github.com/facebookresearch/faiss/wiki/Comparing-GPU-vs-CPU

but in practice I’ve never seen a case where it’s beneficial to use GPU for faiss

faiss cpu is very fast

1reaction
rom1504commented, May 1, 2022

I recommend never using faiss gpu

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error reconstructing vector: direct map not initialized #374
Summary. I'm trying to get the closest vectors of a given ID that is already in the index. AFAIK Faiss does not contain...
Read more >
Faiss Users | Hi,
Hi, This is my index: index = faiss. ... I got this error: ... and compute the distance from the query vector to...
Read more >
Creating an index — autofaiss 1.0.0 documentation
This lib automatically builds an optimal index that maximizes the recall scores given a memory and query speed constraint. The build_index command ...
Read more >
beniz/deepdetect - Gitter
My understanding is as follows with degree of confidence in between () : FAISS indexes with training once (certain), then support incremental indexing...
Read more >
Recently Active 'faiss' Questions
I have a FAISS index populated with 8M embedding vectors. I don't have the embedding vectors anymore, only the index, and it is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found