mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
fix path bug on default
This commit is contained in:
@@ -76,7 +76,7 @@ def run_async_chain(chain, question, chat_history):
|
|||||||
|
|
||||||
def get_vectorstore(data):
|
def get_vectorstore(data):
|
||||||
if "active_docs" in data:
|
if "active_docs" in data:
|
||||||
if data["active_docs"].split("/")[1] == "default":
|
if data["active_docs"].split("/")[0] == "default":
|
||||||
vectorstore = ""
|
vectorstore = ""
|
||||||
elif data["active_docs"].split("/")[0] == "local":
|
elif data["active_docs"].split("/")[0] == "local":
|
||||||
vectorstore = "indexes/" + data["active_docs"]
|
vectorstore = "indexes/" + data["active_docs"]
|
||||||
|
|||||||
Reference in New Issue
Block a user