Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def get_text_chunks(text):
|
|
| 41 |
|
| 42 |
# Function to create a FAISS vectorstore using Hugging Face embeddings
|
| 43 |
def get_vectorstore(text_chunks):
|
| 44 |
-
embeddings = HuggingFaceInstructEmbeddings(model_name="
|
| 45 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
| 46 |
return vectorstore
|
| 47 |
|
|
|
|
| 41 |
|
| 42 |
# Function to create a FAISS vectorstore using Hugging Face embeddings
|
| 43 |
def get_vectorstore(text_chunks):
|
| 44 |
+
embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
|
| 45 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
| 46 |
return vectorstore
|
| 47 |
|