We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31fa75e commit 60f678eCopy full SHA for 60f678e
haystack/document_stores/faiss.py
@@ -204,8 +204,6 @@ def _create_new_index(
204
index = faiss.IndexHNSWFlat(embedding_dim, n_links, metric_type)
205
index.hnsw.efSearch = ef_search
206
index.hnsw.efConstruction = ef_construction
207
- if "ivf" in index_factory.lower(): # enable reconstruction of vectors for inverted index
208
- self.faiss_indexes[index].set_direct_map_type(faiss.DirectMap.Hashtable)
209
210
logger.info(
211
f"HNSW params: n_links: {n_links}, efSearch: {index.hnsw.efSearch}, efConstruction: {index.hnsw.efConstruction}"
0 commit comments