This commit is contained in:
Alex 2023-11-17 15:31:53 +00:00
parent c14a9a55d7
commit ba77a67ba7

View File

@ -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":