mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-17 21:26:26 +00:00
fix path
This commit is contained in:
parent
c14a9a55d7
commit
ba77a67ba7
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user