Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ def get_text_chunks(text):
|
|
41 |
|
42 |
def get_vectorstore(text_chunks):
|
43 |
# Load the desired embeddings model.
|
44 |
-
embeddings = HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-
|
45 |
model_kwargs={'device': 'cpu'})
|
46 |
# embeddings = OpenAIEmbeddings()
|
47 |
# embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
|
|
|
41 |
|
42 |
def get_vectorstore(text_chunks):
|
43 |
# Load the desired embeddings model.
|
44 |
+
embeddings = HuggingFaceEmbeddings(model_name='sentence-transformers/all-MiniLM-L12-v2',
|
45 |
model_kwargs={'device': 'cpu'})
|
46 |
# embeddings = OpenAIEmbeddings()
|
47 |
# embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
|