Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,8 @@ def get_text_chuks(raw_text):
|
|
30 |
return chunks
|
31 |
|
32 |
def get_vector_store(text_chunks):
|
33 |
-
|
34 |
-
embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
|
35 |
vector_store = FAISS.from_texts(text_chunks, embeddings)
|
36 |
return vector_store
|
37 |
|
|
|
30 |
return chunks
|
31 |
|
32 |
def get_vector_store(text_chunks):
|
33 |
+
embeddings = OpenAIEmbeddings()
|
34 |
+
# embeddings = HuggingFaceInstructEmbeddings(model_name="hkunlp/instructor-xl")
|
35 |
vector_store = FAISS.from_texts(text_chunks, embeddings)
|
36 |
return vector_store
|
37 |
|