Fix vectorstore path in check_docs function

This commit is contained in:
Alex
2024-04-08 13:06:05 +01:00
parent 6658cec6a0
commit 6911f8652a

View File

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