diff --git a/application/api/answer/routes.py b/application/api/answer/routes.py index fc6f969e..060d31c7 100644 --- a/application/api/answer/routes.py +++ b/application/api/answer/routes.py @@ -76,11 +76,10 @@ def run_async_chain(chain, question, chat_history): def get_vectorstore(data): if "active_docs" in data: - if data["active_docs"].split("/")[0] == "local": - if data["active_docs"].split("/")[1] == "default": + if data["active_docs"].split("/")[1] == "default": vectorstore = "" - else: - vectorstore = "indexes/" + data["active_docs"] + elif data["active_docs"].split("/")[0] == "local": + vectorstore = "indexes/" + data["active_docs"] else: vectorstore = "vectors/" + data["active_docs"] if data["active_docs"] == "default":