Merge pull request #779 from arc53/bug/fix-patj

fix path bug on default
This commit is contained in:
Alex authored and GitHub committed 2023-11-17 15:38:12 +00:00
commit 5925aa50d8
1 file changed
+1 -1
+1 -1
View File
@@ -76,7 +76,7 @@ def run_async_chain(chain, question, chat_history):
def get_vectorstore(data):
if "active_docs" in data:
if data["active_docs"].split("/")[1] == "default":
if data["active_docs"].split("/")[0] == "default":
vectorstore = ""
elif data["active_docs"].split("/")[0] == "local":
vectorstore = "indexes/" + data["active_docs"]