Skip to content

Commit

Permalink
refactor: remove dead code from FAISSDocumentStore (#3372)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 authored Oct 13, 2022
1 parent 31fa75e commit 60f678e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions haystack/document_stores/faiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,6 @@ def _create_new_index(
index = faiss.IndexHNSWFlat(embedding_dim, n_links, metric_type)
index.hnsw.efSearch = ef_search
index.hnsw.efConstruction = ef_construction
if "ivf" in index_factory.lower(): # enable reconstruction of vectors for inverted index
self.faiss_indexes[index].set_direct_map_type(faiss.DirectMap.Hashtable)

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

0 comments on commit 60f678e

Please sign in to comment.