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

fix path bug on default
This commit is contained in:
Alex
2023-11-17 15:38:12 +00:00
committed by GitHub

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"]