Skip to content

Commit 60f678e

Browse files
authored
refactor: remove dead code from FAISSDocumentStore (#3372)
1 parent 31fa75e commit 60f678e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

haystack/document_stores/faiss.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,6 @@ def _create_new_index(
204204
index = faiss.IndexHNSWFlat(embedding_dim, n_links, metric_type)
205205
index.hnsw.efSearch = ef_search
206206
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)
209207

210208
logger.info(
211209
f"HNSW params: n_links: {n_links}, efSearch: {index.hnsw.efSearch}, efConstruction: {index.hnsw.efConstruction}"

0 commit comments

Comments
 (0)