fix path bug on default

This commit is contained in:
Alex
2023-11-17 15:33:51 +00:00
parent ba77a67ba7
commit 852b016111

View File

@@ -76,7 +76,7 @@ def run_async_chain(chain, question, chat_history):
def get_vectorstore(data): def get_vectorstore(data):
if "active_docs" in data: if "active_docs" in data:
if data["active_docs"].split("/")[1] == "default": if data["active_docs"].split("/")[0] == "default":
vectorstore = "" vectorstore = ""
elif data["active_docs"].split("/")[0] == "local": elif data["active_docs"].split("/")[0] == "local":
vectorstore = "indexes/" + data["active_docs"] vectorstore = "indexes/" + data["active_docs"]