~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
refactor: remove redundant wrapper, call PathValidator directly
LearningCircuit5e7bcddf2777
diff --git a/src/local_deep_research/research_library/routes/rag_routes.py b/src/local_deep_research/research_library/routes/rag_routes.pyindex 8564068ecd..2a7796ac61 100644--- a/src/local_deep_research/research_library/routes/rag_routes.py+++ b/src/local_deep_research/research_library/routes/rag_routes.py@@ -169,25 +169,6 @@ def get_rag_service(collection_id: Optional[str] = None) -> LibraryRAGService:)-def validate_local_index_path(user_path: str) -> Path:- """- Validate and sanitize a user-provided path for local folder indexing.-- Prevents path traversal and blocks access to sensitive system directories.- Delegates to PathValidator.validate_local_filesystem_path() for centralized security.-- Args:- user_path: User-provided path string-- Returns:- Validated and resolved Path object-- Raises:- ValueError: If path is invalid or points to restricted location- """- return PathValidator.validate_local_filesystem_path(user_path)--# Page Routes@@ -1005,7 +986,7 @@ def index_local_library():# Validate and sanitize the path to prevent traversal attackstry:- path = validate_local_index_path(folder_path)+ path = PathValidator.validate_local_filesystem_path(folder_path)except ValueError as e:logger.warning(f"Path validation failed for '{folder_path}': {e}")return jsonify({"success": False, "error": "Invalid path"}), 400