~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
ci: annotate public corpus metadata and gzip checks (#7897)
LearningCircuite5d001c50a40
diff --git a/.github/workflows/bearer.yml b/.github/workflows/bearer.ymlindex c72d62ed8b..dfac1ac294 100644--- a/.github/workflows/bearer.yml+++ b/.github/workflows/bearer.yml@@ -7,6 +7,10 @@ on:- "src/local_deep_research/settings/manager.py"- "src/local_deep_research/web/static/js/services/ui.js"- "src/local_deep_research/web/static/js/services/pdf.js"+ - "src/local_deep_research/web/services/pdf_service.py"+ - "scripts/install_nltk_data.py"+ - "tests/deployment/test_nltk_data_in_image.py"+ - "tests/web/services/test_pdf_resource_size_limits.py"- "tests/settings/test_settings_exception_privacy.py"- "bearer.yml"- ".github/workflows/bearer.yml"diff --git a/.github/workflows/devskim.yml b/.github/workflows/devskim.ymlindex d26e793e8f..4d39d828be 100644--- a/.github/workflows/devskim.yml+++ b/.github/workflows/devskim.yml@@ -5,6 +5,8 @@ on:paths:- ".github/workflows/devskim.yml"- ".github/workflows/prerelease-docker.yml"+ - "scripts/install_nltk_data.py"+ - "tests/deployment/test_nltk_data_in_image.py"workflow_dispatch:workflow_call: # Called by release-gate.ymlschedule:diff --git a/scripts/install_nltk_data.py b/scripts/install_nltk_data.pyindex ad86c6ee09..fc15d703c6 100644--- a/scripts/install_nltk_data.py+++ b/scripts/install_nltk_data.py@@ -32,7 +32,10 @@ import zipfilefrom pathlib import Path, PurePosixPathfrom typing import Callable, NamedTuple-NLTK_DATA_COMMIT = "550b6625bcef1f2abff2ff770a5a0d272c9c6b2a"+# Public revision of the upstream corpus repository.+NLTK_DATA_COMMIT = (+ "550b6625bcef1f2abff2ff770a5a0d272c9c6b2a" # DevSkim: ignore DS173237+)URL_TEMPLATE = ("https://raw.githubusercontent.com/nltk/nltk_data/""{commit}/packages/{subdir}/{name}.zip"@@ -54,13 +57,13 @@ PACKAGES = ("tokenizers","punkt_tab",4_319_076,- "e57f64187974277726a3417ca6f181ec5403676c717672eef6a748a7b20e0106",+ "e57f64187974277726a3417ca6f181ec5403676c717672eef6a748a7b20e0106", # DevSkim: ignore DS173237),Package("taggers","averaged_perceptron_tagger_eng",1_539_115,- "6025f530624335c67d6547d44757b357b4e79bae030a0383e9887a92c1718f0b",+ "6025f530624335c67d6547d44757b357b4e79bae030a0383e9887a92c1718f0b", # DevSkim: ignore DS173237),)@@ -103,6 +106,7 @@ def verify(package: Package, archive: bytes) -> None:def _make_readable(path: Path, *, directory: bool) -> None:# World-readable by design: the image's unprivileged service account# must read this data. Nothing but the owner (root) can write it.+ # bearer:disable python_lang_file_permissionsos.chmod(path, 0o755 if directory else 0o644) # noqa: S103 read-only data for every userdiff --git a/src/local_deep_research/web/services/pdf_service.py b/src/local_deep_research/web/services/pdf_service.pyindex 47917b290f..2812746c7f 100644--- a/src/local_deep_research/web/services/pdf_service.py+++ b/src/local_deep_research/web/services/pdf_service.py@@ -623,6 +623,8 @@ def _gunzip_capped(data: bytes, limit: int, cost: _FetchCost) -> bytes:member_crc = 0member_size = 0for chunk in out[first:]:+ # Validate the RFC 1952 trailer checksum for each GZIP member.+ # bearer:disable python_lang_weak_hash_crc32member_crc = zlib.crc32(chunk, member_crc)member_size += len(chunk)if crc != member_crc: