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: use select() instead of raw Subquery in notin_() call (#3076)

LearningCircuit79c58c73b84f
diff --git a/src/local_deep_research/research_library/search/services/research_history_indexer.py b/src/local_deep_research/research_library/search/services/research_history_indexer.py
index cfb75a35b4..d01426a325 100644
--- a/src/local_deep_research/research_library/search/services/research_history_indexer.py
+++ b/src/local_deep_research/research_library/search/services/research_history_indexer.py
@@ -211,7 +211,9 @@ class ResearchHistoryIndexer:
)
if not force:
query = query.filter(
- ResearchHistory.id.notin_(already_converted_subquery)
+ ResearchHistory.id.notin_(
+ already_converted_subquery.select()
+ )
)
research_entries = query.all()