From 6911f8652a4b4c79f3aa2cd38d71ec337dcdf534 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 8 Apr 2024 13:06:05 +0100 Subject: [PATCH] Fix vectorstore path in check_docs function --- application/api/user/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/user/routes.py b/application/api/user/routes.py index ec75554e..e80ec52b 100644 --- a/application/api/user/routes.py +++ b/application/api/user/routes.py @@ -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"}