Skip to content

Commit

Permalink
Fix collection name (#29)
Browse files Browse the repository at this point in the history
Signed-off-by: Aivin V. Solatorio <[email protected]>
  • Loading branch information
avsolatorio authored Feb 26, 2024
1 parent a4ab398 commit 312ae33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llm4data/embeddings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _common_init(self):
self.size = self.model_size[self.model_name]

if self.collection_name is None:
self.collection_name = f"{self.data_type}_{self.model_name}"
self.collection_name = f"{self.data_type}_{self.model_name.replace('/', '_')}"

def _instruct_init(self):
assert isinstance(self.kwargs, dict)
Expand Down

0 comments on commit 312ae33

Please sign in to comment.