Spaces:
Runtime error
Runtime error
Commit
•
b26d323
1
Parent(s):
c311b89
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def get_text_chunks(text):
|
|
31 |
|
32 |
def get_vectorstore(text_chunks):
|
33 |
#embeddings = OpenAIEmbeddings()
|
34 |
-
embeddings = HuggingFaceBgeEmbeddings(model_name="
|
35 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
36 |
return vectorstore
|
37 |
|
|
|
31 |
|
32 |
def get_vectorstore(text_chunks):
|
33 |
#embeddings = OpenAIEmbeddings()
|
34 |
+
embeddings = HuggingFaceBgeEmbeddings(model_name="hkunlp/instructor-large")
|
35 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
36 |
return vectorstore
|
37 |
|