~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(metrics): drop redundant build_reference_db + reset_db in download route (#3574)
LearningCircuitd21ce3d15875
diff --git a/src/local_deep_research/web/routes/metrics_routes.py b/src/local_deep_research/web/routes/metrics_routes.pyindex 77c4c0b4aa..9f7d0c4e0a 100644--- a/src/local_deep_research/web/routes/metrics_routes.py+++ b/src/local_deep_research/web/routes/metrics_routes.py@@ -2193,10 +2193,6 @@ def api_journal_data_download():get_download_state,)from ...journal_quality.data_sources import ALL_SOURCES- from ...journal_quality.db import (- build_reference_db,- )- from ...config.paths import get_journal_data_directoryforce = request.json.get("force", False) if request.is_json else Falsesuccess, internal_message = download_journal_data(force=force)@@ -2204,15 +2200,13 @@ def api_journal_data_download():logger.warning(f"Journal data download failed: {internal_message}")return jsonify({"success": False, "message": "Download failed"})- data_dir = get_journal_data_directory()- build_reference_db(- data_dir=data_dir,- output_path=data_dir / "journal_reference.db",- )- # Reset singleton so it picks up the new DB- from ...journal_quality.db import reset_db-- reset_db()+ # download_journal_data() already calls build_db() + reset_db()+ # internally on its success path (downloader.py:563 → db.py:1209),+ # so the DB is live on disk and the cached engine has been+ # invalidated by the time we get here. Do not add a second build+ # here — it would run the full ~30 s rebuild a second time and+ # write to the legacy `journal_reference.db` filename that the+ # downloader just cleaned up.# Build the user-facing message locally from structured state# (ints + developer-authored source labels). We deliberately do