Skip to content

Commit

Permalink
Add sentence-transformers library to requirements.txt and comment out…
Browse files Browse the repository at this point in the history
… model_name in base.py
  • Loading branch information
dartpain committed Jan 29, 2024
1 parent 318de53 commit a2418d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions application/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ python-dotenv==1.0.1
redis==5.0.1
Requests==2.31.0
retry==0.9.2
sentence-transformers
tiktoken==0.5.2
torch==2.1.2
tqdm==4.66.1
Expand Down
2 changes: 1 addition & 1 deletion application/vectorstore/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _get_embeddings(self, embeddings_name, embeddings_key=None):
)
elif embeddings_name == "huggingface_sentence-transformers/all-mpnet-base-v2":
embedding_instance = embeddings_factory[embeddings_name](
model_name="./model/all-mpnet-base-v2",
#model_name="./model/all-mpnet-base-v2",
model_kwargs={"device": "cpu"},
)
else:
Expand Down

0 comments on commit a2418d1

Please sign in to comment.