From 852b01611168f310e908818cbb20b43e6648edd9 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 17 Nov 2023 15:33:51 +0000 Subject: [PATCH] fix path bug on default --- application/api/answer/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/answer/routes.py b/application/api/answer/routes.py index 060d31c75..e6a8a8b8c 100644 --- a/application/api/answer/routes.py +++ b/application/api/answer/routes.py @@ -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"]