Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def get_text_chunks(text):
|
|
39 |
|
40 |
def get_vectorstore(text_chunks):
|
41 |
#embeddings = OpenAIEmbeddings()
|
42 |
-
embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl"
|
43 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
44 |
return vectorstore
|
45 |
|
|
|
39 |
|
40 |
def get_vectorstore(text_chunks):
|
41 |
#embeddings = OpenAIEmbeddings()
|
42 |
+
embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
|
43 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
44 |
return vectorstore
|
45 |
|