~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 deprecated index_research_documents method and endpoint
LearningCircuit6b9b61b35d71
diff --git a/src/local_deep_research/research_library/routes/rag_routes.py b/src/local_deep_research/research_library/routes/rag_routes.pyindex 6d145538ec..24bbbe0bab 100644--- a/src/local_deep_research/research_library/routes/rag_routes.py+++ b/src/local_deep_research/research_library/routes/rag_routes.py@@ -405,33 +405,6 @@ def remove_document():), 500-@rag_bp.route("/api/rag/index-research", methods=["POST"])-@login_required-def index_research():- """Index all documents from a research."""- try:- data = request.get_json()- research_id = data.get("research_id")- force_reindex = data.get("force_reindex", False)-- if not research_id:- return jsonify(- {"success": False, "error": "research_id is required"}- ), 400-- rag_service = get_rag_service()- results = rag_service.index_research_documents(- research_id, force_reindex- )-- return jsonify({"success": True, "results": results})- except Exception as e:- logger.exception(f"Error indexing research {research_id}")- return jsonify(- {"success": False, "error": f"Operation failed: {type(e).__name__}"}- ), 500--@rag_bp.route("/api/rag/index-all", methods=["GET"])@login_requireddef index_all():diff --git a/src/local_deep_research/research_library/services/library_rag_service.py b/src/local_deep_research/research_library/services/library_rag_service.pyindex 2c8b08738e..0be6a76d00 100644--- a/src/local_deep_research/research_library/services/library_rag_service.py+++ b/src/local_deep_research/research_library/services/library_rag_service.py@@ -510,30 +510,6 @@ class LibraryRAGService:"error": f"Operation failed: {type(e).__name__}",}- def index_research_documents(- self, research_id: str, force_reindex: bool = False- ) -> Dict[str, Any]:- """- DEPRECATED: This method uses old research_id concept.- Use collection-based indexing with index_document(document_id, collection_id) instead.-- TODO: Refactor to take collection_id and query DocumentCollection to find documents.-- Args:- research_id: ID of the research- force_reindex: Whether to force reindexing already indexed documents-- Returns:- Dict with counts of successful, skipped, and failed documents- """- logger.warning(- "index_research_documents() is deprecated. Use collection-based indexing instead."- )- return {- "status": "error",- "error": "This method is deprecated. Use collection-based indexing with index_document(document_id, collection_id) instead.",- }-def index_all_documents(self,collection_id: str,