~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
fix(security): place bearer:disable comments on preceding line (#3611)
LearningCircuit4fb288812cec
diff --git a/src/local_deep_research/journal_quality/db.py b/src/local_deep_research/journal_quality/db.pyindex e169408bba..0b6e65418c 100644--- a/src/local_deep_research/journal_quality/db.py+++ b/src/local_deep_research/journal_quality/db.py@@ -289,7 +289,8 @@ class JournalQualityDB:warning to diagnose the real problem."""try:- os.chmod(path, 0o644) # bearer:disable python_lang_file_permissions+ # bearer:disable python_lang_file_permissions+ os.chmod(path, 0o644)except OSError:logger.warning(f"Could not chmod 0644 on unusable DB {path} before "@@ -1140,9 +1141,8 @@ def build_db(engine.dispose()if tmp_path.exists():try:- os.chmod(- tmp_path, 0o644- ) # bearer:disable python_lang_file_permissions+ # bearer:disable python_lang_file_permissions+ os.chmod(tmp_path, 0o644)tmp_path.unlink()except OSError:logger.exception(f"Failed to clean up tmp DB at {tmp_path}")@@ -1158,9 +1158,8 @@ def build_db(# (e.g. read-only mount), os.replace will raise and surface# the real problem. Log so the cause is visible.try:- os.chmod(- output_path, 0o644- ) # bearer:disable python_lang_file_permissions+ # bearer:disable python_lang_file_permissions+ os.chmod(output_path, 0o644)except OSError:logger.warning(f"Could not chmod 0644 on existing {output_path} before "@@ -1173,7 +1172,8 @@ def build_db(# read-only file attribute via SetFileAttributesW. The pre-commit# hook check-journal-quality-readonly.py remains the primary# defense against accidental writable opens.- os.chmod(output_path, 0o444) # bearer:disable python_lang_file_permissions+ # bearer:disable python_lang_file_permissions+ os.chmod(output_path, 0o444)if sys.platform == "win32":try:import ctypesdiff --git a/src/local_deep_research/journal_quality/downloader.py b/src/local_deep_research/journal_quality/downloader.pyindex e05854ea03..7698c60b4d 100644--- a/src/local_deep_research/journal_quality/downloader.py+++ b/src/local_deep_research/journal_quality/downloader.py@@ -535,9 +535,8 @@ def download_journal_data(force: bool = False) -> tuple[bool, str]:try:import os as _os- _os.chmod(- legacy_db, 0o644- ) # bearer:disable python_lang_file_permissions+ # bearer:disable python_lang_file_permissions+ _os.chmod(legacy_db, 0o644)legacy_db.unlink()logger.info("Removed legacy journal_reference.db "@@ -558,9 +557,8 @@ def download_journal_data(force: bool = False) -> tuple[bool, str]:if new_db_file.exists():import os as _os- _os.chmod(- new_db_file, 0o644- ) # bearer:disable python_lang_file_permissions+ # bearer:disable python_lang_file_permissions+ _os.chmod(new_db_file, 0o644)new_db_file.unlink()build_db(data_dir=data_dir, output_path=new_db_file)except Exception as exc: