Skip to content

Commit

Permalink
NL: Check before accessing model (#4237)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradh committed May 14, 2024
1 parent 40c44a6 commit f47084d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nl_server/embeddings_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ def _set_embeddings(self, idx_name: str, idx_info: IndexConfig):
raise e

# if store successfully created, set it in embeddings_map
if store:
if store and idx_info.model in self.name_to_emb_model:
self.embeddings_map[idx_name] = Embeddings(
model=self.name_to_emb_model[idx_info.model], store=store)

0 comments on commit f47084d

Please sign in to comment.