Fix vectorstore path in check_docs function

pull/912/head
Alex 2 months ago
parent 6658cec6a0
commit 6911f8652a

@ -248,7 +248,7 @@ def check_docs():
# split docs on / and take first part
if data["docs"].split("/")[0] == "local":
return {"status": "exists"}
vectorstore = "vectors/" + data["docs"]
vectorstore = "vectors/" + secure_filename(data["docs"])
base_path = "https://raw.githubusercontent.com/arc53/DocsHUB/main/"
if os.path.exists(vectorstore) or data["docs"] == "default":
return {"status": "exists"}

Loading…
Cancel
Save