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.

Merge branch 'main' of https://github.com/HashedViking/local-deep-research into searxgn

hashedviking9f021fac0d72
diff --cc config.py
index b779487409,2c043437b0..f9f271f0e3
--- a/config.py
+++ b/config.py
@@@ -41,21 -53,32 +53,32 @@@ from typing import Dict, List, Any, Opt
# Load environment variables
load_dotenv()
# Choose search tool: "serp" or "duckduckgo" (serp requires API key)
-search_tool = "auto" # Change this variable to switch between search tools; for only local search "local-all"
+search_tool = "searxng" # Change this variable to switch between search tools; for only local search "local-all"
+ KNOWLEDGE_ACCUMULATION = KnowledgeAccumulationApproach.ITERATION # None doesnt work with detailed report. It basically means the questions are seperate on the topic.
+ KNOWLEDGE_ACCUMULATION_CONTEXT_LIMIT = 2000000
# LLM Configuration
+ OPENAIENDPOINT=False # True + URL + Model Name
+ OPENROUTER_BASE_URL= "https://openrouter.ai/api/v1"
+
DEFAULT_MODEL = "mistral" # try to use the largest model that fits into your GPU memory
DEFAULT_TEMPERATURE = 0.7
- MAX_TOKENS = 15000
+ MAX_TOKENS = 30000
+
+ # VLLM Configuration
+ VLLM_MAX_NEW_TOKENS = 128
+ VLLM_TOP_K = 10
+ VLLM_TOP_P = 0.95
+ VLLM_TEMPERATURE = 0.8
# Search System Settings
- SEARCH_ITERATIONS = 3
- QUESTIONS_PER_ITERATION = 3
+ SEARCH_ITERATIONS = 2
+ QUESTIONS_PER_ITERATION = 2
# Report settings
- SEARCHES_PER_SECTION = 5
- CONTEXT_CUT_OFF = 10000
+ SEARCHES_PER_SECTION = 2
+ #CONTEXT_CUT_OFF = 10000
# citation handler
ENABLE_FACT_CHECKING = False # comes with pros and cons. Maybe works better with larger LLMs?
diff --cc web_search_engines/search_engines_config.py
index aee7ea9fcc,ac6a176165..d240650e4c
--- a/web_search_engines/search_engines_config.py
+++ b/web_search_engines/search_engines_config.py
@@@ -34,29 -34,44 +34,67 @@@ SEARCH_ENGINES =
}
},
+ # medRxiv search engine
+ #"medrxiv": {
+ # "module_path": "web_search_engines.engines.search_engine_medrxiv",
+ # "class_name": "MedRxivSearchEngine",
+ # "requires_api_key": False,
+ # "reliability": 0.85,
+ # "strengths": ["medical preprints", "health research", "covid-19 research",
+ # "clinical studies", "medical sciences", "preliminary results"],
+ # "weaknesses": ["not peer-reviewed", "preliminary findings", "limited to medical research"],
+ # "default_params": {
+ # "sort_by": "relevance_score",
+ # "sort_order": "desc",
+ # "include_full_text": False,
+ # "optimize_queries": True # Use LLM to optimize natural language queries
+ # },
+ # "requires_llm": True # Needs LLM for query optimization
+ #},
+ # PubMed search engine
+ "pubmed": {
+ "module_path": "web_search_engines.engines.search_engine_pubmed",
+ "class_name": "PubMedSearchEngine",
+ "requires_api_key": False, # Works without API key but with rate limits
+ "api_key_env": "NCBI_API_KEY", # Optional for higher rate limits
+ "reliability": 0.95,
+ "strengths": ["biomedical literature", "medical research", "clinical studies",
+ "life sciences", "health information", "scientific papers"],
+ "weaknesses": ["non-medical topics", "very recent papers may be missing",
+ "limited to published research"],
+ "default_params": {
+ "max_results": 20,
+ "get_abstracts": True,
+ "get_full_text": False, # Default to abstracts only, not full text
+ "full_text_limit": 3, # Limit full text retrieval to top 3 articles when enabled
+ "days_limit": None, # No default time limit
+ "optimize_queries": True # Use LLM to optimize natural language queries
+ },
+ "requires_llm": True # Needs LLM for query optimization
+ },
+ # SearXNG search engine (using "API key" for instance URL)
+ "searxng": {
+ "module_path": "web_search_engines.engines.search_engine_searxng",
+ "class_name": "SearXNGSearchEngine",
+ "requires_api_key": True, # Changed to True to indicate requirement
+ "api_key_env": "SEARXNG_INSTANCE", # Environment variable contains instance URL
+ "reliability": 0.7,
+ "strengths": ["privacy-focused", "metasearch capability", "no tracking",
+ "combines multiple engines", "ethical usage", "respects rate limits"],
+ "weaknesses": ["requires self-hosted instance", "disabled without configuration"],
+ "default_params": {
+ "max_results": 15,
+ "instance_url": None, # Default to None, will use env var or be disabled
+ "categories": ["general"],
+ "engines": None,
+ "language": "en",
+ "safe_search": 1,
+ "time_range": None,
+ "delay_between_requests": 2.0, # Respectful rate limiting
+ "include_full_content": True
+ },
+ "supports_full_search": True
+ },
# GitHub search engine
"github": {
"module_path": "web_search_engines.engines.search_engine_github",