Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,8 @@ def get_text_chunks(text):
|
|
31 |
|
32 |
|
33 |
def get_vectorstore(text_chunks):
|
34 |
-
|
35 |
-
embeddings = HuggingFaceInstructEmbeddings(model_name="NousResearch/Llama-2-7b-hf")
|
36 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
37 |
return vectorstore
|
38 |
|
|
|
31 |
|
32 |
|
33 |
def get_vectorstore(text_chunks):
|
34 |
+
embeddings = OpenAIEmbeddings()
|
35 |
+
# embeddings = HuggingFaceInstructEmbeddings(model_name="NousResearch/Llama-2-7b-hf")
|
36 |
vectorstore = FAISS.from_texts(texts=text_chunks, embedding=embeddings)
|
37 |
return vectorstore
|
38 |
|