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.

optimizations

LearningCircuitb13da2b37d8a
diff --git a/src/local_deep_research/citation_handler.py b/src/local_deep_research/citation_handler.py
index 49f64ed133..21f930ae8d 100644
--- a/src/local_deep_research/citation_handler.py
+++ b/src/local_deep_research/citation_handler.py
@@ -61,7 +61,7 @@ Question: {query}
Sources:
{formatted_sources}
-Provide a detailed analysis with citations. Do not create the bibliography, it will be provided automatically. Never make up sources. Never write or create urls. Example format: "According to the research [1], ..."
+Provide a detailed analysis with citations. Do not create the bibliography, it will be provided automatically. Never make up sources. Never write or create urls. Only write text relevant to the question. Example format: "According to the research [1], ..."
"""
response = self.llm.invoke(prompt)
diff --git a/src/local_deep_research/defaults/search_engines.toml b/src/local_deep_research/defaults/search_engines.toml
index 4c298519d4..2e5b87ee61 100644
--- a/src/local_deep_research/defaults/search_engines.toml
+++ b/src/local_deep_research/defaults/search_engines.toml
@@ -7,7 +7,7 @@ class_name = "WikipediaSearchEngine"
requires_api_key = false
reliability = 0.95
strengths = [
- "factual information", "general knowledge", "definitions",
+ "factual information", "general knowledge", "definitions",
"historical facts", "biographies", "overview information"
]
weaknesses = ["recent events", "specialized academic topics", "product comparisons"]
@@ -22,7 +22,7 @@ class_name = "ArXivSearchEngine"
requires_api_key = false
reliability = 0.9
strengths = [
- "scientific papers", "academic research", "physics", "computer science",
+ "scientific papers", "academic research", "physics", "computer science",
"mathematics", "statistics", "machine learning", "preprints"
]
weaknesses = ["non-academic topics", "consumer products", "news", "general information"]
@@ -39,11 +39,11 @@ requires_api_key = false
api_key_env = "NCBI_API_KEY"
reliability = 0.98
strengths = [
- "biomedical literature", "medical research", "clinical studies",
+ "biomedical literature", "medical research", "clinical studies",
"life sciences", "health information", "scientific papers"
]
weaknesses = [
- "non-medical topics", "very recent papers may be missing",
+ "non-medical topics", "very recent papers may be missing",
"limited to published research"
]
requires_llm = true
@@ -62,7 +62,7 @@ class_name = "GitHubSearchEngine"
requires_api_key = false
reliability = 0.99
strengths = [
- "code repositories", "software documentation", "open source projects",
+ "code repositories", "software documentation", "open source projects",
"programming issues", "developer information", "technical documentation"
]
weaknesses = ["non-technical content", "content outside GitHub", "rate limits without API key"]
@@ -81,7 +81,7 @@ requires_api_key = true
api_key_env = "SERP_API_KEY"
reliability = 0.6
strengths = [
- "comprehensive web search", "product information", "reviews",
+ "comprehensive web search", "product information", "reviews",
"recent content", "news", "broad coverage"
]
weaknesses = ["requires API key with usage limits", "not specialized for academic content"]
@@ -102,11 +102,11 @@ requires_api_key = true
api_key_env = "SEARXNG_INSTANCE"
reliability = 0.8
strengths = [
- "privacy-focused", "metasearch engine", "self-hosted",
+ "privacy-focused", "metasearch engine", "self-hosted",
"no tracking", "configurable", "multiple engines in one"
]
weaknesses = [
- "requires self-hosting", "depends on other search engines",
+ "requires self-hosting", "depends on other search engines",
"may be rate limited by underlying engines"
]
supports_full_search = true
@@ -118,7 +118,7 @@ max_results = 15
categories = ["general"]
language = "en"
safe_search = 1
-delay_between_requests = 2.0
+delay_between_requests = 0.0
include_full_content = true
[google_pse]
@@ -128,11 +128,11 @@ requires_api_key = true
api_key_env = "GOOGLE_PSE_API_KEY"
reliability = 0.9
strengths = [
- "custom search scope", "high-quality results", "domain-specific search",
+ "custom search scope", "high-quality results", "domain-specific search",
"configurable search experience", "control over search index"
]
weaknesses = [
- "requires API key with usage limits",
+ "requires API key with usage limits",
"limited to 10,000 queries/day on free tier",
"requires search engine configuration in Google Control Panel"
]
@@ -152,7 +152,7 @@ requires_api_key = true
api_key_env = "BRAVE_API_KEY"
reliability = 0.7
strengths = [
- "privacy-focused web search", "product information", "reviews",
+ "privacy-focused web search", "product information", "reviews",
"recent content", "news", "broad coverage"
]
weaknesses = ["requires API key with usage limits", "smaller index than Google"]
@@ -172,11 +172,11 @@ class_name = "WaybackSearchEngine"
requires_api_key = false
reliability = 0.5
strengths = [
- "historical web content", "archived websites", "content verification",
+ "historical web content", "archived websites", "content verification",
"deleted or changed web pages", "website evolution tracking"
]
weaknesses = [
- "limited to previously archived content", "may miss recent changes",
+ "limited to previously archived content", "may miss recent changes",
"archiving quality varies"
]
supports_full_search = true
@@ -193,7 +193,7 @@ class_name = "MetaSearchEngine"
requires_api_key = false
reliability = 0.85
strengths = [
- "intelligent engine selection", "adaptable to query type",
+ "intelligent engine selection", "adaptable to query type",
"fallback capabilities"
]
weaknesses = ["slightly slower due to LLM analysis"]
@@ -219,10 +219,10 @@ requires_llm = true
#api_key_env = "S2_API_KEY"
#reliability = 0.87
#strengths = [
-# "comprehensive scientific literature",
-# "extensive citation network",
-# "AI-generated summaries (TLDRs)",
-# "academic paper metadata",
+# "comprehensive scientific literature",
+# "extensive citation network",
+# "AI-generated summaries (TLDRs)",
+# "academic paper metadata",
# "cross-disciplinary coverage",
# "200M+ papers across all fields",
# "usable without API key"
@@ -263,14 +263,14 @@ DEFAULT_SEARCH_ENGINE = "wikipedia"
# requires_api_key = false
# reliability = 0.4
# strengths = [
-# "web search", "product information", "reviews", "recent information",
+# "web search", "product information", "reviews", "recent information",
# "news", "general queries", "broad coverage"
# ]
# weaknesses = ["inconsistent due to rate limits", "not specialized for academic content"]
# supports_full_search = true
# full_search_module = "local_deep_research.web_search_engines.engines.full_search"
# full_search_class = "FullSearchResults"
-#
+#
# [duckduckgo.default_params]
# region = "us"
# safe_search = true
@@ -282,10 +282,10 @@ DEFAULT_SEARCH_ENGINE = "wikipedia"
# api_key_env = "GUARDIAN_API_KEY"
# reliability = 0.5
# strengths = [
-# "news articles", "current events", "opinion pieces", "journalism",
+# "news articles", "current events", "opinion pieces", "journalism",
# "UK and global news", "political analysis"
# ]
# weaknesses = ["primarily focused on news", "limited historical content pre-1999"]
-#
+#
# [guardian.default_params]
# order_by = "relevance"