From 4a7670f2aa081536c44756fbf2fce539467bfc60 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 29 Mar 2023 17:32:00 +0100 Subject: [PATCH] Update app.py --- application/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/application/app.py b/application/app.py index 882a2cb..eda3099 100644 --- a/application/app.py +++ b/application/app.py @@ -129,7 +129,10 @@ def api_answer(): # check if the vectorstore is set if "active_docs" in data: if data["active_docs"].split("/")[0] == "local": - vectorstore = "indexes/" + data["active_docs"] + if data["active_docs"].split("/")[1] == "default": + vectorstore = "" + else: + vectorstore = "indexes/" + data["active_docs"] else: vectorstore = "vectors/" + data["active_docs"] if data['active_docs'] == "default":