Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,8 @@ def get_text_chunks(text):
|
|
43 |
def get_vectorstore(text_chunks):
|
44 |
|
45 |
#embeddings = OpenAIEmbeddings()
|
46 |
-
|
47 |
-
embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/paraphrase-multilingual-mpnet-base-v2")
|
48 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
49 |
|
50 |
return vectorstore
|
|
|
43 |
def get_vectorstore(text_chunks):
|
44 |
|
45 |
#embeddings = OpenAIEmbeddings()
|
46 |
+
embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
|
47 |
+
#embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/paraphrase-multilingual-mpnet-base-v2")
|
48 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
49 |
|
50 |
return vectorstore
|