PabloVD commited on
Commit
25c6d42
·
1 Parent(s): fe4c7e0

Nvidia embedding

Browse files
Files changed (1) hide show
  1. worker.py +3 -2
worker.py CHANGED
@@ -47,8 +47,9 @@ def init_llm():
47
  # llm_hub.invoke('foo bar')
48
 
49
  #Initialize embeddings using a pre-trained model to represent the text data.
50
- # embedddings_model = "sentence-transformers/multi-qa-distilbert-cos-v1"
51
- embedddings_model = "sentence-transformers/all-MiniLM-L6-v2"
 
52
  embeddings = HuggingFaceInstructEmbeddings(
53
  model_name=embedddings_model,
54
  model_kwargs={"device": DEVICE}
 
47
  # llm_hub.invoke('foo bar')
48
 
49
  #Initialize embeddings using a pre-trained model to represent the text data.
50
+ embedddings_model = "sentence-transformers/multi-qa-distilbert-cos-v1"
51
+ # embedddings_model = "sentence-transformers/all-MiniLM-L6-v2"
52
+ embedddings_model = "nvidia/NV-Embed-v2"
53
  embeddings = HuggingFaceInstructEmbeddings(
54
  model_name=embedddings_model,
55
  model_kwargs={"device": DEVICE}