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