~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
Update config.py
LearningCircuit4d806420e4e3
diff --git a/config.py b/config.pyindex 1d35d1d597..29a0c95553 100644--- a/config.py+++ b/config.py@@ -1,3 +1,39 @@+"""+Local Deep Research Configuration Guide++This configuration file controls the behavior of the research system.++MAIN SETTINGS:+- search_tool (str): Choose which search engine to use+ - "auto": Intelligent selection based on query content (recommended)+ - "local_all": Search only local document collections+ - "wikipedia": General knowledge and facts+ - "arxiv": Scientific papers and research+ - "duckduckgo": General web search (no API key needed)+ - "serp": Google search via SerpAPI (requires API key)+ - "guardian": News articles (requires API key)+ - Any collection name from your local_collections.py++- DEFAULT_MODEL (str): LLM to use for analysis+ - "mistral": Default local model via Ollama+ - "deepseek-r1:14b": Alternative larger model+ - "claude-3-5-sonnet-latest": Claude model (requires API key)+ - "gpt-4o": OpenAI model (requires API key)++RESEARCH SETTINGS:+- SEARCH_ITERATIONS (int): Number of research cycles+- QUESTIONS_PER_ITERATION (int): Questions per cycle+- SEARCHES_PER_SECTION (int): Searches per report section+- MAX_SEARCH_RESULTS (int): Results per search query+- MAX_FILTERED_RESULTS (int): Results after relevance filtering++OPTIONAL FEATURES:+- SEARCH_SNIPPETS_ONLY (bool): Use only snippet previews (faster)+- SKIP_RELEVANCE_FILTER (bool): Skip LLM filtering of results+- ENABLE_FACT_CHECKING (bool): Additional validation step++For full documentation, see the README.md+"""from langchain_anthropic import ChatAnthropicfrom langchain_openai import ChatOpenAI@@ -10,8 +46,7 @@ import os# Load environment variablesload_dotenv()# Choose search tool: "serp" or "duckduckgo" (serp requires API key)-#search_tool = "auto" # Change this variable to switch between search tools-search_tool = "auto"+search_tool = "auto" # Change this variable to switch between search tools; for only local search "local-all"# LLM Configuration@@ -91,4 +126,4 @@ def get_search():if engine is None:print(f"Failed to create search engine with tool: {search_tool}")- return engine\ No newline at end of file+ return engine