~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
Eliminate use of config files when configuring search engines.
Daniel Pettifedc1c1a37f4
diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.jsonindex 14e272598e..2bfc4e8a05 100644--- a/src/local_deep_research/defaults/default_settings.json+++ b/src/local_deep_research/defaults/default_settings.json@@ -110,8 +110,592 @@"value": true,"visible": true},- "arxiv.class_name": {+ "llm.llamacpp_f16_kv": {+ "category": null,+ "description": "Setting for llm.llamacpp_f16_kv",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Llamacpp F16 Kv",+ "options": null,+ "step": null,+ "type": "LLM",+ "ui_element": "checkbox",+ "value": true,+ "visible": true+ },+ "llm.llamacpp_model_path": {+ "category": null,+ "description": "Setting for llm.llamacpp_model_path",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Llamacpp Model Path",+ "options": null,+ "step": null,+ "type": "LLM",+ "ui_element": "text",+ "value": "",+ "visible": true+ },+ "llm.llamacpp_n_batch": {+ "category": null,+ "description": "Setting for llm.llamacpp_n_batch",+ "editable": true,+ "max_value": null,+ "min_value": 1,+ "name": "Llamacpp N Batch",+ "options": null,+ "step": null,+ "type": "LLM",+ "ui_element": "number",+ "value": 512,+ "visible": true+ },+ "llm.llamacpp_n_gpu_layers": {+ "category": null,+ "description": "Setting for llm.llamacpp_n_gpu_layers",+ "editable": true,+ "max_value": null,+ "min_value": 0,+ "name": "Llamacpp N Gpu Layers",+ "options": null,+ "step": null,+ "type": "LLM",+ "ui_element": "number",+ "value": 1,+ "visible": true+ },+ "llm.lmstudio_url": {"category": null,+ "description": "Setting for llm.lmstudio_url",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Lmstudio Url",+ "options": null,+ "step": null,+ "type": "LLM",+ "ui_element": "text",+ "value": "http://localhost:1234",+ "visible": true+ },+ "llm.max_tokens": {+ "category": "llm_parameters",+ "description": "Maximum number of tokens in model responses",+ "editable": true,+ "max_value": 4096.0,+ "min_value": 100.0,+ "name": "Max Tokens",+ "options": null,+ "step": null,+ "type": "LLM",+ "ui_element": "number",+ "value": 30000,+ "visible": true+ },+ "llm.model": {+ "category": "llm_general",+ "description": "Language model to use for research and analysis",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "LLM Model",+ "options": [+ {+ "label": "GPT-4o (OpenAI)",+ "value": "gpt-4o"+ },+ {+ "label": "GPT-3.5 Turbo (OpenAI)",+ "value": "gpt-3.5-turbo"+ },+ {+ "label": "Claude 3.5 Sonnet (Anthropic)",+ "value": "claude-3-5-sonnet-latest"+ },+ {+ "label": "Claude 3 Opus (Anthropic)",+ "value": "claude-3-opus-20240229"+ },+ {+ "label": "Llama 3 (Meta)",+ "value": "llama3"+ },+ {+ "label": "Mistral (Mistral AI)",+ "value": "mistral"+ },+ {+ "label": "Mixtral (Mistral AI)",+ "value": "mixtral"+ }+ ],+ "step": null,+ "type": "LLM",+ "ui_element": "select",+ "value": "gemma3:12b",+ "visible": true+ },+ "llm.openai_endpoint_url": {+ "category": null,+ "description": "Setting for llm.openai_endpoint_url",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Openai Endpoint Url",+ "options": null,+ "step": null,+ "type": "LLM",+ "ui_element": "text",+ "value": "https://openrouter.ai/api/v1",+ "visible": true+ },+ "llm.provider": {+ "category": "llm_general",+ "description": "Service provider for the language model",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "LLM Provider",+ "options": [+ {+ "label": "OpenAI API",+ "value": "openai"+ },+ {+ "label": "Anthropic API",+ "value": "anthropic"+ },+ {+ "label": "Ollama (Local)",+ "value": "ollama"+ },+ {+ "label": "LM Studio (Local)",+ "value": "lmstudio"+ },+ {+ "label": "vLLM (Local)",+ "value": "vllm"+ },+ {+ "label": "Custom OpenAI-compatible API",+ "value": "openai_endpoint"+ }+ ],+ "step": null,+ "type": "LLM",+ "ui_element": "select",+ "value": "OLLAMA",+ "visible": true+ },+ "llm.temperature": {+ "category": "llm_parameters",+ "description": "Controls randomness in model outputs (0.0 - 1.0)",+ "editable": true,+ "max_value": 1.0,+ "min_value": 0.0,+ "name": "Temperature",+ "options": null,+ "step": 0.05,+ "type": "LLM",+ "ui_element": "slider",+ "value": 0.7,+ "visible": true+ },+ "report.detailed_citations": {+ "category": "report_parameters",+ "description": "Include detailed citations in reports",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Detailed Citations",+ "options": null,+ "step": null,+ "type": "REPORT",+ "ui_element": "checkbox",+ "value": true,+ "visible": true+ },+ "report.enable_fact_checking": {+ "category": "report_parameters",+ "description": "Enable fact checking for report contents",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Enable Fact Checking",+ "options": null,+ "step": null,+ "type": "REPORT",+ "ui_element": "checkbox",+ "value": true,+ "visible": true+ },+ "report.searches_per_section": {+ "category": "report_parameters",+ "description": "Number of searches to run per report section",+ "editable": true,+ "max_value": 5.0,+ "min_value": 1.0,+ "name": "Searches Per Section",+ "options": null,+ "step": null,+ "type": "REPORT",+ "ui_element": "number",+ "value": 2,+ "visible": true+ },+ "search.iterations": {+ "category": null,+ "description": "Setting for search.iterations",+ "editable": true,+ "max_value": null,+ "min_value": 1,+ "name": "Iterations",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "number",+ "value": 2,+ "visible": true+ },+ "search.max_filtered_results": {+ "category": null,+ "description": "Setting for search.max_filtered_results",+ "editable": true,+ "max_value": null,+ "min_value": 1,+ "name": "Max Filtered Results",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "number",+ "value": 5,+ "visible": true+ },+ "search.max_results": {+ "category": "search_parameters",+ "description": "Maximum number of search results to retrieve",+ "editable": true,+ "max_value": 50.0,+ "min_value": 1,+ "name": "Max Results",+ "options": null,+ "step": 1,+ "type": "SEARCH",+ "ui_element": "number",+ "value": 50,+ "visible": true+ },+ "search.quality_check_urls": {+ "category": null,+ "description": "Setting for search.quality_check_urls",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Quality Check Urls",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "checkbox",+ "value": true,+ "visible": true+ },+ "search.questions_per_iteration": {+ "category": "search_parameters",+ "description": "Number of questions to generate per research cycle",+ "editable": true,+ "max_value": 10.0,+ "min_value": 1.0,+ "name": "Questions Per Iteration",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "number",+ "value": 2,+ "visible": true+ },+ "search.region": {+ "category": "search_parameters",+ "description": "Geographic region for search results",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Search Region",+ "options": [+ {+ "label": "United States",+ "value": "us"+ },+ {+ "label": "United Kingdom",+ "value": "uk"+ },+ {+ "label": "France",+ "value": "fr"+ },+ {+ "label": "Germany",+ "value": "de"+ },+ {+ "label": "Japan",+ "value": "jp"+ },+ {+ "label": "No Region (Worldwide)",+ "value": "wt-wt"+ }+ ],+ "step": null,+ "type": "SEARCH",+ "ui_element": "select",+ "value": "us",+ "visible": true+ },+ "search.research_iterations": {+ "category": "search_parameters",+ "description": "Number of research cycles to perform",+ "editable": true,+ "max_value": 5.0,+ "min_value": 1.0,+ "name": "Research Iterations",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "number",+ "value": 2,+ "visible": true+ },+ "search.safe_search": {+ "category": "search_parameters",+ "description": "Enable safe search filtering",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Safe Search",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "checkbox",+ "value": true,+ "visible": true+ },+ "search.search_language": {+ "category": "search_parameters",+ "description": "Language for search results",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Search Language",+ "options": [+ {+ "label": "English",+ "value": "English"+ },+ {+ "label": "French",+ "value": "French"+ },+ {+ "label": "German",+ "value": "German"+ },+ {+ "label": "Spanish",+ "value": "Spanish"+ },+ {+ "label": "Italian",+ "value": "Italian"+ },+ {+ "label": "Japanese",+ "value": "Japanese"+ },+ {+ "label": "Chinese",+ "value": "Chinese"+ }+ ],+ "step": null,+ "type": "SEARCH",+ "ui_element": "select",+ "value": "English",+ "visible": true+ },+ "search.searches_per_section": {+ "category": "search_parameters",+ "description": "Number of searches to run per report section",+ "editable": true,+ "max_value": 5.0,+ "min_value": 1.0,+ "name": "Searches Per Section",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "number",+ "value": 2,+ "visible": true+ },+ "search.skip_relevance_filter": {+ "category": "search_parameters",+ "description": "Skip filtering search results for relevance",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Skip Relevance Filter",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "checkbox",+ "value": false,+ "visible": true+ },+ "search.snippets_only": {+ "category": "search_parameters",+ "description": "Only retrieve snippets instead of full search results",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Snippets Only",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "checkbox",+ "value": true,+ "visible": true+ },+ "search.time_period": {+ "category": "search_parameters",+ "description": "Time period for search results",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Time Period",+ "options": [+ {+ "label": "Past 24 hours",+ "value": "d"+ },+ {+ "label": "Past week",+ "value": "w"+ },+ {+ "label": "Past month",+ "value": "m"+ },+ {+ "label": "Past year",+ "value": "y"+ },+ {+ "label": "All time",+ "value": "all"+ }+ ],+ "step": null,+ "type": "SEARCH",+ "ui_element": "select",+ "value": "y",+ "visible": true+ },+ "search.tool": {+ "category": "search_general",+ "description": "Web search engine to use for research",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Search Engine",+ "options": [+ {+ "label": "Auto (Default)",+ "value": "auto"+ },+ {+ "label": "Arxiv",+ "value": "arxiv"+ },+ {+ "label": "Wikipedia",+ "value": "wikipedia"+ },+ {+ "label": "Pubmed",+ "value": "pubmed"+ },+ {+ "label": "Github",+ "value": "github"+ },+ {+ "label": "SerpAPI (Google)",+ "value": "serpapi"+ },+ {+ "label": "SearXNG (Self-hosted)",+ "value": "searxng"+ },+ {+ "label": "Google Programmable Search Engine",+ "value": "google_pse"+ },+ {+ "label": "DuckDuckGo",+ "value": "duckduckgo"+ },+ {+ "label": "Brave",+ "value": "brave"+ },+ {+ "label": "Wayback",+ "value": "wayback"+ },+ {+ "label": "Local All",+ "value": "local_all"+ }+ ],+ "step": null,+ "type": "SEARCH",+ "ui_element": "select",+ "value": "auto",+ "visible": true+ },+ "search.engine.web.arxiv.display_name": {+ "category": "arxiv",+ "description": "Display name to use in the U.I. for this search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Display Name",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "ArXiv",+ "visible": false+ },+ "search.engine.web.arxiv.description": {+ "category": "arxiv",+ "description": "Human-readable description of the search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Description",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Search papers uploaded to ArXiv.",+ "visible": false+ },+ "search.engine.web.arxiv.class_name": {+ "category": "arxiv","description": "Setting for arxiv.class_name","editable": true,"max_value": null,@@ -124,8 +708,8 @@"value": "ArXivSearchEngine","visible": true},- "arxiv.default_params.max_results": {- "category": null,+ "search.engine.web.arxiv.default_params.max_results": {+ "category": "arxiv","description": "Setting for arxiv.default_params.max_results","editable": true,"max_value": null,@@ -138,8 +722,8 @@"value": 20,"visible": true},- "arxiv.default_params.sort_by": {- "category": null,+ "search.engine.web.arxiv.default_params.sort_by": {+ "category": "arxiv","description": "Setting for arxiv.default_params.sort_by","editable": true,"max_value": null,@@ -165,8 +749,8 @@"value": "relevance","visible": true},- "arxiv.default_params.sort_order": {- "category": null,+ "search.engine.web.arxiv.default_params.sort_order": {+ "category": "arxiv","description": "Setting for arxiv.default_params.sort_order","editable": true,"max_value": null,@@ -188,8 +772,8 @@"value": "descending","visible": true},- "arxiv.module_path": {- "category": null,+ "search.engine.web.arxiv.module_path": {+ "category": "arxiv","description": "Setting for arxiv.module_path","editable": true,"max_value": null,@@ -202,8 +786,8 @@"value": ".engines.search_engine_arxiv","visible": true},- "arxiv.reliability": {- "category": null,+ "search.engine.web.arxiv.reliability": {+ "category": "arxiv","description": "Setting for arxiv.reliability","editable": true,"max_value": 1.0,@@ -216,8 +800,8 @@"value": 0.9,"visible": true},- "arxiv.requires_api_key": {- "category": null,+ "search.engine.web.arxiv.requires_api_key": {+ "category": "arxiv","description": "Setting for arxiv.requires_api_key","editable": true,"max_value": null,@@ -230,8 +814,8 @@"value": false,"visible": true},- "arxiv.strengths": {- "category": null,+ "search.engine.web.arxiv.strengths": {+ "category": "arxiv","description": "Setting for arxiv.strengths","editable": true,"max_value": null,@@ -253,8 +837,8 @@],"visible": true},- "arxiv.weaknesses": {- "category": null,+ "search.engine.web.arxiv.weaknesses": {+ "category": "arxiv","description": "Setting for arxiv.weaknesses","editable": true,"max_value": null,@@ -272,8 +856,36 @@],"visible": true},- "auto.class_name": {- "category": null,+ "search.engine.auto.display_name": {+ "category": "auto",+ "description": "Display name to use in the U.I. for this search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Display Name",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Auto",+ "visible": false+ },+ "search.engine.auto.description": {+ "category": "auto",+ "description": "Human-readable description of the search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Description",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Attempt to choose the best combination of search engines automatically.",+ "visible": false+ },+ "search.engine.auto.class_name": {+ "category": "auto","description": "Setting for auto.class_name","editable": true,"max_value": null,@@ -286,8 +898,8 @@"value": "MetaSearchEngine","visible": true},- "auto.default_params.max_engines_to_try": {- "category": null,+ "search.engine.auto.default_params.max_engines_to_try": {+ "category": "auto","description": "Setting for auto.default_params.max_engines_to_try","editable": true,"max_value": null,@@ -300,8 +912,8 @@"value": 3,"visible": true},- "auto.default_params.use_api_key_services": {- "category": null,+ "search.engine.auto.default_params.use_api_key_services": {+ "category": "auto","description": "Setting for auto.default_params.use_api_key_services","editable": true,"max_value": null,@@ -314,8 +926,8 @@"value": true,"visible": true},- "auto.module_path": {- "category": null,+ "search.engine.auto.module_path": {+ "category": "auto","description": "Setting for auto.module_path","editable": true,"max_value": null,@@ -328,8 +940,8 @@"value": ".engines.meta_search_engine","visible": true},- "auto.reliability": {- "category": null,+ "search.engine.auto.reliability": {+ "category": "auto","description": "Setting for auto.reliability","editable": true,"max_value": 1.0,@@ -342,8 +954,8 @@"value": 0.85,"visible": true},- "auto.requires_api_key": {- "category": null,+ "search.engine.auto.requires_api_key": {+ "category": "auto","description": "Setting for auto.requires_api_key","editable": true,"max_value": null,@@ -356,8 +968,8 @@"value": false,"visible": true},- "auto.requires_llm": {- "category": null,+ "search.engine.auto.requires_llm": {+ "category": "auto","description": "Setting for auto.requires_llm","editable": true,"max_value": null,@@ -370,8 +982,8 @@"value": true,"visible": true},- "auto.strengths": {- "category": null,+ "search.engine.auto.strengths": {+ "category": "auto","description": "Setting for auto.strengths","editable": true,"max_value": null,@@ -388,8 +1000,8 @@],"visible": true},- "auto.weaknesses": {- "category": null,+ "search.engine.auto.weaknesses": {+ "category": "auto","description": "Setting for auto.weaknesses","editable": true,"max_value": null,@@ -404,8 +1016,36 @@],"visible": true},- "brave.api_key_env": {- "category": null,+ "search.engine.web.brave.display_name": {+ "category": "brave",+ "description": "Display name to use in the U.I. for this search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Display Name",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Brave",+ "visible": false+ },+ "search.engine.web.brave.description": {+ "category": "brave",+ "description": "Human-readable description of the search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Description",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Search the web using the Brave search engine.",+ "visible": false+ },+ "search.engine.web.brave.api_key_env": {+ "category": "brave","description": "Setting for brave.api_key_env","editable": true,"max_value": null,@@ -418,8 +1058,8 @@"value": "BRAVE_API_KEY","visible": true},- "brave.class_name": {- "category": null,+ "search.engine.web.brave.class_name": {+ "category": "brave","description": "Setting for brave.class_name","editable": true,"max_value": null,@@ -432,8 +1072,8 @@"value": "BraveSearchEngine","visible": true},- "brave.default_params.region": {- "category": null,+ "search.engine.web.brave.default_params.region": {+ "category": "brave","description": "Setting for brave.default_params.region","editable": true,"max_value": null,@@ -446,8 +1086,8 @@"value": "US","visible": true},- "brave.default_params.safe_search": {- "category": null,+ "search.engine.web.brave.default_params.safe_search": {+ "category": "brave","description": "Setting for brave.default_params.safe_search","editable": true,"max_value": null,@@ -460,8 +1100,8 @@"value": true,"visible": true},- "brave.default_params.search_language": {- "category": null,+ "search.engine.web.brave.default_params.search_language": {+ "category": "brave","description": "Setting for brave.default_params.search_language","editable": true,"max_value": null,@@ -474,8 +1114,8 @@"value": "English","visible": true},- "brave.default_params.time_period": {- "category": null,+ "search.engine.web.brave.default_params.time_period": {+ "category": "brave","description": "Setting for brave.default_params.time_period","editable": true,"max_value": null,@@ -488,8 +1128,8 @@"value": "y","visible": true},- "brave.full_search_class": {- "category": null,+ "search.engine.web.brave.full_search_class": {+ "category": "brave","description": "Setting for brave.full_search_class","editable": true,"max_value": null,@@ -502,8 +1142,8 @@"value": "FullSearchResults","visible": true},- "brave.full_search_module": {- "category": null,+ "search.engine.web.brave.full_search_module": {+ "category": "brave","description": "Setting for brave.full_search_module","editable": true,"max_value": null,@@ -516,8 +1156,8 @@"value": "local_deep_research.web_search_engines.engines.full_search","visible": true},- "brave.module_path": {- "category": null,+ "search.engine.web.brave.module_path": {+ "category": "brave","description": "Setting for brave.module_path","editable": true,"max_value": null,@@ -530,8 +1170,8 @@"value": ".engines.search_engine_brave","visible": true},- "brave.reliability": {- "category": null,+ "search.engine.web.brave.reliability": {+ "category": "brave","description": "Setting for brave.reliability","editable": true,"max_value": 1.0,@@ -544,8 +1184,8 @@"value": 0.7,"visible": true},- "brave.requires_api_key": {- "category": null,+ "search.engine.web.brave.requires_api_key": {+ "category": "brave","description": "Setting for brave.requires_api_key","editable": true,"max_value": null,@@ -558,8 +1198,8 @@"value": true,"visible": true},- "brave.strengths": {- "category": null,+ "search.engine.web.brave.strengths": {+ "category": "brave","description": "Setting for brave.strengths","editable": true,"max_value": null,@@ -579,8 +1219,8 @@],"visible": true},- "brave.supports_full_search": {- "category": null,+ "search.engine.web.brave.supports_full_search": {+ "category": "brave","description": "Setting for brave.supports_full_search","editable": true,"max_value": null,@@ -593,8 +1233,8 @@"value": true,"visible": true},- "brave.weaknesses": {- "category": null,+ "search.engine.web.brave.weaknesses": {+ "category": "brave","description": "Setting for brave.weaknesses","editable": true,"max_value": null,@@ -658,16 +1298,44 @@"editable": true,"max_value": null,"min_value": null,- "name": "Output Dir",+ "name": "Output Dir",+ "options": null,+ "step": null,+ "type": "APP",+ "ui_element": "text",+ "value": "research_outputs",+ "visible": true+ },+ "search.engine.web.github.display_name": {+ "category": "github",+ "description": "Display name to use in the U.I. for this search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Display Name",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Github",+ "visible": false+ },+ "search.engine.web.github.description": {+ "category": "github",+ "description": "Human-readable description of the search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Description","options": null,"step": null,- "type": "APP",+ "type": "SEARCH","ui_element": "text",- "value": "research_outputs",- "visible": true+ "value": "Search projects on Github.",+ "visible": false},- "github.class_name": {- "category": null,+ "search.engine.web.github.class_name": {+ "category": "github","description": "Setting for github.class_name","editable": true,"max_value": null,@@ -680,8 +1348,8 @@"value": "GitHubSearchEngine","visible": true},- "github.default_params.include_issues": {- "category": null,+ "search.engine.web.github.default_params.include_issues": {+ "category": "github","description": "Setting for github.default_params.include_issues","editable": true,"max_value": null,@@ -694,8 +1362,8 @@"value": false,"visible": true},- "github.default_params.include_readme": {- "category": null,+ "search.engine.web.github.default_params.include_readme": {+ "category": "github","description": "Setting for github.default_params.include_readme","editable": true,"max_value": null,@@ -708,8 +1376,8 @@"value": true,"visible": true},- "github.default_params.max_results": {- "category": null,+ "search.engine.web.github.default_params.max_results": {+ "category": "github","description": "Setting for github.default_params.max_results","editable": true,"max_value": null,@@ -722,8 +1390,8 @@"value": 15,"visible": true},- "github.default_params.search_type": {- "category": null,+ "search.engine.web.github.default_params.search_type": {+ "category": "github","description": "Setting for github.default_params.search_type","editable": true,"max_value": null,@@ -753,8 +1421,8 @@"value": "repositories","visible": true},- "github.module_path": {- "category": null,+ "search.engine.web.github.module_path": {+ "category": "github","description": "Setting for github.module_path","editable": true,"max_value": null,@@ -767,8 +1435,8 @@"value": ".engines.search_engine_github","visible": true},- "github.reliability": {- "category": null,+ "search.engine.web.github.reliability": {+ "category": "github","description": "Setting for github.reliability","editable": true,"max_value": 1.0,@@ -781,8 +1449,8 @@"value": 0.99,"visible": true},- "github.requires_api_key": {- "category": null,+ "search.engine.web.github.requires_api_key": {+ "category": "github","description": "Setting for github.requires_api_key","editable": true,"max_value": null,@@ -795,8 +1463,8 @@"value": false,"visible": true},- "github.strengths": {- "category": null,+ "search.engine.web.github.strengths": {+ "category": "github","description": "Setting for github.strengths","editable": true,"max_value": null,@@ -816,8 +1484,8 @@],"visible": true},- "github.supports_full_search": {- "category": null,+ "search.engine.web.github.supports_full_search": {+ "category": "github","description": "Setting for github.supports_full_search","editable": true,"max_value": null,@@ -830,8 +1498,8 @@"value": true,"visible": true},- "github.weaknesses": {- "category": null,+ "search.engine.web.github.weaknesses": {+ "category": "github","description": "Setting for github.weaknesses","editable": true,"max_value": null,@@ -848,8 +1516,36 @@],"visible": true},- "google_pse.api_key_env": {- "category": null,+ "search.engine.web.google_pse.display_name": {+ "category": "google_pse",+ "description": "Display name to use in the U.I. for this search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Display Name",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Google PSE",+ "visible": false+ },+ "search.engine.web.google_pse.description": {+ "category": "google_pse",+ "description": "Human-readable description of the search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Description",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Search the web using Google's Programmable Search Engine API.",+ "visible": false+ },+ "search.engine.web.google_pse.api_key_env": {+ "category": "google_pse","description": "Setting for google_pse.api_key_env","editable": true,"max_value": null,@@ -862,8 +1558,8 @@"value": "GOOGLE_PSE_API_KEY","visible": true},- "google_pse.class_name": {- "category": null,+ "search.engine.web.google_pse.class_name": {+ "category": "google_pse","description": "Setting for google_pse.class_name","editable": true,"max_value": null,@@ -876,8 +1572,8 @@"value": "GooglePSESearchEngine","visible": true},- "google_pse.default_params.region": {- "category": null,+ "search.engine.web.google_pse.default_params.region": {+ "category": "google_pse","description": "Setting for google_pse.default_params.region","editable": true,"max_value": null,@@ -890,8 +1586,8 @@"value": "us","visible": true},- "google_pse.default_params.safe_search": {- "category": null,+ "search.engine.web.google_pse.default_params.safe_search": {+ "category": "google_pse","description": "Setting for google_pse.default_params.safe_search","editable": true,"max_value": null,@@ -904,8 +1600,8 @@"value": true,"visible": true},- "google_pse.default_params.search_language": {- "category": null,+ "search.engine.web.google_pse.default_params.search_language": {+ "category": "google_pse","description": "Setting for google_pse.default_params.search_language","editable": true,"max_value": null,@@ -918,8 +1614,8 @@"value": "English","visible": true},- "google_pse.full_search_class": {- "category": null,+ "search.engine.web.google_pse.full_search_class": {+ "category": "google_pse","description": "Setting for google_pse.full_search_class","editable": true,"max_value": null,@@ -932,8 +1628,8 @@"value": "FullSearchResults","visible": true},- "google_pse.full_search_module": {- "category": null,+ "search.engine.web.google_pse.full_search_module": {+ "category": "google_pse","description": "Setting for google_pse.full_search_module","editable": true,"max_value": null,@@ -946,8 +1642,8 @@"value": ".engines.full_search","visible": true},- "google_pse.module_path": {- "category": null,+ "search.engine.web.google_pse.module_path": {+ "category": "google_pse","description": "Setting for google_pse.module_path","editable": true,"max_value": null,@@ -960,8 +1656,8 @@"value": ".engines.search_engine_google_pse","visible": true},- "google_pse.reliability": {- "category": null,+ "search.engine.web.google_pse.reliability": {+ "category": "google_pse","description": "Setting for google_pse.reliability","editable": true,"max_value": 1.0,@@ -974,8 +1670,8 @@"value": 0.9,"visible": true},- "google_pse.requires_api_key": {- "category": null,+ "search.engine.web.google_pse.requires_api_key": {+ "category": "google_pse","description": "Setting for google_pse.requires_api_key","editable": true,"max_value": null,@@ -988,8 +1684,8 @@"value": true,"visible": true},- "google_pse.strengths": {- "category": null,+ "search.engine.web.google_pse.strengths": {+ "category": "google_pse","description": "Setting for google_pse.strengths","editable": true,"max_value": null,@@ -1001,241 +1697,75 @@"ui_element": "text","value": ["custom search scope",- "high-quality results",- "domain-specific search",- "configurable search experience",- "control over search index"- ],- "visible": true- },- "google_pse.supports_full_search": {- "category": null,- "description": "Setting for google_pse.supports_full_search",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Supports Full Search",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "checkbox",- "value": true,- "visible": true- },- "google_pse.weaknesses": {- "category": null,- "description": "Setting for google_pse.weaknesses",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Weaknesses",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "text",- "value": [- "requires API key with usage limits",- "limited to 10,000 queries/day on free tier",- "requires search engine configuration in Google Control Panel"- ],- "visible": true- },- "llm.llamacpp_f16_kv": {- "category": null,- "description": "Setting for llm.llamacpp_f16_kv",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Llamacpp F16 Kv",- "options": null,- "step": null,- "type": "LLM",- "ui_element": "checkbox",- "value": true,- "visible": true- },- "llm.llamacpp_model_path": {- "category": null,- "description": "Setting for llm.llamacpp_model_path",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Llamacpp Model Path",- "options": null,- "step": null,- "type": "LLM",- "ui_element": "text",- "value": "",- "visible": true- },- "llm.llamacpp_n_batch": {- "category": null,- "description": "Setting for llm.llamacpp_n_batch",- "editable": true,- "max_value": null,- "min_value": 1,- "name": "Llamacpp N Batch",- "options": null,- "step": null,- "type": "LLM",- "ui_element": "number",- "value": 512,- "visible": true- },- "llm.llamacpp_n_gpu_layers": {- "category": null,- "description": "Setting for llm.llamacpp_n_gpu_layers",- "editable": true,- "max_value": null,- "min_value": 0,- "name": "Llamacpp N Gpu Layers",- "options": null,- "step": null,- "type": "LLM",- "ui_element": "number",- "value": 1,- "visible": true- },- "llm.lmstudio_url": {- "category": null,- "description": "Setting for llm.lmstudio_url",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Lmstudio Url",- "options": null,- "step": null,- "type": "LLM",- "ui_element": "text",- "value": "http://localhost:1234",- "visible": true- },- "llm.max_tokens": {- "category": "llm_parameters",- "description": "Maximum number of tokens in model responses",- "editable": true,- "max_value": 4096.0,- "min_value": 100.0,- "name": "Max Tokens",- "options": null,- "step": null,- "type": "LLM",- "ui_element": "number",- "value": 30000,- "visible": true- },- "llm.model": {- "category": "llm_general",- "description": "Language model to use for research and analysis",- "editable": true,- "max_value": null,- "min_value": null,- "name": "LLM Model",- "options": [- {- "label": "GPT-4o (OpenAI)",- "value": "gpt-4o"- },- {- "label": "GPT-3.5 Turbo (OpenAI)",- "value": "gpt-3.5-turbo"- },- {- "label": "Claude 3.5 Sonnet (Anthropic)",- "value": "claude-3-5-sonnet-latest"- },- {- "label": "Claude 3 Opus (Anthropic)",- "value": "claude-3-opus-20240229"- },- {- "label": "Llama 3 (Meta)",- "value": "llama3"- },- {- "label": "Mistral (Mistral AI)",- "value": "mistral"- },- {- "label": "Mixtral (Mistral AI)",- "value": "mixtral"- }- ],- "step": null,- "type": "LLM",- "ui_element": "select",- "value": "gemma3:12b",- "visible": true- },- "llm.openai_endpoint_url": {- "category": null,- "description": "Setting for llm.openai_endpoint_url",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Openai Endpoint Url",- "options": null,- "step": null,- "type": "LLM",- "ui_element": "text",- "value": "https://openrouter.ai/api/v1",- "visible": true- },- "llm.provider": {- "category": "llm_general",- "description": "Service provider for the language model",- "editable": true,- "max_value": null,- "min_value": null,- "name": "LLM Provider",- "options": [- {- "label": "OpenAI API",- "value": "openai"- },- {- "label": "Anthropic API",- "value": "anthropic"- },- {- "label": "Ollama (Local)",- "value": "ollama"- },- {- "label": "LM Studio (Local)",- "value": "lmstudio"- },- {- "label": "vLLM (Local)",- "value": "vllm"- },- {- "label": "Custom OpenAI-compatible API",- "value": "openai_endpoint"- }+ "high-quality results",+ "domain-specific search",+ "configurable search experience",+ "control over search index"],+ "visible": true+ },+ "search.engine.web.google_pse.supports_full_search": {+ "category": "google_pse",+ "description": "Setting for google_pse.supports_full_search",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Supports Full Search",+ "options": null,"step": null,- "type": "LLM",- "ui_element": "select",- "value": "OLLAMA",+ "type": "SEARCH",+ "ui_element": "checkbox",+ "value": true,"visible": true},- "llm.temperature": {- "category": "llm_parameters",- "description": "Controls randomness in model outputs (0.0 - 1.0)",+ "search.engine.web.google_pse.weaknesses": {+ "category": "google_pse",+ "description": "Setting for google_pse.weaknesses","editable": true,- "max_value": 1.0,- "min_value": 0.0,- "name": "Temperature",+ "max_value": null,+ "min_value": null,+ "name": "Weaknesses","options": null,- "step": 0.05,- "type": "LLM",- "ui_element": "slider",- "value": 0.7,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": [+ "requires API key with usage limits",+ "limited to 10,000 queries/day on free tier",+ "requires search engine configuration in Google Control Panel"+ ],"visible": true},- "local_all.DEFAULT_SEARCH_ENGINE": {- "category": null,+ "search.engine.local.local_all.display_name": {+ "category": "local_all",+ "description": "Display name to use in the U.I. for this search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Display Name",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Local Documents",+ "visible": false+ },+ "search.engine.local.local_all.description": {+ "category": "local_all",+ "description": "Human-readable description of the search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Description",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Search only local documents using RAG.",+ "visible": false+ },+ "search.engine.DEFAULT_SEARCH_ENGINE": {+ "category": "local_all","description": "Setting for local_all.DEFAULT_SEARCH_ENGINE","editable": true,"max_value": null,@@ -1248,8 +1778,8 @@"value": "wikipedia","visible": true},- "local_all.class_name": {- "category": null,+ "search.engine.local.local_all.class_name": {+ "category": "local_all","description": "Setting for local_all.class_name","editable": true,"max_value": null,@@ -1262,8 +1792,8 @@"value": "LocalAllSearchEngine","visible": true},- "local_all.module_path": {- "category": null,+ "search.engine.local.local_all.module_path": {+ "category": "local_all","description": "Setting for local_all.module_path","editable": true,"max_value": null,@@ -1276,8 +1806,8 @@"value": ".engines.search_engine_local_all","visible": true},- "local_all.reliability": {- "category": null,+ "search.engine.local.local_all.reliability": {+ "category": "local_all","description": "Setting for local_all.reliability","editable": true,"max_value": 1.0,@@ -1290,8 +1820,8 @@"value": 0.85,"visible": true},- "local_all.requires_api_key": {- "category": null,+ "search.engine.local.local_all.requires_api_key": {+ "category": "local_all","description": "Setting for local_all.requires_api_key","editable": true,"max_value": null,@@ -1304,8 +1834,8 @@"value": false,"visible": true},- "local_all.requires_llm": {- "category": null,+ "search.engine.local.local_all.requires_llm": {+ "category": "local_all","description": "Setting for local_all.requires_llm","editable": true,"max_value": null,@@ -1318,8 +1848,8 @@"value": true,"visible": true},- "local_all.strengths": {- "category": null,+ "search.engine.local.local_all.strengths": {+ "category": "local_all","description": "Setting for local_all.strengths","editable": true,"max_value": null,@@ -1336,8 +1866,8 @@],"visible": true},- "local_all.weaknesses": {- "category": null,+ "search.engine.local.local_all.weaknesses": {+ "category": "local_all","description": "Setting for local_all.weaknesses","editable": true,"max_value": null,@@ -1353,8 +1883,8 @@],"visible": true},- "personal_notes.cache_dir": {- "category": null,+ "search.engine.local.personal_notes.cache_dir": {+ "category": "personal_notes","description": "Setting for personal_notes.cache_dir","editable": true,"max_value": null,@@ -1367,8 +1897,8 @@"value": "__CACHE_DIR__/local_search/personal_notes","visible": true},- "personal_notes.chunk_overlap": {- "category": null,+ "search.engine.local.personal_notes.chunk_overlap": {+ "category": "personal_notes","description": "Setting for personal_notes.chunk_overlap","editable": true,"max_value": null,@@ -1381,8 +1911,8 @@"value": 100,"visible": true},- "personal_notes.chunk_size": {- "category": null,+ "search.engine.local.personal_notes.chunk_size": {+ "category": "personal_notes","description": "Setting for personal_notes.chunk_size","editable": true,"max_value": null,@@ -1395,8 +1925,8 @@"value": 500,"visible": true},- "personal_notes.description": {- "category": null,+ "search.engine.local.personal_notes.description": {+ "category": "personal_notes","description": "Setting for personal_notes.description","editable": true,"max_value": null,@@ -1409,8 +1939,8 @@"value": "Personal notes and documents","visible": true},- "personal_notes.embedding_device": {- "category": null,+ "search.engine.local.personal_notes.embedding_device": {+ "category": "personal_notes","description": "Setting for personal_notes.embedding_device","editable": true,"max_value": null,@@ -1432,8 +1962,8 @@"value": "cpu","visible": true},- "personal_notes.embedding_model": {- "category": null,+ "search.engine.local.personal_notes.embedding_model": {+ "category": "personal_notes","description": "Setting for personal_notes.embedding_model","editable": true,"max_value": null,@@ -1446,8 +1976,8 @@"value": "all-MiniLM-L6-v2","visible": true},- "personal_notes.embedding_model_type": {- "category": null,+ "search.engine.local.personal_notes.embedding_model_type": {+ "category": "personal_notes","description": "Setting for personal_notes.embedding_model_type","editable": true,"max_value": null,@@ -1460,8 +1990,8 @@"value": "sentence_transformers","visible": true},- "personal_notes.enabled": {- "category": null,+ "search.engine.local.personal_notes.enabled": {+ "category": "personal_notes","description": "Setting for personal_notes.enabled","editable": true,"max_value": null,@@ -1474,8 +2004,8 @@"value": true,"visible": true},- "personal_notes.max_filtered_results": {- "category": null,+ "search.engine.local.personal_notes.max_filtered_results": {+ "category": "personal_notes","description": "Setting for personal_notes.max_filtered_results","editable": true,"max_value": null,@@ -1488,8 +2018,8 @@"value": 10,"visible": true},- "personal_notes.max_results": {- "category": null,+ "search.engine.local.personal_notes.max_results": {+ "category": "personal_notes","description": "Setting for personal_notes.max_results","editable": true,"max_value": null,@@ -1502,8 +2032,8 @@"value": 30,"visible": true},- "personal_notes.name": {- "category": null,+ "search.engine.local.personal_notes.name": {+ "category": "personal_notes","description": "Setting for personal_notes.name","editable": true,"max_value": null,@@ -1516,8 +2046,8 @@"value": "Personal Notes","visible": true},- "personal_notes.paths": {- "category": null,+ "search.engine.local.personal_notes.paths": {+ "category": "personal_notes","description": "Setting for personal_notes.paths","editable": true,"max_value": null,@@ -1532,8 +2062,8 @@],"visible": true},- "personal_notes.reliability": {- "category": null,+ "search.engine.local.personal_notes.reliability": {+ "category": "personal_notes","description": "Setting for personal_notes.reliability","editable": true,"max_value": 1.0,@@ -1546,8 +2076,8 @@"value": 0.75,"visible": true},- "personal_notes.strengths": {- "category": null,+ "search.engine.local.personal_notes.strengths": {+ "category": "personal_notes","description": "Setting for personal_notes.strengths","editable": true,"max_value": null,@@ -1564,8 +2094,8 @@],"visible": true},- "personal_notes.weaknesses": {- "category": null,+ "search.engine.local.personal_notes.weaknesses": {+ "category": "personal_notes","description": "Setting for personal_notes.weaknesses","editable": true,"max_value": null,@@ -1581,8 +2111,8 @@],"visible": true},- "project_docs.cache_dir": {- "category": null,+ "search.engine.local.project_docs.cache_dir": {+ "category": "project_docs","description": "Setting for project_docs.cache_dir","editable": true,"max_value": null,@@ -1595,8 +2125,8 @@"value": "__CACHE_DIR__/local_search/project_docs","visible": true},- "project_docs.chunk_overlap": {- "category": null,+ "search.engine.local.project_docs.chunk_overlap": {+ "category": "project_docs","description": "Setting for project_docs.chunk_overlap","editable": true,"max_value": null,@@ -1609,8 +2139,8 @@"value": 200,"visible": true},- "project_docs.chunk_size": {- "category": null,+ "search.engine.local.project_docs.chunk_size": {+ "category": "project_docs","description": "Setting for project_docs.chunk_size","editable": true,"max_value": null,@@ -1620,258 +2150,81 @@"step": null,"type": "SEARCH","ui_element": "number",- "value": 1000,- "visible": true- },- "project_docs.description": {- "category": null,- "description": "Setting for project_docs.description",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Description",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "text",- "value": "Project documentation and specifications",- "visible": true- },- "project_docs.embedding_device": {- "category": null,- "description": "Setting for project_docs.embedding_device",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Embedding Device",- "options": [- {- "label": "CPU",- "value": "cpu"- },- {- "label": "CUDA",- "value": "cuda"- }- ],- "step": null,- "type": "SEARCH",- "ui_element": "select",- "value": "cpu",- "visible": true- },- "project_docs.embedding_model": {- "category": null,- "description": "Setting for project_docs.embedding_model",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Embedding Model",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "text",- "value": "all-MiniLM-L6-v2",- "visible": true- },- "project_docs.embedding_model_type": {- "category": null,- "description": "Setting for project_docs.embedding_model_type",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Embedding Model Type",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "text",- "value": "sentence_transformers",- "visible": true- },- "project_docs.enabled": {- "category": null,- "description": "Setting for project_docs.enabled",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Enabled",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "checkbox",- "value": true,- "visible": true- },- "project_docs.max_filtered_results": {- "category": null,- "description": "Setting for project_docs.max_filtered_results",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Max Filtered Results",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "text",- "value": 5,- "visible": true- },- "project_docs.max_results": {- "category": null,- "description": "Setting for project_docs.max_results",- "editable": true,- "max_value": null,- "min_value": 1,- "name": "Max Results",- "options": null,- "step": 1,- "type": "SEARCH",- "ui_element": "number",- "value": 20,- "visible": true- },- "project_docs.name": {- "category": null,- "description": "Setting for project_docs.name",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Name",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "text",- "value": "Project Documents",- "visible": true- },- "project_docs.paths": {- "category": null,- "description": "Setting for project_docs.paths",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Paths",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "text",- "value": [- "@format ${DOCS_DIR}/project_documents"- ],- "visible": true- },- "project_docs.reliability": {- "category": null,- "description": "Setting for project_docs.reliability",- "editable": true,- "max_value": 1.0,- "min_value": 0.0,- "name": "Reliability",- "options": null,- "step": 0.05,- "type": "SEARCH",- "ui_element": "range",- "value": 0.9,- "visible": true- },- "project_docs.strengths": {- "category": null,- "description": "Setting for project_docs.strengths",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Strengths",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "text",- "value": [- "project documentation",- "specifications",- "internal documents"- ],- "visible": true- },- "project_docs.weaknesses": {- "category": null,- "description": "Setting for project_docs.weaknesses",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Weaknesses",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "text",- "value": [- "no external information",- "limited to organizational knowledge"- ],+ "value": 1000,"visible": true},- "pubmed.api_key_env": {- "category": null,- "description": "Setting for pubmed.api_key_env",+ "search.engine.local.project_docs.description": {+ "category": "project_docs",+ "description": "Setting for project_docs.description","editable": true,"max_value": null,"min_value": null,- "name": "Api Key Env",+ "name": "Description","options": null,"step": null,"type": "SEARCH","ui_element": "text",- "value": "NCBI_API_KEY",+ "value": "Project documentation and specifications","visible": true},- "pubmed.class_name": {- "category": null,- "description": "Setting for pubmed.class_name",+ "search.engine.local.project_docs.embedding_device": {+ "category": "project_docs",+ "description": "Setting for project_docs.embedding_device","editable": true,"max_value": null,"min_value": null,- "name": "Class Name",- "options": null,+ "name": "Embedding Device",+ "options": [+ {+ "label": "CPU",+ "value": "cpu"+ },+ {+ "label": "CUDA",+ "value": "cuda"+ }+ ],"step": null,"type": "SEARCH",- "ui_element": "text",- "value": "PubMedSearchEngine",+ "ui_element": "select",+ "value": "cpu","visible": true},- "pubmed.default_params.days_limit": {- "category": null,- "description": "Setting for pubmed.default_params.days_limit",+ "search.engine.local.project_docs.embedding_model": {+ "category": "project_docs",+ "description": "Setting for project_docs.embedding_model","editable": true,"max_value": null,- "min_value": 0,- "name": "Days Limit",+ "min_value": null,+ "name": "Embedding Model","options": null,"step": null,"type": "SEARCH",- "ui_element": "number",- "value": 0,+ "ui_element": "text",+ "value": "all-MiniLM-L6-v2","visible": true},- "pubmed.default_params.full_text_limit": {- "category": null,- "description": "Setting for pubmed.default_params.full_text_limit",+ "search.engine.local.project_docs.embedding_model_type": {+ "category": "project_docs",+ "description": "Setting for project_docs.embedding_model_type","editable": true,"max_value": null,- "min_value": 0,- "name": "Full Text Limit",+ "min_value": null,+ "name": "Embedding Model Type","options": null,"step": null,"type": "SEARCH",- "ui_element": "number",- "value": 3,+ "ui_element": "text",+ "value": "sentence_transformers","visible": true},- "pubmed.default_params.get_abstracts": {- "category": null,- "description": "Setting for pubmed.default_params.get_abstracts",+ "search.engine.local.project_docs.enabled": {+ "category": "project_docs",+ "description": "Setting for project_docs.enabled","editable": true,"max_value": null,"min_value": null,- "name": "Get Abstracts",+ "name": "Enabled","options": null,"step": null,"type": "SEARCH",@@ -1879,23 +2232,23 @@"value": true,"visible": true},- "pubmed.default_params.get_full_text": {- "category": null,- "description": "Setting for pubmed.default_params.get_full_text",+ "search.engine.local.project_docs.max_filtered_results": {+ "category": "project_docs",+ "description": "Setting for project_docs.max_filtered_results","editable": true,"max_value": null,"min_value": null,- "name": "Get Full Text",+ "name": "Max Filtered Results","options": null,"step": null,"type": "SEARCH",- "ui_element": "checkbox",- "value": false,+ "ui_element": "text",+ "value": 5,"visible": true},- "pubmed.default_params.max_results": {- "category": null,- "description": "Setting for pubmed.default_params.max_results",+ "search.engine.local.project_docs.max_results": {+ "category": "project_docs",+ "description": "Setting for project_docs.max_results","editable": true,"max_value": null,"min_value": 1,@@ -1907,37 +2260,39 @@"value": 20,"visible": true},- "pubmed.default_params.optimize_queries": {- "category": null,- "description": "Setting for pubmed.default_params.optimize_queries",+ "search.engine.local.project_docs.name": {+ "category": "project_docs",+ "description": "Setting for project_docs.name","editable": true,"max_value": null,"min_value": null,- "name": "Optimize Queries",+ "name": "Name","options": null,"step": null,"type": "SEARCH",- "ui_element": "checkbox",- "value": true,+ "ui_element": "text",+ "value": "Project Documents","visible": true},- "pubmed.module_path": {- "category": null,- "description": "Setting for pubmed.module_path",+ "search.engine.local.project_docs.paths": {+ "category": "project_docs",+ "description": "Setting for project_docs.paths","editable": true,"max_value": null,"min_value": null,- "name": "Module Path",+ "name": "Paths","options": null,"step": null,"type": "SEARCH","ui_element": "text",- "value": ".engines.search_engine_pubmed",+ "value": [+ "@format ${DOCS_DIR}/project_documents"+ ],"visible": true},- "pubmed.reliability": {- "category": null,- "description": "Setting for pubmed.reliability",+ "search.engine.local.project_docs.reliability": {+ "category": "project_docs",+ "description": "Setting for project_docs.reliability","editable": true,"max_value": 1.0,"min_value": 0.0,@@ -1946,40 +2301,12 @@"step": 0.05,"type": "SEARCH","ui_element": "range",- "value": 0.98,- "visible": true- },- "pubmed.requires_api_key": {- "category": null,- "description": "Setting for pubmed.requires_api_key",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Requires Api Key",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "checkbox",- "value": false,- "visible": true- },- "pubmed.requires_llm": {- "category": null,- "description": "Setting for pubmed.requires_llm",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Requires Llm",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "checkbox",- "value": true,+ "value": 0.9,"visible": true},- "pubmed.strengths": {- "category": null,- "description": "Setting for pubmed.strengths",+ "search.engine.local.project_docs.strengths": {+ "category": "project_docs",+ "description": "Setting for project_docs.strengths","editable": true,"max_value": null,"min_value": null,@@ -1989,18 +2316,15 @@"type": "SEARCH","ui_element": "text","value": [- "biomedical literature",- "medical research",- "clinical studies",- "life sciences",- "health information",- "scientific papers"+ "project documentation",+ "specifications",+ "internal documents"],"visible": true},- "pubmed.weaknesses": {- "category": null,- "description": "Setting for pubmed.weaknesses",+ "search.engine.local.project_docs.weaknesses": {+ "category": "project_docs",+ "description": "Setting for project_docs.weaknesses","editable": true,"max_value": null,"min_value": null,@@ -2010,168 +2334,102 @@"type": "SEARCH","ui_element": "text","value": [- "non-medical topics",- "very recent papers may be missing",- "limited to published research"+ "no external information",+ "limited to organizational knowledge"],"visible": true},- "report.detailed_citations": {- "category": "report_parameters",- "description": "Include detailed citations in reports",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Detailed Citations",- "options": null,- "step": null,- "type": "REPORT",- "ui_element": "checkbox",- "value": true,- "visible": true- },- "report.enable_fact_checking": {- "category": "report_parameters",- "description": "Enable fact checking for report contents",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Enable Fact Checking",- "options": null,- "step": null,- "type": "REPORT",- "ui_element": "checkbox",- "value": true,- "visible": true- },- "report.searches_per_section": {- "category": "report_parameters",- "description": "Number of searches to run per report section",- "editable": true,- "max_value": 5.0,- "min_value": 1.0,- "name": "Searches Per Section",- "options": null,- "step": null,- "type": "REPORT",- "ui_element": "number",- "value": 2,- "visible": true- },- "research_papers.cache_dir": {- "category": null,- "description": "Setting for research_papers.cache_dir",- "editable": true,+ "search.engine.web.pubmed.display_name": {+ "category": "pubmed",+ "description": "Display name to use in the U.I. for this search engine.",+ "editable": false,"max_value": null,"min_value": null,- "name": "Cache Dir",+ "name": "Display Name","options": null,"step": null,"type": "SEARCH","ui_element": "text",- "value": "__CACHE_DIR__/local_search/research_papers",- "visible": true- },- "research_papers.chunk_overlap": {- "category": null,- "description": "Setting for research_papers.chunk_overlap",- "editable": true,- "max_value": null,- "min_value": 0,- "name": "Chunk Overlap",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "number",- "value": 150,- "visible": true+ "value": "PubMed",+ "visible": false},- "research_papers.chunk_size": {- "category": null,- "description": "Setting for research_papers.chunk_size",- "editable": true,+ "search.engine.web.pubmed.description": {+ "category": "pubmed",+ "description": "Human-readable description of the search engine.",+ "editable": false,"max_value": null,- "min_value": 1,- "name": "Chunk Size",+ "min_value": null,+ "name": "Description","options": null,"step": null,"type": "SEARCH",- "ui_element": "number",- "value": 800,- "visible": true+ "ui_element": "text",+ "value": "Search papers indexed by PubMed.",+ "visible": false},- "research_papers.description": {- "category": null,- "description": "Setting for research_papers.description",+ "search.engine.web.pubmed.api_key_env": {+ "category": "pubmed",+ "description": "Setting for pubmed.api_key_env","editable": true,"max_value": null,"min_value": null,- "name": "Description",+ "name": "Api Key Env","options": null,"step": null,"type": "SEARCH","ui_element": "text",- "value": "Academic research papers and articles",+ "value": "NCBI_API_KEY","visible": true},- "research_papers.embedding_device": {- "category": null,- "description": "Setting for research_papers.embedding_device",+ "search.engine.web.pubmed.class_name": {+ "category": "pubmed",+ "description": "Setting for pubmed.class_name","editable": true,"max_value": null,"min_value": null,- "name": "Embedding Device",- "options": [- {- "label": "CPU",- "value": "cpu"- },- {- "label": "CUDA",- "value": "cuda"- }- ],+ "name": "Class Name",+ "options": null,"step": null,"type": "SEARCH",- "ui_element": "select",- "value": "cpu",+ "ui_element": "text",+ "value": "PubMedSearchEngine","visible": true},- "research_papers.embedding_model": {- "category": null,- "description": "Setting for research_papers.embedding_model",+ "search.engine.web.pubmed.default_params.days_limit": {+ "category": "pubmed",+ "description": "Setting for pubmed.default_params.days_limit","editable": true,"max_value": null,- "min_value": null,- "name": "Embedding Model",+ "min_value": 0,+ "name": "Days Limit","options": null,"step": null,"type": "SEARCH",- "ui_element": "text",- "value": "all-MiniLM-L6-v2",+ "ui_element": "number",+ "value": 0,"visible": true},- "research_papers.embedding_model_type": {- "category": null,- "description": "Setting for research_papers.embedding_model_type",+ "search.engine.web.pubmed.default_params.full_text_limit": {+ "category": "pubmed",+ "description": "Setting for pubmed.default_params.full_text_limit","editable": true,"max_value": null,- "min_value": null,- "name": "Embedding Model Type",+ "min_value": 0,+ "name": "Full Text Limit","options": null,"step": null,- "type": "SEARCH",- "ui_element": "text",- "value": "sentence_transformers",+ "type": "SEARCH",+ "ui_element": "number",+ "value": 3,"visible": true},- "research_papers.enabled": {- "category": null,- "description": "Setting for research_papers.enabled",+ "search.engine.web.pubmed.default_params.get_abstracts": {+ "category": "pubmed",+ "description": "Setting for pubmed.default_params.get_abstracts","editable": true,"max_value": null,"min_value": null,- "name": "Enabled",+ "name": "Get Abstracts","options": null,"step": null,"type": "SEARCH",@@ -2179,23 +2437,23 @@"value": true,"visible": true},- "research_papers.max_filtered_results": {- "category": null,- "description": "Setting for research_papers.max_filtered_results",+ "search.engine.web.pubmed.default_params.get_full_text": {+ "category": "pubmed",+ "description": "Setting for pubmed.default_params.get_full_text","editable": true,"max_value": null,"min_value": null,- "name": "Max Filtered Results",+ "name": "Get Full Text","options": null,"step": null,"type": "SEARCH",- "ui_element": "text",- "value": 5,+ "ui_element": "checkbox",+ "value": false,"visible": true},- "research_papers.max_results": {- "category": null,- "description": "Setting for research_papers.max_results",+ "search.engine.web.pubmed.default_params.max_results": {+ "category": "pubmed",+ "description": "Setting for pubmed.default_params.max_results","editable": true,"max_value": null,"min_value": 1,@@ -2207,39 +2465,37 @@"value": 20,"visible": true},- "research_papers.name": {- "category": null,- "description": "Setting for research_papers.name",+ "search.engine.web.pubmed.default_params.optimize_queries": {+ "category": "pubmed",+ "description": "Setting for pubmed.default_params.optimize_queries","editable": true,"max_value": null,"min_value": null,- "name": "Name",+ "name": "Optimize Queries","options": null,"step": null,"type": "SEARCH",- "ui_element": "text",- "value": "Research Papers",+ "ui_element": "checkbox",+ "value": true,"visible": true},- "research_papers.paths": {- "category": null,- "description": "Setting for research_papers.paths",+ "search.engine.web.pubmed.module_path": {+ "category": "pubmed",+ "description": "Setting for pubmed.module_path","editable": true,"max_value": null,"min_value": null,- "name": "Paths",+ "name": "Module Path","options": null,"step": null,"type": "SEARCH","ui_element": "text",- "value": [- "@format ${DOCS_DIR}/research_papers"- ],+ "value": ".engines.search_engine_pubmed","visible": true},- "research_papers.reliability": {- "category": null,- "description": "Setting for research_papers.reliability",+ "search.engine.web.pubmed.reliability": {+ "category": "pubmed",+ "description": "Setting for pubmed.reliability","editable": true,"max_value": 1.0,"min_value": 0.0,@@ -2248,12 +2504,40 @@"step": 0.05,"type": "SEARCH","ui_element": "range",- "value": 0.85,+ "value": 0.98,"visible": true},- "research_papers.strengths": {- "category": null,- "description": "Setting for research_papers.strengths",+ "search.engine.web.pubmed.requires_api_key": {+ "category": "pubmed",+ "description": "Setting for pubmed.requires_api_key",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Requires Api Key",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "checkbox",+ "value": false,+ "visible": true+ },+ "search.engine.web.pubmed.requires_llm": {+ "category": "pubmed",+ "description": "Setting for pubmed.requires_llm",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Requires Llm",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "checkbox",+ "value": true,+ "visible": true+ },+ "search.engine.web.pubmed.strengths": {+ "category": "pubmed",+ "description": "Setting for pubmed.strengths","editable": true,"max_value": null,"min_value": null,@@ -2263,15 +2547,18 @@"type": "SEARCH","ui_element": "text","value": [- "academic research",- "scientific papers",- "scholarly content"+ "biomedical literature",+ "medical research",+ "clinical studies",+ "life sciences",+ "health information",+ "scientific papers"],"visible": true},- "research_papers.weaknesses": {- "category": null,- "description": "Setting for research_papers.weaknesses",+ "search.engine.web.pubmed.weaknesses": {+ "category": "pubmed",+ "description": "Setting for pubmed.weaknesses","editable": true,"max_value": null,"min_value": null,@@ -2281,141 +2568,126 @@"type": "SEARCH","ui_element": "text","value": [- "potentially outdated",- "limited to collected papers"+ "non-medical topics",+ "very recent papers may be missing",+ "limited to published research"],"visible": true},- "search.iterations": {- "category": null,- "description": "Setting for search.iterations",+ "search.engine.local.research_papers.cache_dir": {+ "category": "research_papers",+ "description": "Setting for research_papers.cache_dir","editable": true,"max_value": null,- "min_value": 1,- "name": "Iterations",+ "min_value": null,+ "name": "Cache Dir","options": null,"step": null,"type": "SEARCH",- "ui_element": "number",- "value": 2,+ "ui_element": "text",+ "value": "__CACHE_DIR__/local_search/research_papers","visible": true},- "search.max_filtered_results": {- "category": null,- "description": "Setting for search.max_filtered_results",+ "search.engine.local.research_papers.chunk_overlap": {+ "category": "research_papers",+ "description": "Setting for research_papers.chunk_overlap","editable": true,"max_value": null,- "min_value": 1,- "name": "Max Filtered Results",+ "min_value": 0,+ "name": "Chunk Overlap","options": null,"step": null,"type": "SEARCH","ui_element": "number",- "value": 5,+ "value": 150,"visible": true},- "search.max_results": {- "category": "search_parameters",- "description": "Maximum number of search results to retrieve",+ "search.engine.local.research_papers.chunk_size": {+ "category": "research_papers",+ "description": "Setting for research_papers.chunk_size","editable": true,- "max_value": 50.0,+ "max_value": null,"min_value": 1,- "name": "Max Results",+ "name": "Chunk Size","options": null,- "step": 1,+ "step": null,"type": "SEARCH","ui_element": "number",- "value": 50,+ "value": 800,"visible": true},- "search.quality_check_urls": {- "category": null,- "description": "Setting for search.quality_check_urls",+ "search.engine.local.research_papers.description": {+ "category": "research_papers",+ "description": "Setting for research_papers.description","editable": true,"max_value": null,"min_value": null,- "name": "Quality Check Urls",- "options": null,- "step": null,- "type": "SEARCH",- "ui_element": "checkbox",- "value": true,- "visible": true- },- "search.questions_per_iteration": {- "category": "search_parameters",- "description": "Number of questions to generate per research cycle",- "editable": true,- "max_value": 10.0,- "min_value": 1.0,- "name": "Questions Per Iteration",+ "name": "Description","options": null,"step": null,"type": "SEARCH",- "ui_element": "number",- "value": 2,+ "ui_element": "text",+ "value": "Academic research papers and articles","visible": true},- "search.region": {- "category": "search_parameters",- "description": "Geographic region for search results",+ "search.engine.local.research_papers.embedding_device": {+ "category": "research_papers",+ "description": "Setting for research_papers.embedding_device","editable": true,"max_value": null,"min_value": null,- "name": "Search Region",+ "name": "Embedding Device","options": [{- "label": "United States",- "value": "us"- },- {- "label": "United Kingdom",- "value": "uk"- },- {- "label": "France",- "value": "fr"- },- {- "label": "Germany",- "value": "de"- },- {- "label": "Japan",- "value": "jp"+ "label": "CPU",+ "value": "cpu"},{- "label": "No Region (Worldwide)",- "value": "wt-wt"+ "label": "CUDA",+ "value": "cuda"}],"step": null,"type": "SEARCH","ui_element": "select",- "value": "us",+ "value": "cpu","visible": true},- "search.research_iterations": {- "category": "search_parameters",- "description": "Number of research cycles to perform",+ "search.engine.local.research_papers.embedding_model": {+ "category": "research_papers",+ "description": "Setting for research_papers.embedding_model","editable": true,- "max_value": 5.0,- "min_value": 1.0,- "name": "Research Iterations",+ "max_value": null,+ "min_value": null,+ "name": "Embedding Model","options": null,"step": null,"type": "SEARCH",- "ui_element": "number",- "value": 2,+ "ui_element": "text",+ "value": "all-MiniLM-L6-v2","visible": true},- "search.safe_search": {- "category": "search_parameters",- "description": "Enable safe search filtering",+ "search.engine.local.research_papers.embedding_model_type": {+ "category": "research_papers",+ "description": "Setting for research_papers.embedding_model_type","editable": true,"max_value": null,"min_value": null,- "name": "Safe Search",+ "name": "Embedding Model Type",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "sentence_transformers",+ "visible": true+ },+ "search.engine.local.research_papers.enabled": {+ "category": "research_papers",+ "description": "Setting for research_papers.enabled",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Enabled","options": null,"step": null,"type": "SEARCH",@@ -2423,191 +2695,143 @@"value": true,"visible": true},- "search.search_language": {- "category": "search_parameters",- "description": "Language for search results",+ "search.engine.local.research_papers.max_filtered_results": {+ "category": "research_papers",+ "description": "Setting for research_papers.max_filtered_results","editable": true,"max_value": null,"min_value": null,- "name": "Search Language",- "options": [- {- "label": "English",- "value": "English"- },- {- "label": "French",- "value": "French"- },- {- "label": "German",- "value": "German"- },- {- "label": "Spanish",- "value": "Spanish"- },- {- "label": "Italian",- "value": "Italian"- },- {- "label": "Japanese",- "value": "Japanese"- },- {- "label": "Chinese",- "value": "Chinese"- }- ],+ "name": "Max Filtered Results",+ "options": null,"step": null,"type": "SEARCH",- "ui_element": "select",- "value": "English",+ "ui_element": "text",+ "value": 5,+ "visible": true+ },+ "search.engine.local.research_papers.max_results": {+ "category": "research_papers",+ "description": "Setting for research_papers.max_results",+ "editable": true,+ "max_value": null,+ "min_value": 1,+ "name": "Max Results",+ "options": null,+ "step": 1,+ "type": "SEARCH",+ "ui_element": "number",+ "value": 20,"visible": true},- "search.searches_per_section": {- "category": "search_parameters",- "description": "Number of searches to run per report section",+ "search.engine.local.research_papers.name": {+ "category": "research_papers",+ "description": "Setting for research_papers.name","editable": true,- "max_value": 5.0,- "min_value": 1.0,- "name": "Searches Per Section",+ "max_value": null,+ "min_value": null,+ "name": "Name","options": null,"step": null,"type": "SEARCH",- "ui_element": "number",- "value": 2,+ "ui_element": "text",+ "value": "Research Papers","visible": true},- "search.skip_relevance_filter": {- "category": "search_parameters",- "description": "Skip filtering search results for relevance",+ "search.engine.local.research_papers.paths": {+ "category": "research_papers",+ "description": "Setting for research_papers.paths","editable": true,"max_value": null,"min_value": null,- "name": "Skip Relevance Filter",+ "name": "Paths","options": null,"step": null,"type": "SEARCH",- "ui_element": "checkbox",- "value": false,+ "ui_element": "text",+ "value": [+ "@format ${DOCS_DIR}/research_papers"+ ],"visible": true},- "search.snippets_only": {- "category": "search_parameters",- "description": "Only retrieve snippets instead of full search results",+ "search.engine.local.research_papers.reliability": {+ "category": "research_papers",+ "description": "Setting for research_papers.reliability",+ "editable": true,+ "max_value": 1.0,+ "min_value": 0.0,+ "name": "Reliability",+ "options": null,+ "step": 0.05,+ "type": "SEARCH",+ "ui_element": "range",+ "value": 0.85,+ "visible": true+ },+ "search.engine.local.research_papers.strengths": {+ "category": "research_papers",+ "description": "Setting for research_papers.strengths","editable": true,"max_value": null,"min_value": null,- "name": "Snippets Only",+ "name": "Strengths","options": null,"step": null,"type": "SEARCH",- "ui_element": "checkbox",- "value": true,+ "ui_element": "text",+ "value": [+ "academic research",+ "scientific papers",+ "scholarly content"+ ],"visible": true},- "search.time_period": {- "category": "search_parameters",- "description": "Time period for search results",+ "search.engine.local.research_papers.weaknesses": {+ "category": "research_papers",+ "description": "Setting for research_papers.weaknesses","editable": true,"max_value": null,"min_value": null,- "name": "Time Period",- "options": [- {- "label": "Past 24 hours",- "value": "d"- },- {- "label": "Past week",- "value": "w"- },- {- "label": "Past month",- "value": "m"- },- {- "label": "Past year",- "value": "y"- },- {- "label": "All time",- "value": "all"- }- ],+ "name": "Weaknesses",+ "options": null,"step": null,"type": "SEARCH",- "ui_element": "select",- "value": "y",+ "ui_element": "text",+ "value": [+ "potentially outdated",+ "limited to collected papers"+ ],"visible": true},- "search.tool": {- "category": "search_general",- "description": "Web search engine to use for research",- "editable": true,+ "search.engine.web.searxng.display_name": {+ "category": "searxng",+ "description": "Display name to use in the U.I. for this search engine.",+ "editable": false,"max_value": null,"min_value": null,- "name": "Search Engine",- "options": [- {- "label": "Auto (Default)",- "value": "auto"- },- {- "label": "Arxiv",- "value": "arxiv"- },- {- "label": "Wikipedia",- "value": "wikipedia"- },- {- "label": "Pubmed",- "value": "pubmed"- },- {- "label": "Github",- "value": "github"- },- {- "label": "SerpAPI (Google)",- "value": "serpapi"- },- {- "label": "SearXNG (Self-hosted)",- "value": "searxng"- },- {- "label": "Google Programmable Search Engine",- "value": "google_pse"- },- {- "label": "DuckDuckGo",- "value": "duckduckgo"- },- {- "label": "Brave",- "value": "brave"- },- {- "label": "Wayback",- "value": "wayback"- },- {- "label": "Local All",- "value": "local_all"- }- ],+ "name": "Display Name",+ "options": null,"step": null,"type": "SEARCH",- "ui_element": "select",- "value": "auto",- "visible": true+ "ui_element": "text",+ "value": "SearXNG (Locally-hosted)",+ "visible": false},- "searxng.api_key_env": {- "category": null,+ "search.engine.web.searxng.description": {+ "category": "searxng",+ "description": "Human-readable description of the search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Description",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "A locally-hosted meta-search engine.",+ "visible": false+ },+ "search.engine.web.searxng.api_key_env": {+ "category": "searxng","description": "Setting for searxng.api_key_env","editable": true,"max_value": null,@@ -2620,8 +2844,8 @@"value": "SEARXNG_INSTANCE","visible": true},- "searxng.class_name": {- "category": null,+ "search.engine.web.searxng.class_name": {+ "category": "searxng","description": "Setting for searxng.class_name","editable": true,"max_value": null,@@ -2634,8 +2858,8 @@"value": "SearXNGSearchEngine","visible": true},- "searxng.default_params.categories": {- "category": null,+ "search.engine.web.searxng.default_params.categories": {+ "category": "searxng","description": "Setting for searxng.default_params.categories","editable": true,"max_value": null,@@ -2650,8 +2874,8 @@],"visible": true},- "searxng.default_params.delay_between_requests": {- "category": null,+ "search.engine.web.searxng.default_params.delay_between_requests": {+ "category": "searxng","description": "Setting for searxng.default_params.delay_between_requests","editable": true,"max_value": null,@@ -2664,8 +2888,8 @@"value": 0,"visible": true},- "searxng.default_params.include_full_content": {- "category": null,+ "search.engine.web.searxng.default_params.include_full_content": {+ "category": "searxng","description": "Setting for searxng.default_params.include_full_content","editable": true,"max_value": null,@@ -2678,8 +2902,8 @@"value": true,"visible": true},- "searxng.default_params.language": {- "category": null,+ "search.engine.web.searxng.default_params.language": {+ "category": "searxng","description": "Setting for searxng.default_params.language","editable": true,"max_value": null,@@ -2692,8 +2916,8 @@"value": "en","visible": true},- "searxng.default_params.max_results": {- "category": null,+ "search.engine.web.searxng.default_params.max_results": {+ "category": "searxng","description": "Setting for searxng.default_params.max_results","editable": true,"max_value": null,@@ -2706,8 +2930,8 @@"value": 15,"visible": true},- "searxng.default_params.safe_search": {- "category": null,+ "search.engine.web.searxng.default_params.safe_search": {+ "category": "searxng","description": "Setting for searxng.default_params.safe_search","editable": true,"max_value": null,@@ -2720,8 +2944,8 @@"value": 1,"visible": true},- "searxng.full_search_class": {- "category": null,+ "search.engine.web.searxng.full_search_class": {+ "category": "searxng","description": "Setting for searxng.full_search_class","editable": true,"max_value": null,@@ -2734,8 +2958,8 @@"value": "FullSearchResults","visible": true},- "searxng.full_search_module": {- "category": null,+ "search.engine.web.searxng.full_search_module": {+ "category": "searxng","description": "Setting for searxng.full_search_module","editable": true,"max_value": null,@@ -2748,8 +2972,8 @@"value": ".engines.full_search","visible": true},- "searxng.module_path": {- "category": null,+ "search.engine.web.searxng.module_path": {+ "category": "searxng","description": "Setting for searxng.module_path","editable": true,"max_value": null,@@ -2762,8 +2986,8 @@"value": ".engines.search_engine_searxng","visible": true},- "searxng.reliability": {- "category": null,+ "search.engine.web.searxng.reliability": {+ "category": "searxng","description": "Setting for searxng.reliability","editable": true,"max_value": 1.0,@@ -2776,8 +3000,8 @@"value": 0.9,"visible": true},- "searxng.requires_api_key": {- "category": null,+ "search.engine.web.searxng.requires_api_key": {+ "category": "searxng","description": "Setting for searxng.requires_api_key","editable": true,"max_value": null,@@ -2790,8 +3014,8 @@"value": false,"visible": true},- "searxng.strengths": {- "category": null,+ "search.engine.web.searxng.strengths": {+ "category": "searxng","description": "Setting for searxng.strengths","editable": true,"max_value": null,@@ -2811,8 +3035,8 @@],"visible": true},- "searxng.supports_full_search": {- "category": null,+ "search.engine.web.searxng.supports_full_search": {+ "category": "searxng","description": "Setting for searxng.supports_full_search","editable": true,"max_value": null,@@ -2825,8 +3049,8 @@"value": true,"visible": true},- "searxng.weaknesses": {- "category": null,+ "search.engine.web.searxng.weaknesses": {+ "category": "searxng","description": "Setting for searxng.weaknesses","editable": true,"max_value": null,@@ -2843,8 +3067,36 @@],"visible": true},- "serpapi.api_key_env": {- "category": null,+ "search.engine.web.serpapi.display_name": {+ "category": "serpapi",+ "description": "Display name to use in the U.I. for this search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Display Name",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "SerpApi",+ "visible": false+ },+ "search.engine.web.serpapi.description": {+ "category": "serpapi",+ "description": "Human-readable description of the search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Description",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Search the web with Google's search API.",+ "visible": false+ },+ "search.engine.web.serpapi.api_key_env": {+ "category": "serpapi","description": "Setting for serpapi.api_key_env","editable": true,"max_value": null,@@ -2857,8 +3109,8 @@"value": "SERP_API_KEY","visible": true},- "serpapi.class_name": {- "category": null,+ "search.engine.web.serpapi.class_name": {+ "category": "serpapi","description": "Setting for serpapi.class_name","editable": true,"max_value": null,@@ -2871,8 +3123,8 @@"value": "SerpAPISearchEngine","visible": true},- "serpapi.default_params.region": {- "category": null,+ "search.engine.web.serpapi.default_params.region": {+ "category": "serpapi","description": "Setting for serpapi.default_params.region","editable": true,"max_value": null,@@ -2885,8 +3137,8 @@"value": "us","visible": true},- "serpapi.default_params.safe_search": {- "category": null,+ "search.engine.web.serpapi.default_params.safe_search": {+ "category": "serpapi","description": "Setting for serpapi.default_params.safe_search","editable": true,"max_value": null,@@ -2899,8 +3151,8 @@"value": true,"visible": true},- "serpapi.default_params.search_language": {- "category": null,+ "search.engine.web.serpapi.default_params.search_language": {+ "category": "serpapi","description": "Setting for serpapi.default_params.search_language","editable": true,"max_value": null,@@ -2913,8 +3165,8 @@"value": "English","visible": true},- "serpapi.default_params.time_period": {- "category": null,+ "search.engine.web.serpapi.default_params.time_period": {+ "category": "serpapi","description": "Setting for serpapi.default_params.time_period","editable": true,"max_value": null,@@ -2927,8 +3179,8 @@"value": "y","visible": true},- "serpapi.full_search_class": {- "category": null,+ "search.engine.web.serpapi.full_search_class": {+ "category": "serpapi","description": "Setting for serpapi.full_search_class","editable": true,"max_value": null,@@ -2941,8 +3193,8 @@"value": "FullSerpAPISearchResults","visible": true},- "serpapi.full_search_module": {- "category": null,+ "search.engine.web.serpapi.full_search_module": {+ "category": "serpapi","description": "Setting for serpapi.full_search_module","editable": true,"max_value": null,@@ -2955,8 +3207,8 @@"value": "local_deep_research.web_search_engines.engines.full_serp_search_results_old","visible": true},- "serpapi.module_path": {- "category": null,+ "search.engine.web.serpapi.module_path": {+ "category": "serpapi","description": "Setting for serpapi.module_path","editable": true,"max_value": null,@@ -2969,8 +3221,8 @@"value": ".engines.search_engine_serpapi","visible": true},- "serpapi.reliability": {- "category": null,+ "search.engine.web.serpapi.reliability": {+ "category": "serpapi","description": "Setting for serpapi.reliability","editable": true,"max_value": 1.0,@@ -2983,8 +3235,8 @@"value": 0.6,"visible": true},- "serpapi.requires_api_key": {- "category": null,+ "search.engine.web.serpapi.requires_api_key": {+ "category": "serpapi","description": "Setting for serpapi.requires_api_key","editable": true,"max_value": null,@@ -2997,8 +3249,8 @@"value": true,"visible": true},- "serpapi.strengths": {- "category": null,+ "search.engine.web.serpapi.strengths": {+ "category": "serpapi","description": "Setting for serpapi.strengths","editable": true,"max_value": null,@@ -3018,8 +3270,8 @@],"visible": true},- "serpapi.supports_full_search": {- "category": null,+ "search.engine.web.serpapi.supports_full_search": {+ "category": "serpapi","description": "Setting for serpapi.supports_full_search","editable": true,"max_value": null,@@ -3032,8 +3284,8 @@"value": true,"visible": true},- "serpapi.weaknesses": {- "category": null,+ "search.engine.web.serpapi.weaknesses": {+ "category": "serpapi","description": "Setting for serpapi.weaknesses","editable": true,"max_value": null,@@ -3049,8 +3301,36 @@],"visible": true},- "wayback.class_name": {- "category": null,+ "search.engine.web.wayback.display_name": {+ "category": "wayback",+ "description": "Display name to use in the U.I. for this search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Display Name",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Wayback",+ "visible": false+ },+ "search.engine.web.wayback.description": {+ "category": "wayback",+ "description": "Human-readable description of the search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Description",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Search the Internet Archive's Wayback Machine.",+ "visible": false+ },+ "search.engine.web.wayback.class_name": {+ "category": "wayback","description": "Setting for wayback.class_name","editable": true,"max_value": null,@@ -3063,8 +3343,8 @@"value": "WaybackSearchEngine","visible": true},- "wayback.default_params.closest_only": {- "category": null,+ "search.engine.web.wayback.default_params.closest_only": {+ "category": "wayback","description": "Setting for wayback.default_params.closest_only","editable": true,"max_value": null,@@ -3077,8 +3357,8 @@"value": false,"visible": true},- "wayback.default_params.language": {- "category": null,+ "search.engine.web.wayback.default_params.language": {+ "category": "wayback","description": "Setting for wayback.default_params.language","editable": true,"max_value": null,@@ -3091,8 +3371,8 @@"value": "English","visible": true},- "wayback.default_params.max_results": {- "category": null,+ "search.engine.web.wayback.default_params.max_results": {+ "category": "wayback","description": "Setting for wayback.default_params.max_results","editable": true,"max_value": null,@@ -3105,8 +3385,8 @@"value": 15,"visible": true},- "wayback.default_params.max_snapshots_per_url": {- "category": null,+ "search.engine.web.wayback.default_params.max_snapshots_per_url": {+ "category": "wayback","description": "Setting for wayback.default_params.max_snapshots_per_url","editable": true,"max_value": null,@@ -3119,8 +3399,8 @@"value": 3,"visible": true},- "wayback.module_path": {- "category": null,+ "search.engine.web.wayback.module_path": {+ "category": "wayback","description": "Setting for wayback.module_path","editable": true,"max_value": null,@@ -3133,8 +3413,8 @@"value": ".engines.search_engine_wayback","visible": true},- "wayback.reliability": {- "category": null,+ "search.engine.web.wayback.reliability": {+ "category": "wayback","description": "Setting for wayback.reliability","editable": true,"max_value": 1.0,@@ -3147,8 +3427,8 @@"value": 0.5,"visible": true},- "wayback.requires_api_key": {- "category": null,+ "search.engine.web.wayback.requires_api_key": {+ "category": "wayback","description": "Setting for wayback.requires_api_key","editable": true,"max_value": null,@@ -3161,8 +3441,8 @@"value": false,"visible": true},- "wayback.strengths": {- "category": null,+ "search.engine.web.wayback.strengths": {+ "category": "wayback","description": "Setting for wayback.strengths","editable": true,"max_value": null,@@ -3181,8 +3461,8 @@],"visible": true},- "wayback.supports_full_search": {- "category": null,+ "search.engine.web.wayback.supports_full_search": {+ "category": "wayback","description": "Setting for wayback.supports_full_search","editable": true,"max_value": null,@@ -3195,8 +3475,8 @@"value": true,"visible": true},- "wayback.weaknesses": {- "category": null,+ "search.engine.web.wayback.weaknesses": {+ "category": "wayback","description": "Setting for wayback.weaknesses","editable": true,"max_value": null,@@ -3255,8 +3535,36 @@"value": 5000,"visible": true},- "wikipedia.class_name": {- "category": null,+ "search.engine.web.wikipedia.display_name": {+ "category": "wikipedia",+ "description": "Display name to use in the U.I. for this search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Display Name",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Wikipedia",+ "visible": false+ },+ "search.engine.web.wikipedia.description": {+ "category": "wikipedia",+ "description": "Human-readable description of the search engine.",+ "editable": false,+ "max_value": null,+ "min_value": null,+ "name": "Description",+ "options": null,+ "step": null,+ "type": "SEARCH",+ "ui_element": "text",+ "value": "Search Wikipedia articles",+ "visible": false+ },+ "search.engine.web.wikipedia.class_name": {+ "category": "wikipedia","description": "Setting for wikipedia.class_name","editable": true,"max_value": null,@@ -3269,8 +3577,8 @@"value": "WikipediaSearchEngine","visible": true},- "wikipedia.default_params.include_content": {- "category": null,+ "search.engine.web.wikipedia.default_params.include_content": {+ "category": "wikipedia","description": "Setting for wikipedia.default_params.include_content","editable": true,"max_value": null,@@ -3283,8 +3591,8 @@"value": true,"visible": true},- "wikipedia.default_params.max_results": {- "category": null,+ "search.engine.web.wikipedia.default_params.max_results": {+ "category": "wikipedia","description": "Setting for wikipedia.default_params.max_results","editable": true,"max_value": null,@@ -3297,8 +3605,8 @@"value": 20,"visible": true},- "wikipedia.module_path": {- "category": null,+ "search.engine.web.wikipedia.module_path": {+ "category": "wikipedia","description": "Setting for wikipedia.module_path","editable": true,"max_value": null,@@ -3311,8 +3619,8 @@"value": ".engines.search_engine_wikipedia","visible": true},- "wikipedia.reliability": {- "category": null,+ "search.engine.web.wikipedia.reliability": {+ "category": "wikipedia","description": "Setting for wikipedia.reliability","editable": true,"max_value": 1.0,@@ -3325,8 +3633,8 @@"value": 0.95,"visible": true},- "wikipedia.requires_api_key": {- "category": null,+ "search.engine.web.wikipedia.requires_api_key": {+ "category": "wikipedia","description": "Setting for wikipedia.requires_api_key","editable": true,"max_value": null,@@ -3339,8 +3647,8 @@"value": false,"visible": true},- "wikipedia.strengths": {- "category": null,+ "search.engine.web.wikipedia.strengths": {+ "category": "wikipedia","description": "Setting for wikipedia.strengths","editable": true,"max_value": null,@@ -3360,8 +3668,8 @@],"visible": true},- "wikipedia.weaknesses": {- "category": null,+ "search.engine.web.wikipedia.weaknesses": {+ "category": "wikipedia","description": "Setting for wikipedia.weaknesses","editable": true,"max_value": null,diff --git a/src/local_deep_research/web/routes/settings_routes.py b/src/local_deep_research/web/routes/settings_routes.pyindex d60b298983..dbc320dd3a 100644--- a/src/local_deep_research/web/routes/settings_routes.py+++ b/src/local_deep_research/web/routes/settings_routes.py@@ -22,7 +22,6 @@ from flask_wtf.csrf import generate_csrffrom sqlalchemy.orm import Sessionfrom ...config.config_files import get_config_dir-from ...web_search_engines.search_engine_factory import get_available_enginesfrom ..database.models import Setting, SettingTypefrom ..services.settings_service import (create_or_update_setting,@@ -910,21 +909,37 @@ def api_get_available_search_engines():try:# Find search engines that are set in the DB.db_session = get_db_session()- search_settings = (+ name_settings = (db_session.query(Setting).filter(Setting.type == "SEARCH")- .filter(Setting.key.endswith(".class_name"))- .filter(~Setting.key.startswith("search."))+ .filter(Setting.key.startswith("search.engine"))+ .filter(Setting.key.endswith(".display_name"))).all()# These should all correspond to different search engines.engines_dict = {}- for setting in search_settings:- engine_name = setting.key.split(".")[0]- display_name = setting.key.replace("_", " ").title()+ for setting in name_settings:+ key_parts = setting.key.split(".")+ if key_parts[2] == "auto":+ # The auto engine is not in the web or local category.+ engine_name = "auto"+ else:+ engine_name = setting.key.split(".")[3]+ display_name = setting.value++ description = (+ db_session.query(Setting)+ .filter(Setting.key == f"search.engine.web.{engine_name}.description")+ .first()+ )+ if description is None:+ description = ""+ else:+ description = description.value+strengths = (db_session.query(Setting)- .filter(Setting.key == f"{engine_name}.strengths")+ .filter(Setting.key == f"search.engine.web.{engine_name}.strengths").first())if strengths is None:@@ -934,87 +949,20 @@ def api_get_available_search_engines():strengths = strengths.valueengines_dict[engine_name] = dict(- display_name=display_name, strengths=strengths+ display_name=display_name, strengths=strengths, description=description)- # First try to get engines from search_engines.toml file- engines_dict = get_engines_from_file()-- # If we got engines from file, use those- if engines_dict:- # Make sure searxng is included if it should be- if "searxng" not in engines_dict:- engines_dict["searxng"] = {- "display_name": "SearXNG (Self-hosted)",- "description": "Self-hosted metasearch engine",- "strengths": ["privacy", "customization", "no API key needed"],- }-- # Format as options for dropdown- engine_options = [- {- "value": key,- "label": engines_dict.get(key, {}).get("display_name", key),- }- for key in engines_dict.keys()- ]-- return jsonify({"engines": engines_dict, "engine_options": engine_options})-- # Fallback to factory function if file method failed- try:- # Get available engines- search_engines = get_available_engines(include_api_key_services=True)-- # Handle if search_engines is a list (not a dict)- if isinstance(search_engines, list):- # Convert to dict with engine name as key and display name as value- engines_dict = {- engine: engine.replace("_", " ").title()- for engine in search_engines- }- else:- engines_dict = search_engines-- # Make sure searxng is included- if "searxng" not in engines_dict:- engines_dict["searxng"] = "SearXNG (Self-hosted)"-- # Format as options for dropdown- engine_options = [- {- "value": key,- "label": (- value- if isinstance(value, str)- else key.replace("_", " ").title()- ),- }- for key, value in engines_dict.items()- ]-- return jsonify({"engines": engines_dict, "engine_options": engine_options})- except Exception as e:- # If both methods fail, return default engines with searxng- logger.error(f"Error getting available search engines from factory: {e}")-- # Use hardcoded defaults from search_engines.toml- defaults = {- "wikipedia": "Wikipedia",- "arxiv": "ArXiv Papers",- "pubmed": "PubMed Medical",- "github": "GitHub Code",- "searxng": "SearXNG (Self-hosted)",- "serpapi": "SerpAPI (Google)",- "google_pse": "Google PSE",- "auto": "Auto-select",+ # Format as options for dropdown+ engine_options = [+ {+ "value": key,+ "label": engines_dict.get(key, {}).get("display_name", key),}+ for key in engines_dict.keys()+ ]- engine_options = [- {"value": key, "label": value} for key, value in defaults.items()- ]+ return jsonify({"engines": engines_dict, "engine_options": engine_options})- return jsonify({"engines": defaults, "engine_options": engine_options})except Exception as e:logger.error(f"Error getting available search engines: {e}")return jsonify({"error": str(e)}), 500diff --git a/src/local_deep_research/web/static/js/components/settings.js b/src/local_deep_research/web/static/js/components/settings.jsindex d2177cfae4..5dfe94d02a 100644--- a/src/local_deep_research/web/static/js/components/settings.js+++ b/src/local_deep_research/web/static/js/components/settings.js@@ -1152,6 +1152,11 @@return false;}+ // Filter out settings that are not marked as visible.+ if (!setting.visible) {+ return false;+ }+// If we're on a specific tab, only show settings for that tabif (tab !== 'all') {// Only show settings in tab-specific lists for that tabdiff --git a/src/local_deep_research/web_search_engines/search_engine_factory.py b/src/local_deep_research/web_search_engines/search_engine_factory.pyindex 34445f1829..12663695ed 100644--- a/src/local_deep_research/web_search_engines/search_engine_factory.py+++ b/src/local_deep_research/web_search_engines/search_engine_factory.py@@ -2,11 +2,11 @@ import importlibimport inspectimport loggingimport os-from typing import Any, Dict, List, Optional, Union+from typing import Any, Dict, Optionalfrom ..utilities.db_utils import get_db_settingfrom .search_engine_base import BaseSearchEngine-from .search_engines_config import DEFAULT_SEARCH_ENGINE, SEARCH_ENGINES+from .search_engines_config import default_search_engine, search_config# Setup logginglogging.basicConfig(level=logging.INFO)@@ -28,14 +28,15 @@ def create_search_engine(Initialized search engine instance or None if creation failed"""# If engine name not found, use default- if engine_name not in SEARCH_ENGINES:+ if engine_name not in search_config():logger.warning(- f"Search engine '{engine_name}' not found, using default: {DEFAULT_SEARCH_ENGINE}"+ f"Search engine '{engine_name}' not found, using default: "+ f"{default_search_engine()}")- engine_name = DEFAULT_SEARCH_ENGINE+ engine_name = default_search_engine()# Get engine configuration- engine_config = SEARCH_ENGINES[engine_name]+ engine_config = search_config()[engine_name]from ..config.config_files import settings# Set default max_results from config if not provided in kwargs@@ -139,7 +140,7 @@ def _create_full_search_wrapper() -> Optional[BaseSearchEngine]:"""Create a full search wrapper for the base engine if supported"""try:- engine_config = SEARCH_ENGINES[engine_name]+ engine_config = search_config()[engine_name]# Get full search class detailsmodule_path = engine_config.get("full_search_module")@@ -232,47 +233,6 @@ def _create_full_search_wrapper(return base_engine-def get_available_engines(- include_api_key_services: bool = True,-) -> Union[Dict[str, str], List[str]]:- """- Get all available search engines from the configuration.-- Args:- include_api_key_services: Whether to include engines that require API keys-- Returns:- Dictionary of engine names mapped to descriptions, or a list of engine names- """- try:- # Get engines from SEARCH_ENGINES dict- available_engines = {}-- for name, config in SEARCH_ENGINES.items():- # Skip hidden engines (those that start with _)- if name.startswith("_"):- continue-- # Skip engines that require API keys if requested- if not include_api_key_services and config.get("requires_api_key", False):- continue-- # Add to available engines with display name- strengths = config.get("strengths", [])- description = name.replace("_", " ").title()-- if strengths and len(strengths) > 0:- description += f" - {strengths[0]}"-- available_engines[name] = description-- return available_engines- except Exception as e:- logger.error(f"Error getting available engines: {e}")- # Fall back to list of engines directly from keys- return list(SEARCH_ENGINES.keys())--def get_search(search_tool: str,llm_instance,diff --git a/src/local_deep_research/web_search_engines/search_engines_config.py b/src/local_deep_research/web_search_engines/search_engines_config.pyindex 4c1de36307..2b0e6e02ac 100644--- a/src/local_deep_research/web_search_engines/search_engines_config.py+++ b/src/local_deep_research/web_search_engines/search_engines_config.py@@ -4,75 +4,87 @@ Loads search engine definitions from the user's configuration."""import logging-import os+from functools import cache+from typing import Any, Dict-import toml--from ..config.config_files import CONFIG_DIR, LOCAL_COLLECTIONS_FILE+from ..utilities.db_utils import get_db_settinglogger = logging.getLogger(__name__)-# Get search engines configuration directly from TOML file-SEARCH_ENGINES = {}-DEFAULT_SEARCH_ENGINE = "wikipedia" # Default fallback if not specified in config--# Path to the search engines configuration file-SEARCH_ENGINES_FILE = CONFIG_DIR / "search_engines.toml"--# Load directly from TOML file-if os.path.exists(SEARCH_ENGINES_FILE):- try:- # Load the TOML file directly- config_data = toml.load(SEARCH_ENGINES_FILE)-- # Extract search engine definitions- for key, value in config_data.items():- if key == "DEFAULT_SEARCH_ENGINE":- DEFAULT_SEARCH_ENGINE = value- elif isinstance(value, dict):- SEARCH_ENGINES[key] = value-- logger.info(- f"Loaded {len(SEARCH_ENGINES)} search engines from configuration file"- )- logger.info(f"\n {', '.join(sorted(SEARCH_ENGINES.keys()))} \n")- except Exception as e:- logger.error(f"Error loading search engines from TOML file: {e}")-else:- logger.warning(- f"Search engines configuration file not found: {SEARCH_ENGINES_FILE}"- )--# Add alias for 'auto' if it exists-if "auto" in SEARCH_ENGINES and "meta" not in SEARCH_ENGINES:- SEARCH_ENGINES["meta"] = SEARCH_ENGINES["auto"]--# Register local document collections--if os.path.exists(LOCAL_COLLECTIONS_FILE):- try:- local_collections_data = toml.load(LOCAL_COLLECTIONS_FILE)-- for collection, config in local_collections_data.items():- # Create a new dictionary with required search engine fields- engine_config = {- "module_path": "local_deep_research.web_search_engines.engines.search_engine_local",- "class_name": "LocalSearchEngine",- "default_params": config,- "requires_llm": True,- }-- # Copy these specific fields to the top level if they exist- for field in ["strengths", "weaknesses", "reliability", "description"]:- if field in config:- engine_config[field] = config[field]-- SEARCH_ENGINES[collection] = engine_config-- logger.info("Registered local document collections as search engines")- except Exception as e:- logger.error(f"Error loading local collections from TOML file: {e}")-# Ensure the meta search engine is still available at the end if it exists-if "auto" in SEARCH_ENGINES:- meta_config = SEARCH_ENGINES["auto"]- SEARCH_ENGINES["auto"] = meta_config++def _extract_per_engine_config(raw_config: Dict[str, Any]) -> Dict[str, Dict[str, Any]]:+ """+ Converts the "flat" configuration loaded from the settings database into+ individual settings dictionaries for each engine.++ Args:+ raw_config: The raw "flat" configuration.++ Returns:+ Configuration dictionaries indexed by engine name.++ """+ engine_config = {}+ for key, value in raw_config.items():+ engine_name = key.split(".")[0]+ setting_name = ".".join(key.split(".")[1:])+ engine_config.setdefault(engine_name, {})[setting_name] = value++ return engine_config+++@cache+def search_config() -> Dict[str, Any]:+ """+ Returns:+ The search engine configuration loaded from the database.++ """+ # Extract search engine definitions+ config_data = get_db_setting("search.engine.web", {})+ search_engines = _extract_per_engine_config(config_data)++ logger.info(f"Loaded {len(search_engines)} search engines from configuration file")+ logger.info(f"\n {', '.join(sorted(search_engines.keys()))} \n")++ # Add alias for 'auto' if it exists+ if "auto" in search_engines and "meta" not in search_engines:+ search_engines["meta"] = search_engines["auto"]++ # Register local document collections+ local_collections_data = get_db_setting("search.engine.local", {})+ local_collections_data = _extract_per_engine_config(local_collections_data)++ for collection, config in local_collections_data.items():+ # Create a new dictionary with required search engine fields+ engine_config = {+ "module_path": "local_deep_research.web_search_engines.engines.search_engine_local",+ "class_name": "LocalSearchEngine",+ "default_params": config,+ "requires_llm": True,+ }++ # Copy these specific fields to the top level if they exist+ for field in ["strengths", "weaknesses", "reliability", "description"]:+ if field in config:+ engine_config[field] = config[field]++ search_engines[collection] = engine_config++ logger.info("Registered local document collections as search engines")+ # Ensure the meta search engine is still available at the end if it exists+ if "auto" in search_engines:+ meta_config = search_engines["auto"]+ search_engines["auto"] = meta_config++ return search_engines+++@cache+def default_search_engine() -> str:+ """+ Returns:+ The configured default search engine.++ """+ return get_db_setting("search.engine.DEFAULT_SEARCH_ENGINE", "wikipedia")