~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
chore: delete no-op _apply_legacy_file_check and check_files param (#4169)
LearningCircuit7d004af58299
diff --git a/src/local_deep_research/library/download_management/filters/resource_filter.py b/src/local_deep_research/library/download_management/filters/resource_filter.pyindex b865c04493..dbc52d02e2 100644--- a/src/local_deep_research/library/download_management/filters/resource_filter.py+++ b/src/local_deep_research/library/download_management/filters/resource_filter.py@@ -29,14 +29,13 @@ class ResourceFilter:logger.info(f"Initialized for user: {username}")def filter_downloadable_resources(- self, resources: List, check_files: bool = True+ self, resources: List) -> List[ResourceFilterResult]:"""Filter resources that are available for download.Args:resources: List of ResearchResource objects to filter- check_files: Whether to also check for existing text files (legacy behavior)Returns:List of ResourceFilterResult objects with retry decisions@@ -44,44 +43,19 @@ class ResourceFilter:logger.info(f"Filtering {len(resources)} resources")# Use retry manager to filter based on failure history- results = self.retry_manager.filter_resources(resources)+ return self.retry_manager.filter_resources(resources)- # Optional legacy file existence check- if check_files:- results = self._apply_legacy_file_check(results)-- return results-- def _apply_legacy_file_check(- self, results: List[ResourceFilterResult]- ) -> List[ResourceFilterResult]:- """- Apply legacy file existence checking to filter results.-- Args:- results: Existing filter results to modify-- Returns:- Updated filter results with file existence check- """- # This would get the download service instance to check for existing files- # For now, we'll skip this as the retry manager handles the main logic- return results-- def get_filter_summary(- self, resources: List, check_files: bool = True- ) -> FilterSummary:+ def get_filter_summary(self, resources: List) -> FilterSummary:"""Get a summary of filtering results.Args:resources: List of resources that were filtered- check_files: Whether file existence checking was appliedReturns:FilterSummary object with detailed counts"""- results = self.filter_downloadable_resources(resources, check_files)+ results = self.filter_downloadable_resources(resources)return self.retry_manager.get_filter_summary(results)def get_skipped_resources_info(self, resources: List) -> dict:diff --git a/tests/library/download_management/test_resource_filter_deep_coverage.py b/tests/library/download_management/test_resource_filter_deep_coverage.pyindex e34f7fe4d1..783ff2ec6a 100644--- a/tests/library/download_management/test_resource_filter_deep_coverage.py+++ b/tests/library/download_management/test_resource_filter_deep_coverage.py@@ -2,7 +2,7 @@Deep coverage tests for resource_filter.py.Targets uncovered paths:-- filter_downloadable_resources: with check_files=True (legacy path)+- filter_downloadable_resources: delegates to retry_manager- get_filter_summary: delegates to retry_manager- get_skipped_resources_info: categorization of skipped resources- get_retry_statistics: delegates to retry_manager@@ -18,8 +18,8 @@ class TestFilterDownloadableResources:@patch("local_deep_research.library.download_management.filters.resource_filter.RetryManager")- def test_filter_with_check_files_true(self, MockRetryManager):- """Calls _apply_legacy_file_check when check_files=True."""+ def test_filter_returns_retry_manager_results(self, MockRetryManager):+ """filter_downloadable_resources returns retry-manager filter output."""from local_deep_research.library.download_management.filters.resource_filter import (ResourceFilter,)@@ -29,29 +29,11 @@ class TestFilterDownloadableResources:mock_rm.filter_resources.return_value = [mock_result]rf = ResourceFilter("testuser")- results = rf.filter_downloadable_resources([Mock()], check_files=True)+ results = rf.filter_downloadable_resources([Mock()])assert len(results) == 1mock_rm.filter_resources.assert_called_once()- @patch(- "local_deep_research.library.download_management.filters.resource_filter.RetryManager"- )- def test_filter_with_check_files_false(self, MockRetryManager):- """Skips _apply_legacy_file_check when check_files=False."""- from local_deep_research.library.download_management.filters.resource_filter import (- ResourceFilter,- )-- mock_rm = MockRetryManager.return_value- mock_result = Mock(can_retry=True, resource_id=1)- mock_rm.filter_resources.return_value = [mock_result]-- rf = ResourceFilter("testuser")- results = rf.filter_downloadable_resources([Mock()], check_files=False)-- assert len(results) == 1-class TestGetFilterSummary:"""Cover get_filter_summary method."""