Skip to content

~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.

fix(relevance-filter): raise wall timeout from 120s to 300s (#3634)

LearningCircuitece32a863c4f
diff --git a/src/local_deep_research/web_search_engines/relevance_filter.py b/src/local_deep_research/web_search_engines/relevance_filter.py
index 05deb995e1..1656511c41 100644
--- a/src/local_deep_research/web_search_engines/relevance_filter.py
+++ b/src/local_deep_research/web_search_engines/relevance_filter.py
@@ -57,14 +57,17 @@ _INT_RE = re.compile(r"(?<![\w.])\d+\b")
# Wall-clock timeout passed to ``as_completed`` when batches run in
# parallel. Note: this bounds the time from iteration start until all
# parallel batches complete, not per-batch. A single batch (≤ 10
-# previews on a 9B-class local model) typically completes in 5-15s;
-# 120s is generous enough for slow-but-progressing work to finish while
+# previews on a 9B-class local model) typically completes in 5-15s.
+# When Ollama serializes requests (OLLAMA_NUM_PARALLEL=1, the default)
+# 10 parallel submissions effectively run sequentially server-side, so
+# 10 × ~15s already brushes against the old 120s bound. 300s leaves
+# room for slow-but-progressing work on serialized backends while still
# flagging genuine hangs. The sequential (workers==1) path does not
# apply this — only the parallel branch uses ``as_completed``.
# Without a bound here a stuck Ollama socket would block the pipeline
# indefinitely, because langchain-ollama's httpx client has no default
# socket timeout.
-_FILTER_WALL_TIMEOUT_S = 120.0
+_FILTER_WALL_TIMEOUT_S = 300.0
# Per-preview snippet character cap. The snippet field often carries the