update vectorestore path
Browse files- .python-version +1 -0
- app.py +2 -2
.python-version
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
3.11.4
|
app.py
CHANGED
@@ -55,7 +55,7 @@ hf_embeddings = HuggingFaceEndpointEmbeddings(
|
|
55 |
|
56 |
if os.path.exists("./vectorstore"):
|
57 |
vectorstore = FAISS.load_local(
|
58 |
-
"./
|
59 |
hf_embeddings,
|
60 |
allow_dangerous_deserialization=True # this is necessary to load the vectorstore from disk as it's stored as a `.pkl` file.
|
61 |
)
|
@@ -71,7 +71,7 @@ else:
|
|
71 |
vectorstore = FAISS.from_documents(split_documents[i:i+32], hf_embeddings)
|
72 |
continue
|
73 |
vectorstore.add_documents(split_documents[i:i+32])
|
74 |
-
vectorstore.save_local("./
|
75 |
|
76 |
hf_retriever = vectorstore.as_retriever()
|
77 |
|
|
|
55 |
|
56 |
if os.path.exists("./vectorstore"):
|
57 |
vectorstore = FAISS.load_local(
|
58 |
+
"./vectorstore",
|
59 |
hf_embeddings,
|
60 |
allow_dangerous_deserialization=True # this is necessary to load the vectorstore from disk as it's stored as a `.pkl` file.
|
61 |
)
|
|
|
71 |
vectorstore = FAISS.from_documents(split_documents[i:i+32], hf_embeddings)
|
72 |
continue
|
73 |
vectorstore.add_documents(split_documents[i:i+32])
|
74 |
+
vectorstore.save_local("./vectorstore")
|
75 |
|
76 |
hf_retriever = vectorstore.as_retriever()
|
77 |
|