~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
fix: improve settings descriptions — fix wrong values, mark deprecated, clarify behavior (#2176)
LearningCircuit78bd4bd95102
diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.jsonindex 7547cee142..dc827291e7 100644--- a/src/local_deep_research/defaults/default_settings.json+++ b/src/local_deep_research/defaults/default_settings.json@@ -15,7 +15,7 @@},"app.lock_settings": {"category": "app_interface",- "description": "If true, disables editing for all settings",+ "description": "When enabled, prevents any modifications to settings through the UI. Useful for locking configuration in production environments. Must be changed directly in the database to re-enable editing.","editable": false,"max_value": null,"min_value": null,@@ -29,7 +29,7 @@},"app.enable_notifications": {"category": "app_interface",- "description": "Enable browser notifications for research events",+ "description": "Enable browser push notifications to alert you when research completes or encounters errors. Requires browser permission to display notifications.","editable": true,"max_value": null,"min_value": null,@@ -147,7 +147,7 @@},"app.queue_mode": {"category": "app_interface",- "description": "Queue processing mode: 'direct' for immediate execution, 'queue' for background processing",+ "description": "How new research requests are handled. 'Direct' starts research immediately if a concurrent slot is available. 'Queue' always adds to a background queue for sequential processing in order.","editable": true,"env_var": "LDR_QUEUE_MODE","max_value": null,@@ -171,7 +171,7 @@},"app.host": {"category": "app_interface",- "description": "Host address to bind the web server",+ "description": "IP address or hostname for the web server to bind to. Use '0.0.0.0' to accept connections from any network interface, '127.0.0.1' for localhost only, or a specific IP for targeted access. Requires server restart.","editable": true,"max_value": null,"min_value": null,@@ -185,7 +185,7 @@},"app.port": {"category": "app_interface",- "description": "Port for the web server",+ "description": "TCP port for the web server (1-65535). Requires server restart to take effect.","editable": true,"max_value": 65535.0,"min_value": 1.0,@@ -249,7 +249,7 @@},"app.web_interface": {"category": "app_interface",- "description": "Enable the web interface",+ "description": "Enable the web interface for the application. When disabled, only CLI and API access is available. Requires server restart to take effect.","editable": true,"max_value": null,"min_value": null,@@ -361,7 +361,7 @@},"llm.context_window_unrestricted": {"category": "llm_parameters",- "description": "Let cloud providers automatically handle context sizing (recommended). Uncheck to set a specific limit.",+ "description": "Let cloud provider APIs manage their own token limits without a hard cap (recommended). Uncheck to enforce a specific limit via the Context Window Size setting.","editable": true,"max_value": null,"min_value": null,@@ -389,7 +389,7 @@},"llm.local_context_window_size": {"category": "llm_parameters",- "description": "Context window size in tokens for local LLMs (Ollama, LlamaCpp). Smaller values prevent memory issues.",+ "description": "Context window size in tokens for local LLMs (Ollama, LlamaCpp, LM Studio). Default is conservative (4096 tokens). Increase if your model and hardware support larger contexts.","editable": true,"max_value": 131072.0,"min_value": 512.0,@@ -603,37 +603,9 @@"value": "","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",+ "description": "Number of web searches to perform per report section. Higher values increase research depth for each section but also increase search engine queries and processing time. Default is 2.","editable": true,"max_value": 5.0,"min_value": 1.0,@@ -647,7 +619,7 @@},"report.citation_format": {"category": "report_parameters",- "description": "Citation format style for reports",+ "description": "Citation formatting style for reports. Options include numbered hyperlinks [1], domain-based hyperlinks [arxiv.org], smart domain numbering [arxiv.org-1], and plain numbered references without links.","editable": true,"max_value": null,"min_value": null,@@ -682,7 +654,7 @@},"report.export_formats": {"category": "report_parameters",- "description": "Available export formats for reports",+ "description": "Available export format options displayed in the user interface. Supported formats include Markdown (.md), LaTeX (.tex), Quarto (.qmd), and RIS bibliographic format.","editable": true,"max_value": null,"min_value": null,@@ -714,7 +686,7 @@},"report.enable_file_backup": {"category": "report_parameters",- "description": "Also save reports to file system for external access (reports are always stored in database)",+ "description": "Also save reports as files on disk for external access (reports are always stored in the database regardless). Enable this if you need to access reports from outside the web interface.","editable": true,"max_value": null,"min_value": null,@@ -728,7 +700,7 @@},"report.max_context_sections": {"category": "report_parameters",- "description": "Number of previous sections to include as context when generating new sections (helps reduce repetition in detailed reports)",+ "description": "Number of previously generated report sections to include as context when writing new sections. Helps the LLM avoid repeating content. Higher values increase context size but may exceed smaller model limits. Default is 3.","editable": true,"max_value": 10,"min_value": 1,@@ -742,7 +714,7 @@},"report.max_context_chars": {"category": "report_parameters",- "description": "Maximum characters for context when generating sections (lower values are safer for smaller local models)",+ "description": "Maximum character limit for previous section context when generating report sections. If accumulated context exceeds this, it is truncated at sentence boundaries. Lower values are safer for smaller local models. Default is 4000.","editable": true,"max_value": 50000,"min_value": 1000,@@ -756,7 +728,7 @@},"search.iterations": {"category": null,- "description": "Maximum number of sequential search cycles to perform. Each iteration generates new follow-up questions based on previous results to progressively expand and refine the research.",+ "description": "Number of search-and-refine cycles to run. Each iteration generates follow-up questions based on previous results to progressively deepen the research. More iterations yield better coverage but increase search and LLM API usage.","editable": true,"max_value": null,"min_value": 1,@@ -798,7 +770,7 @@},"search.final_max_results": {"category": "search_parameters",- "description": "Maximum unique sources to include in the final research report after cross-engine deduplication and filtering.",+ "description": "Maximum unique sources to include in the final research output. Applied once after all search iterations complete, deduplicating and filtering across all accumulated results.","editable": true,"max_value": 200.0,"min_value": 1,@@ -854,7 +826,7 @@},"focused_iteration.adaptive_questions": {"category": "focused_iteration",- "description": "Enables intelligent adaptation of search queries based on previous results. 1=ON: If 3+ recent searches return 0 results, the LLM is warned that queries are 'too narrow'. 0=OFF: Stable main-branch behavior.",+ "description": "When enabled (1), the system monitors recent search success and warns the LLM to broaden queries if 3+ searches in a recent window returned no results. When disabled (0), queries are generated without feedback from previous result counts.","editable": true,"max_value": 1,"min_value": 0,@@ -868,7 +840,7 @@},"focused_iteration.knowledge_summary_limit": {"category": "focused_iteration",- "description": "Controls how many previous search results the LLM sees when generating follow-up questions. Lower values (e.g., 10) reduce context size and focus the LLM on top results. Set to 0 for unlimited (LLM sees all results). NOTE: This only affects question generation - the final answer synthesis always sees ALL results.",+ "description": "Limits the number of top search results included in the knowledge summary shown to the LLM during question generation. Set to 10 to show only the top 10 results, reducing token usage. Set to 0 for unlimited. Note: This only affects question generation prompts — final answer synthesis always uses all results.","editable": true,"max_value": 100,"min_value": 0,@@ -896,7 +868,7 @@},"focused_iteration.question_generator": {"category": "focused_iteration",- "description": "Algorithm for generating follow-up search queries. 'browsecomp': Extracts entities (names, dates, locations) from the query and systematically combines them - more structured and predictable. 'flexible': Gives the LLM more freedom to explore different search strategies - less rigid but may be less consistent.",+ "description": "Algorithm for generating follow-up search queries. 'browsecomp' (default): Systematically extracts and combines entities (names, dates, locations) for predictable, focused searches. 'flexible': Allows the LLM more freedom to explore diverse search strategies — less rigid but may be less consistent.","editable": true,"max_value": null,"min_value": null,@@ -913,7 +885,7 @@},"focused_iteration.prompt_knowledge_truncate": {"category": "focused_iteration",- "description": "Maximum characters of knowledge context to include in the LLM prompt when generating follow-up questions. This truncates the 'Current Knowledge Summary' section in the prompt. Set to 0 for unlimited. Lower values reduce token usage but may miss relevant context.",+ "description": "Maximum characters of accumulated knowledge to include in the LLM prompt for follow-up question generation. Applied after 'Results Shown for Question Generation' selects the top N results — this further truncates that combined text to a character limit. Set to 0 for unlimited.","editable": true,"max_value": 10000,"min_value": 0,@@ -927,7 +899,7 @@},"focused_iteration.previous_searches_limit": {"category": "focused_iteration",- "description": "Maximum number of previous searches to show the LLM when generating follow-up questions. This helps the LLM avoid duplicate searches. Set to 0 for unlimited (show all previous searches). Higher values provide more context but use more tokens.",+ "description": "Maximum number of recent search iterations to show the LLM when generating follow-up questions. Helps the LLM avoid duplicate queries and reduces token usage. Set to 0 for unlimited (show all previous searches). When active, also caps displayed queries per iteration to 3.","editable": true,"max_value": 100,"min_value": 0,@@ -1072,7 +1044,7 @@},"search.skip_relevance_filter": {"category": "search_parameters",- "description": "Global override to skip LLM relevance filtering for ALL search engines. When false, filtering is auto-enabled for academic engines (arXiv, Semantic Scholar, etc.) that use keyword matching, and auto-disabled for generic engines (Google, Brave, etc.) that already use semantic search.",+ "description": "When ON, LLM relevance filtering is disabled for all search engines. When OFF, each engine decides automatically: academic engines (arXiv, PubMed) enable filtering since they use keyword matching, while generic engines (Google, Brave) skip it since they already rank by relevance.","editable": true,"max_value": null,"min_value": null,@@ -1114,7 +1086,7 @@},"search.journal_reputation.exclude_non_published": {"category": "journal_quality_filter_parameters",- "description": "When enabled, excludes results without a formal journal publication reference. Use this to require only peer-reviewed academic sources.",+ "description": "When enabled, excludes results without a formal journal publication reference. This ensures only sources with documented journal publications are included in analysis.","editable": true,"max_value": null,"min_value": null,@@ -1204,7 +1176,7 @@},"search.tool": {"category": "search_general",- "description": "Web search engine to use for research",+ "description": "Search engine to use for research queries. 'Auto' intelligently selects the best engine for each query type. Each engine may require its own API key or service to be configured separately.","editable": true,"max_value": null,"min_value": null,@@ -1916,10 +1888,14 @@"max_value": null,"min_value": null,"name": "Knowledge Accumulation",- "options": null,+ "options": [+ {"label": "Per Iteration", "value": "ITERATION"},+ {"label": "Per Question", "value": "QUESTION"},+ {"label": "No Knowledge Accumulation", "value": "NO_KNOWLEDGE"}+ ],"step": null,"type": "APP",- "ui_element": "text",+ "ui_element": "select","value": "ITERATION","visible": true},@@ -1937,20 +1913,6 @@"value": 2000000,"visible": false},- "general.output_dir": {- "category": null,- "description": "Directory where research report files are saved. Relative paths are relative to the application root.",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Output Dir",- "options": null,- "step": null,- "type": "APP",- "ui_element": "text",- "value": "research_outputs",- "visible": true- },"general.output_instructions": {"category": "general","description": "Customize how research outputs are formatted: language, tone, style, formatting preferences, audience level, etc. Examples: 'Respond in Spanish with formal tone' | 'Use simple language for beginners' | 'Be concise with bullet points'. Leave empty for default English output.",@@ -4306,7 +4268,7 @@},"app.warnings.dismiss_high_context": {"category": "warnings",- "description": "Dismiss warnings about high context window sizes that may cause memory issues",+ "description": "Permanently hide the warning shown when your local LLM context window is set above 8,192 tokens, which may cause memory issues on some hardware.","editable": true,"max_value": null,"min_value": null,@@ -4320,7 +4282,7 @@},"app.warnings.dismiss_model_mismatch": {"category": "warnings",- "description": "Dismiss warnings about context size vs model size mismatches",+ "description": "Permanently hide the warning shown when using a large model (70B+ parameters) with a local provider and high context window, which may exceed available GPU memory.","editable": true,"max_value": null,"min_value": null,@@ -4362,7 +4324,7 @@},"rate_limiting.enabled": {"category": "rate_limiting",- "description": "Enable adaptive rate limiting system that learns optimal wait times for each search engine",+ "description": "Enable adaptive rate limiting that learns optimal wait times for each search engine to avoid hitting API rate limits. When disabled, requests are sent with minimal delay (0.1s), which may trigger rate limit errors from some APIs.","editable": true,"max_value": null,"min_value": null,@@ -4376,7 +4338,7 @@},"rate_limiting.exploration_rate": {"category": "rate_limiting",- "description": "Percentage of attempts that will explore faster rates to discover improvements (0.0-1.0)",+ "description": "Fraction of requests that test shorter wait times to check if the API allows faster access (0.0-1.0). Higher values adapt faster to relaxed limits but risk more rate limit errors.","editable": true,"max_value": 1.0,"min_value": 0.0,@@ -4390,7 +4352,7 @@},"rate_limiting.learning_rate": {"category": "rate_limiting",- "description": "How quickly to adapt to new rate limit information (higher = faster adaptation)",+ "description": "How much weight to give new timing data vs. existing estimates (0.0-1.0). Higher values react faster to changes in API rate limits but produce less stable wait times.","editable": true,"max_value": 1.0,"min_value": 0.05,@@ -4404,7 +4366,7 @@},"rate_limiting.memory_window": {"category": "rate_limiting",- "description": "Number of recent attempts to keep in memory for learning",+ "description": "Number of recent requests to remember per search engine for calculating optimal wait times. At least 3 successful requests are needed before wait time estimates start updating.","editable": true,"max_value": 1000,"min_value": 10,@@ -4418,7 +4380,7 @@},"rate_limiting.profile": {"category": "rate_limiting",- "description": "Rate limiting aggressiveness profile",+ "description": "Overall rate limiting behavior. 'Conservative' uses longer waits and adapts slowly (fewer errors). 'Balanced' is the default. 'Aggressive' uses shorter waits and adapts quickly (faster but riskier).","editable": true,"max_value": null,"min_value": null,@@ -4445,7 +4407,7 @@},"rate_limiting.decay_per_day": {"category": "rate_limiting",- "description": "Confidence decay factor per day for old rate limit estimates (0.5-0.99, lower = faster decay)",+ "description": "How much to trust old rate limit data as it ages (0.5-0.99). At 0.95, data retains 95% reliability per day. Lower values discard old data faster, forcing the system to re-learn optimal wait times.","editable": true,"max_value": 0.99,"min_value": 0.5,@@ -4459,7 +4421,7 @@},"rate_limiting.llm_enabled": {"category": "rate_limiting",- "description": "Enable adaptive rate limiting for LLM API calls (e.g., for free tier APIs with request limits)",+ "description": "Enable adaptive rate limiting for LLM API calls, separate from search engine rate limiting. Useful for free-tier or rate-limited LLM APIs that impose request quotas.","editable": true,"max_value": null,"min_value": null,@@ -4473,7 +4435,7 @@},"benchmark.evaluation.provider": {"category": "benchmark",- "description": "Provider for benchmark evaluation model",+ "description": "LLM provider used to grade benchmark answers by comparing research outputs against reference answers. This is separate from the research LLM being tested. Options: openai_endpoint (recommended, supports OpenRouter), openai, anthropic, ollama.","editable": true,"max_value": null,"min_value": null,@@ -4504,7 +4466,7 @@},"benchmark.evaluation.model": {"category": "benchmark",- "description": "Model for evaluating benchmark results",+ "description": "LLM model used as a judge to score benchmark answers against reference answers (e.g., 'anthropic/claude-3.7-sonnet' for OpenRouter, 'gpt-4o' for OpenAI). Must be compatible with the selected evaluation provider.","editable": true,"max_value": null,"min_value": null,@@ -4532,7 +4494,7 @@},"benchmark.evaluation.temperature": {"category": "benchmark",- "description": "Temperature for evaluation (0 recommended for consistency)",+ "description": "Sampling temperature for the benchmark judge model (0.0-1.0). Use 0 for deterministic, reproducible grading results. Higher values introduce randomness in evaluation scores.","editable": true,"max_value": 1.0,"min_value": 0.0,@@ -4546,7 +4508,7 @@},"news.feed.default_limit": {"category": "news",- "description": "Default number of news items to show in feed",+ "description": "Default number of news items returned per feed page. Applied when user does not specify a limit in the request. Also used as the default limit for subscription history.","editable": true,"max_value": 100,"min_value": 5,@@ -4602,7 +4564,7 @@},"news.subscription.refresh_minutes": {"category": "news",- "description": "Default subscription refresh interval in minutes",+ "description": "Default interval (in minutes) for how often new subscriptions check for updates. Users can override this per subscription. Default is 240 minutes (4 hours). Range: 60-2880 minutes.","editable": true,"max_value": 2880,"min_value": 60,@@ -4709,7 +4671,7 @@},"news.scheduler.enabled": {"category": "news_scheduler",- "description": "Enable automatic news subscription updates for active users",+ "description": "Enable the background scheduler that automatically runs news subscriptions on their configured intervals. When disabled, no automatic subscription processing occurs — subscriptions must be refreshed manually.","editable": true,"max_value": null,"min_value": null,@@ -4737,7 +4699,7 @@},"news.scheduler.retention_hours": {"category": "news_scheduler",- "description": "Hours to keep user credentials in memory after last activity",+ "description": "Hours to keep a user's session active in the scheduler after their last interaction. After this period, the scheduler stops processing that user's subscriptions until they log in again. Range: 1-168 hours.","editable": true,"max_value": 168,"min_value": 1,@@ -4751,7 +4713,7 @@},"news.scheduler.cleanup_interval_hours": {"category": "news_scheduler",- "description": "How often to run cleanup job for inactive users",+ "description": "How often (in hours) the scheduler checks for and removes expired user sessions. Shorter intervals reduce memory usage but add slight overhead. Range: 0.25-24 hours.","editable": true,"max_value": 24,"min_value": 0.25,@@ -4765,7 +4727,7 @@},"news.scheduler.max_jitter_seconds": {"category": "news_scheduler",- "description": "Maximum random delay added to subscription checks to spread load",+ "description": "Maximum random delay (in seconds) added to each subscription's next refresh time. Prevents all subscriptions from running simultaneously, reducing server load spikes. Range: 0-3600 seconds.","editable": true,"max_value": 3600,"min_value": 0,@@ -4779,7 +4741,7 @@},"news.scheduler.max_concurrent_jobs": {"category": "news_scheduler",- "description": "Maximum concurrent subscription checks across all users",+ "description": "Maximum number of subscription refresh tasks that can run simultaneously across all users. Lower values reduce server load; higher values process subscriptions faster. Range: 1-50.","editable": true,"max_value": 50,"min_value": 1,@@ -4793,7 +4755,7 @@},"news.scheduler.batch_size": {"category": "news_scheduler",- "description": "Number of subscriptions to process in each batch",+ "description": "Number of due subscriptions to pick up and schedule in each check cycle. Larger batches are more efficient but use more memory. Range: 1-20.","editable": true,"max_value": 20,"min_value": 1,@@ -4807,7 +4769,7 @@},"news.scheduler.activity_check_interval": {"category": "news_scheduler",- "description": "How often to check for due subscriptions (minutes)",+ "description": "How often (in minutes) the scheduler scans for subscriptions that are due to run. More frequent checks ensure timely updates but increase CPU usage. Range: 1-60 minutes.","editable": true,"max_value": 60,"min_value": 1,@@ -5015,37 +4977,9 @@"value": false,"visible": true},- "research_library.enable_pdf_storage": {- "category": "research_library",- "description": "\u26a0\ufe0f PRIVACY WARNING: PDFs will be stored unencrypted on disk, exposing your research interests to anyone with filesystem access. Only enable if you need PDF files for external tools.",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Enable PDF Storage",- "options": null,- "step": null,- "type": "APP",- "ui_element": "checkbox",- "value": false,- "visible": true- },- "research_library.enable_txt_storage": {- "category": "research_library",- "description": "\u26a0\ufe0f PRIVACY WARNING: Text files will be stored unencrypted on disk for RAG/ChromaDB integration. This exposes document contents to anyone with filesystem access.",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Enable Text File Storage",- "options": null,- "step": null,- "type": "APP",- "ui_element": "checkbox",- "value": false,- "visible": true- },"research_library.auto_index_enabled": {"category": "research_library",- "description": "Automatically index documents for RAG search when they are added to collections (via upload or download). Indexing happens in the background without blocking uploads.",+ "description": "Automatically index documents for RAG search when they are added to collections (via upload or download). Indexing runs in the background without blocking uploads. Disable to defer indexing and improve upload speed for large batches.","editable": true,"max_value": null,"min_value": null,@@ -5059,7 +4993,7 @@},"notifications.enabled": {"category": "notifications",- "description": "Enable external notifications (email, messaging, etc.)",+ "description": "Enable external notifications for research events (email, Discord, Slack, etc.). When disabled, no notifications are sent regardless of individual event settings below. Requires service URL to be configured.","editable": true,"max_value": null,"min_value": null,@@ -5087,7 +5021,7 @@},"notifications.rate_limit_per_hour": {"category": "notifications",- "description": "Maximum number of notifications per hour (prevents spam)",+ "description": "Maximum number of notifications per hour per user. Prevents notification spam during burst activity. Default of 10 allows important notifications through while limiting noise.","editable": true,"max_value": 100,"min_value": 1,@@ -5101,7 +5035,7 @@},"notifications.rate_limit_per_day": {"category": "notifications",- "description": "Maximum number of notifications per day (prevents spam)",+ "description": "Maximum number of notifications per day per user. Daily cap prevents notification fatigue. Default of 50 balances staying informed with avoiding excessive alerts.","editable": true,"max_value": 500,"min_value": 1,@@ -5115,7 +5049,7 @@},"notifications.on_research_completed": {"category": "notifications",- "description": "Send notification when research completes",+ "description": "Send notification when a research task completes successfully. This is the primary completion alert for tracking long-running research.","editable": true,"max_value": null,"min_value": null,@@ -5129,7 +5063,7 @@},"notifications.on_research_failed": {"category": "notifications",- "description": "Send notification when research fails",+ "description": "Send notification when a research task fails or encounters an error. Enables rapid problem detection without monitoring the web interface.","editable": true,"max_value": null,"min_value": null,@@ -5143,7 +5077,7 @@},"notifications.on_subscription_update": {"category": "notifications",- "description": "Send notification when subscriptions have new content",+ "description": "Send notification when news subscriptions detect new content matching your configured topics.","editable": true,"max_value": null,"min_value": null,@@ -5157,7 +5091,7 @@},"notifications.on_subscription_error": {"category": "notifications",- "description": "Send notification when subscription encounters an error",+ "description": "Send notification when a subscription refresh fails or encounters errors. Helps identify broken subscriptions that need attention.","editable": true,"max_value": null,"min_value": null,@@ -5171,7 +5105,7 @@},"notifications.on_research_queued": {"category": "notifications",- "description": "Send notification when research is added to queue",+ "description": "Send notification when research is added to the processing queue. Useful in queue mode to confirm your request was accepted and is waiting to be processed.","editable": true,"max_value": null,"min_value": null,@@ -5185,7 +5119,7 @@},"notifications.on_api_quota_warning": {"category": "notifications",- "description": "Send notification when API quota/rate limits are exceeded",+ "description": "Send notification when API quota or rate limits are approaching or exceeded. Helps prevent service interruptions from unexpected API usage limits.","editable": true,"max_value": null,"min_value": null,@@ -5199,7 +5133,7 @@},"notifications.on_auth_issue": {"category": "notifications",- "description": "Send notification when authentication fails for API services",+ "description": "Send notification when authentication fails for external API services (e.g., invalid or expired API keys). Alerts you to broken integrations that need attention.","editable": true,"max_value": null,"min_value": null,diff --git a/src/local_deep_research/defaults/research_library/library_settings.json b/src/local_deep_research/defaults/research_library/library_settings.jsonindex dd661783a0..e99810a519 100644--- a/src/local_deep_research/defaults/research_library/library_settings.json+++ b/src/local_deep_research/defaults/research_library/library_settings.json@@ -57,21 +57,6 @@"visible": true,"env_var": "RESEARCH_LIBRARY_PDF_STORAGE_MODE"},- "research_library.enable_pdf_storage": {- "category": "research_library",- "description": "DEPRECATED: Use pdf_storage_mode instead. Kept for backward compatibility.",- "editable": false,- "max_value": null,- "min_value": null,- "name": "Enable PDF Storage (Legacy)",- "options": null,- "step": null,- "type": "APP",- "ui_element": "checkbox",- "value": false,- "visible": false,- "env_var": "RESEARCH_LIBRARY_ENABLE_PDF_STORAGE"- },"rag.indexing_batch_size": {"category": "research_library","description": "Number of documents to process in parallel during RAG indexing. Higher values are faster but use more memory.",diff --git a/src/local_deep_research/web/routes/settings_routes.py b/src/local_deep_research/web/routes/settings_routes.pyindex 285e4575e2..ac72aa8658 100644--- a/src/local_deep_research/web/routes/settings_routes.py+++ b/src/local_deep_research/web/routes/settings_routes.py@@ -1879,8 +1879,6 @@ def fix_corrupted_settings():# Track fixed and removed settingsfixed_settings = []removed_duplicate_settings = []- fixed_scoping_issues = []-# First, find and remove duplicate settings with the same key# This happens because of errors in settings import/exportfrom sqlalchemy import func as sql_func@@ -1909,152 +1907,6 @@ def fix_corrupted_settings():db_session.delete(setting)removed_duplicate_settings.append(key)- # Fix scoping issues - remove app.* settings that should be in other categories- # Report settings- for key in [- "app.enable_fact_checking",- "app.knowledge_accumulation",- "app.knowledge_accumulation_context_limit",- "app.output_dir",- ]:- setting = (- db_session.query(Setting).filter(Setting.key == key).first()- )- if setting:- # Move to proper category if not already there- proper_key = key.replace("app.", "report.")- existing_proper = (- db_session.query(Setting)- .filter(Setting.key == proper_key)- .first()- )-- if not existing_proper:- # Create proper setting- new_setting = Setting(- key=proper_key,- value=setting.value,- type=SettingType.REPORT,- name=setting.name,- description=setting.description,- category=(- setting.category.replace("app", "report")- if setting.category- else "report_parameters"- ),- ui_element=setting.ui_element,- options=setting.options,- min_value=setting.min_value,- max_value=setting.max_value,- step=setting.step,- visible=setting.visible,- editable=setting.editable,- )- db_session.add(new_setting)-- # Delete the app one- db_session.delete(setting)- fixed_scoping_issues.append(key)-- # Search settings- for key in [- "app.questions_per_iteration",- "app.search_engine",- "app.iterations",- "app.max_results",- "app.region",- "app.safe_search",- "app.search_language",- "app.snippets_only",- ]:- setting = (- db_session.query(Setting).filter(Setting.key == key).first()- )- if setting:- # Move to proper category if not already there- proper_key = key.replace("app.", "search.")- existing_proper = (- db_session.query(Setting)- .filter(Setting.key == proper_key)- .first()- )-- if not existing_proper:- # Create proper setting- new_setting = Setting(- key=proper_key,- value=setting.value,- type=SettingType.SEARCH,- name=setting.name,- description=setting.description,- category=(- setting.category.replace("app", "search")- if setting.category- else "search_parameters"- ),- ui_element=setting.ui_element,- options=setting.options,- min_value=setting.min_value,- max_value=setting.max_value,- step=setting.step,- visible=setting.visible,- editable=setting.editable,- )- db_session.add(new_setting)-- # Delete the app one- db_session.delete(setting)- fixed_scoping_issues.append(key)-- # LLM settings- for key in [- "app.model",- "app.provider",- "app.temperature",- "app.max_tokens",- "app.openai_endpoint_url",- "app.lmstudio_url",- "app.llamacpp_model_path",- ]:- setting = (- db_session.query(Setting).filter(Setting.key == key).first()- )- if setting:- # Move to proper category if not already there- proper_key = key.replace("app.", "llm.")- existing_proper = (- db_session.query(Setting)- .filter(Setting.key == proper_key)- .first()- )-- if not existing_proper:- # Create proper setting- new_setting = Setting(- key=proper_key,- value=setting.value,- type=SettingType.LLM,- name=setting.name,- description=setting.description,- category=(- setting.category.replace("app", "llm")- if setting.category- else "llm_parameters"- ),- ui_element=setting.ui_element,- options=setting.options,- min_value=setting.min_value,- max_value=setting.max_value,- step=setting.step,- visible=setting.visible,- editable=setting.editable,- )- db_session.add(new_setting)-- # Delete the app one- db_session.delete(setting)- fixed_scoping_issues.append(key)-# Check for settings with corrupted valuesall_settings = db_session.query(Setting).all()for setting in all_settings:@@ -2123,11 +1975,6 @@ def fix_corrupted_settings():elif setting.key.startswith("report."):if setting.key == "report.searches_per_section":default_value = 2- elif (- setting.key == "report.enable_fact_checking"- or setting.key == "report.detailed_citations"- ):- default_value = Trueelif setting.key.startswith("app."):if (setting.key == "app.theme"@@ -2157,11 +2004,7 @@ def fix_corrupted_settings():fixed_settings.append(setting.key)# Commit changes- if (- fixed_settings- or removed_duplicate_settings- or fixed_scoping_issues- ):+ if fixed_settings or removed_duplicate_settings:db_session.commit()logger.info(f"Fixed {len(fixed_settings)} corrupted settings: {', '.join(fixed_settings)}"@@ -2170,19 +2013,14 @@ def fix_corrupted_settings():logger.info(f"Removed {len(removed_duplicate_settings)} duplicate settings")- if fixed_scoping_issues:- logger.info(- f"Fixed {len(fixed_scoping_issues)} scoping issues"- )# Return successreturn jsonify({"status": "success",- "message": f"Fixed {len(fixed_settings)} corrupted settings, removed {len(removed_duplicate_settings)} duplicates, and fixed {len(fixed_scoping_issues)} scoping issues",+ "message": f"Fixed {len(fixed_settings)} corrupted settings, removed {len(removed_duplicate_settings)} duplicates","fixed_settings": fixed_settings,"removed_duplicates": removed_duplicate_settings,- "fixed_scoping": fixed_scoping_issues,})diff --git a/src/local_deep_research/web/static/js/components/settings.js b/src/local_deep_research/web/static/js/components/settings.jsindex 7cfc8a468d..4e15690ff6 100644--- a/src/local_deep_research/web/static/js/components/settings.js+++ b/src/local_deep_research/web/static/js/components/settings.js@@ -1198,11 +1198,8 @@'snippets_only'],'report': [- 'enable_fact_checking','knowledge_accumulation',- 'knowledge_accumulation_context_limit',- 'output_dir',- 'detailed_citations'+ 'knowledge_accumulation_context_limit'],'app': ['debug',@@ -1224,7 +1221,7 @@'app': ['enable_web', 'enable_notifications', 'web_interface', 'theme', 'default_theme', 'dark_mode', 'debug', 'host', 'port', 'warnings'],'llm': ['provider', 'model', 'temperature', 'max_tokens', 'api_key', 'openai_endpoint_url', 'lmstudio_url', 'llamacpp_model_path'],'search': ['tool', 'iterations', 'questions_per_iteration', 'max_results', 'region', 'search_engine'],- 'report': ['enable_fact_checking', 'knowledge_accumulation', 'output_dir', 'detailed_citations']+ 'report': ['knowledge_accumulation']};// Group by prefix and category@@ -1241,11 +1238,6 @@return false;}- // Filter out fact checking duplicates - only keep in report tab- if (prefix !== 'report' && subKey === 'enable_fact_checking') {- return false;- }-// Filter out knowledge_accumulation duplicates - only keep in report tabif (prefix !== 'report' && (subKey === 'knowledge_accumulation' || subKey === 'knowledge_accumulation_context_limit')) {return false;diff --git a/tests/research_library/conftest.py b/tests/research_library/conftest.pyindex bbc76bfb0f..4ab99a7bcd 100644--- a/tests/research_library/conftest.py+++ b/tests/research_library/conftest.py@@ -305,7 +305,6 @@ def mock_settings_manager(mocker):mock = mocker.Mock()mock.get_setting.side_effect = lambda key, default=None: {"research_library.storage_path": "/tmp/test_library",- "research_library.enable_pdf_storage": True,"search.engine.web.semantic_scholar.api_key": None,"local_search_embedding_model": "all-MiniLM-L6-v2","local_search_embedding_provider": "sentence_transformers",diff --git a/tests/settings/golden_master_settings.json b/tests/settings/golden_master_settings.jsonindex 689d9bdf9a..9591a13c34 100644--- a/tests/settings/golden_master_settings.json+++ b/tests/settings/golden_master_settings.json@@ -43,7 +43,7 @@},"app.enable_notifications": {"category": "app_interface",- "description": "Enable browser notifications for research events",+ "description": "Enable browser push notifications to alert you when research completes or encounters errors. Requires browser permission to display notifications.","editable": true,"max_value": null,"min_value": null,@@ -85,7 +85,7 @@},"app.host": {"category": "app_interface",- "description": "Host address to bind the web server",+ "description": "IP address or hostname for the web server to bind to. Use '0.0.0.0' to accept connections from any network interface, '127.0.0.1' for localhost only, or a specific IP for targeted access. Requires server restart.","editable": true,"max_value": null,"min_value": null,@@ -99,7 +99,7 @@},"app.lock_settings": {"category": "app_interface",- "description": "If true, disables editing for all settings",+ "description": "When enabled, prevents any modifications to settings through the UI. Useful for locking configuration in production environments. Must be changed directly in the database to re-enable editing.","editable": false,"max_value": null,"min_value": null,@@ -155,7 +155,7 @@},"app.port": {"category": "app_interface",- "description": "Port for the web server",+ "description": "TCP port for the web server (1-65535). Requires server restart to take effect.","editable": true,"max_value": 65535.0,"min_value": 1.0,@@ -169,7 +169,7 @@},"app.queue_mode": {"category": "app_interface",- "description": "Queue processing mode: 'direct' for immediate execution, 'queue' for background processing",+ "description": "How new research requests are handled. 'Direct' starts research immediately if a concurrent slot is available. 'Queue' always adds to a background queue for sequential processing in order.","editable": true,"env_var": "LDR_QUEUE_MODE","max_value": null,@@ -400,7 +400,7 @@},"app.warnings.dismiss_high_context": {"category": "warnings",- "description": "Dismiss warnings about high context window sizes that may cause memory issues",+ "description": "Permanently hide the warning shown when your local LLM context window is set above 8,192 tokens, which may cause memory issues on some hardware.","editable": true,"max_value": null,"min_value": null,@@ -414,7 +414,7 @@},"app.warnings.dismiss_model_mismatch": {"category": "warnings",- "description": "Dismiss warnings about context size vs model size mismatches",+ "description": "Permanently hide the warning shown when using a large model (70B+ parameters) with a local provider and high context window, which may exceed available GPU memory.","editable": true,"max_value": null,"min_value": null,@@ -442,7 +442,7 @@},"app.web_interface": {"category": "app_interface",- "description": "Enable the web interface",+ "description": "Enable the web interface for the application. When disabled, only CLI and API access is available. Requires server restart to take effect.","editable": true,"max_value": null,"min_value": null,@@ -470,7 +470,7 @@},"benchmark.evaluation.model": {"category": "benchmark",- "description": "Model for evaluating benchmark results",+ "description": "LLM model used as a judge to score benchmark answers against reference answers (e.g., 'anthropic/claude-3.7-sonnet' for OpenRouter, 'gpt-4o' for OpenAI). Must be compatible with the selected evaluation provider.","editable": true,"max_value": null,"min_value": null,@@ -484,7 +484,7 @@},"benchmark.evaluation.provider": {"category": "benchmark",- "description": "Provider for benchmark evaluation model",+ "description": "LLM provider used to grade benchmark answers by comparing research outputs against reference answers. This is separate from the research LLM being tested. Options: openai_endpoint (recommended, supports OpenRouter), openai, anthropic, ollama.","editable": true,"max_value": null,"min_value": null,@@ -515,7 +515,7 @@},"benchmark.evaluation.temperature": {"category": "benchmark",- "description": "Temperature for evaluation (0 recommended for consistency)",+ "description": "Sampling temperature for the benchmark judge model (0.0-1.0). Use 0 for deterministic, reproducible grading results. Higher values introduce randomness in evaluation scores.","editable": true,"max_value": 1.0,"min_value": 0.0,@@ -613,7 +613,7 @@},"focused_iteration.adaptive_questions": {"category": "focused_iteration",- "description": "Enables intelligent adaptation of search queries based on previous results. 1=ON: If 3+ recent searches return 0 results, the LLM is warned that queries are 'too narrow'. 0=OFF: Stable main-branch behavior.",+ "description": "When enabled (1), the system monitors recent search success and warns the LLM to broaden queries if 3+ searches in a recent window returned no results. When disabled (0), queries are generated without feedback from previous result counts.","editable": true,"max_value": 1,"min_value": 0,@@ -627,7 +627,7 @@},"focused_iteration.knowledge_summary_limit": {"category": "focused_iteration",- "description": "Controls how many previous search results the LLM sees when generating follow-up questions. Lower values (e.g., 10) reduce context size and focus the LLM on top results. Set to 0 for unlimited (LLM sees all results). NOTE: This only affects question generation - the final answer synthesis always sees ALL results.",+ "description": "Limits the number of top search results included in the knowledge summary shown to the LLM during question generation. Set to 10 to show only the top 10 results, reducing token usage. Set to 0 for unlimited. Note: This only affects question generation prompts \u2014 final answer synthesis always uses all results.","editable": true,"max_value": 100,"min_value": 0,@@ -641,7 +641,7 @@},"focused_iteration.previous_searches_limit": {"category": "focused_iteration",- "description": "Maximum number of previous searches to show the LLM when generating follow-up questions. This helps the LLM avoid duplicate searches. Set to 0 for unlimited (show all previous searches). Higher values provide more context but use more tokens.",+ "description": "Maximum number of recent search iterations to show the LLM when generating follow-up questions. Helps the LLM avoid duplicate queries and reduces token usage. Set to 0 for unlimited (show all previous searches). When active, also caps displayed queries per iteration to 3.","editable": true,"max_value": 100,"min_value": 0,@@ -655,7 +655,7 @@},"focused_iteration.prompt_knowledge_truncate": {"category": "focused_iteration",- "description": "Maximum characters of knowledge context to include in the LLM prompt when generating follow-up questions. This truncates the 'Current Knowledge Summary' section in the prompt. Set to 0 for unlimited. Lower values reduce token usage but may miss relevant context.",+ "description": "Maximum characters of accumulated knowledge to include in the LLM prompt for follow-up question generation. Applied after 'Results Shown for Question Generation' selects the top N results \u2014 this further truncates that combined text to a character limit. Set to 0 for unlimited.","editable": true,"max_value": 10000,"min_value": 0,@@ -669,7 +669,7 @@},"focused_iteration.question_generator": {"category": "focused_iteration",- "description": "Algorithm for generating follow-up search queries. 'browsecomp': Extracts entities (names, dates, locations) from the query and systematically combines them - more structured and predictable. 'flexible': Gives the LLM more freedom to explore different search strategies - less rigid but may be less consistent.",+ "description": "Algorithm for generating follow-up search queries. 'browsecomp' (default): Systematically extracts and combines entities (names, dates, locations) for predictable, focused searches. 'flexible': Allows the LLM more freedom to explore diverse search strategies \u2014 less rigid but may be less consistent.","editable": true,"max_value": null,"min_value": null,@@ -719,10 +719,23 @@"max_value": null,"min_value": null,"name": "Knowledge Accumulation",- "options": null,+ "options": [+ {+ "label": "Per Iteration",+ "value": "ITERATION"+ },+ {+ "label": "Per Question",+ "value": "QUESTION"+ },+ {+ "label": "No Knowledge Accumulation",+ "value": "NO_KNOWLEDGE"+ }+ ],"step": null,"type": "APP",- "ui_element": "text",+ "ui_element": "select","value": "ITERATION","visible": true},@@ -740,20 +753,6 @@"value": 2000000,"visible": false},- "general.output_dir": {- "category": null,- "description": "Directory where research report files are saved. Relative paths are relative to the application root.",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Output Dir",- "options": null,- "step": null,- "type": "APP",- "ui_element": "text",- "value": "research_outputs",- "visible": true- },"general.output_instructions": {"category": "general","description": "Customize how research outputs are formatted: language, tone, style, formatting preferences, audience level, etc. Examples: 'Respond in Spanish with formal tone' | 'Use simple language for beginners' | 'Be concise with bullet points'. Leave empty for default English output.",@@ -798,7 +797,7 @@},"llm.context_window_unrestricted": {"category": "llm_parameters",- "description": "Let cloud providers automatically handle context sizing (recommended). Uncheck to set a specific limit.",+ "description": "Let cloud provider APIs manage their own token limits without a hard cap (recommended). Uncheck to enforce a specific limit via the Context Window Size setting.","editable": true,"max_value": null,"min_value": null,@@ -910,7 +909,7 @@},"llm.local_context_window_size": {"category": "llm_parameters",- "description": "Context window size in tokens for local LLMs (Ollama, LlamaCpp). Smaller values prevent memory issues.",+ "description": "Context window size in tokens for local LLMs (Ollama, LlamaCpp, LM Studio). Default is conservative (4096 tokens). Increase if your model and hardware support larger contexts.","editable": true,"max_value": 131072.0,"min_value": 512.0,@@ -1182,7 +1181,7 @@},"news.feed.default_limit": {"category": "news",- "description": "Default number of news items to show in feed",+ "description": "Default number of news items returned per feed page. Applied when user does not specify a limit in the request. Also used as the default limit for subscription history.","editable": true,"max_value": 100,"min_value": 5,@@ -1252,7 +1251,7 @@},"news.scheduler.activity_check_interval": {"category": "news_scheduler",- "description": "How often to check for due subscriptions (minutes)",+ "description": "How often (in minutes) the scheduler scans for subscriptions that are due to run. More frequent checks ensure timely updates but increase CPU usage. Range: 1-60 minutes.","editable": true,"max_value": 60,"min_value": 1,@@ -1280,7 +1279,7 @@},"news.scheduler.batch_size": {"category": "news_scheduler",- "description": "Number of subscriptions to process in each batch",+ "description": "Number of due subscriptions to pick up and schedule in each check cycle. Larger batches are more efficient but use more memory. Range: 1-20.","editable": true,"max_value": 20,"min_value": 1,@@ -1294,7 +1293,7 @@},"news.scheduler.cleanup_interval_hours": {"category": "news_scheduler",- "description": "How often to run cleanup job for inactive users",+ "description": "How often (in hours) the scheduler checks for and removes expired user sessions. Shorter intervals reduce memory usage but add slight overhead. Range: 0.25-24 hours.","editable": true,"max_value": 24,"min_value": 0.25,@@ -1308,7 +1307,7 @@},"news.scheduler.enabled": {"category": "news_scheduler",- "description": "Enable automatic news subscription updates for active users",+ "description": "Enable the background scheduler that automatically runs news subscriptions on their configured intervals. When disabled, no automatic subscription processing occurs \u2014 subscriptions must be refreshed manually.","editable": true,"max_value": null,"min_value": null,@@ -1322,7 +1321,7 @@},"news.scheduler.max_concurrent_jobs": {"category": "news_scheduler",- "description": "Maximum concurrent subscription checks across all users",+ "description": "Maximum number of subscription refresh tasks that can run simultaneously across all users. Lower values reduce server load; higher values process subscriptions faster. Range: 1-50.","editable": true,"max_value": 50,"min_value": 1,@@ -1336,7 +1335,7 @@},"news.scheduler.max_jitter_seconds": {"category": "news_scheduler",- "description": "Maximum random delay added to subscription checks to spread load",+ "description": "Maximum random delay (in seconds) added to each subscription's next refresh time. Prevents all subscriptions from running simultaneously, reducing server load spikes. Range: 0-3600 seconds.","editable": true,"max_value": 3600,"min_value": 0,@@ -1350,7 +1349,7 @@},"news.scheduler.retention_hours": {"category": "news_scheduler",- "description": "Hours to keep user credentials in memory after last activity",+ "description": "Hours to keep a user's session active in the scheduler after their last interaction. After this period, the scheduler stops processing that user's subscriptions until they log in again. Range: 1-168 hours.","editable": true,"max_value": 168,"min_value": 1,@@ -1401,7 +1400,7 @@},"news.subscription.refresh_minutes": {"category": "news",- "description": "Default subscription refresh interval in minutes",+ "description": "Default interval (in minutes) for how often new subscriptions check for updates. Users can override this per subscription. Default is 240 minutes (4 hours). Range: 60-2880 minutes.","editable": true,"max_value": 2880,"min_value": 60,@@ -1429,7 +1428,7 @@},"notifications.enabled": {"category": "notifications",- "description": "Enable external notifications (email, messaging, etc.)",+ "description": "Enable external notifications for research events (email, Discord, Slack, etc.). When disabled, no notifications are sent regardless of individual event settings below. Requires service URL to be configured.","editable": true,"max_value": null,"min_value": null,@@ -1443,7 +1442,7 @@},"notifications.on_api_quota_warning": {"category": "notifications",- "description": "Send notification when API quota/rate limits are exceeded",+ "description": "Send notification when API quota or rate limits are approaching or exceeded. Helps prevent service interruptions from unexpected API usage limits.","editable": true,"max_value": null,"min_value": null,@@ -1457,7 +1456,7 @@},"notifications.on_auth_issue": {"category": "notifications",- "description": "Send notification when authentication fails for API services",+ "description": "Send notification when authentication fails for external API services (e.g., invalid or expired API keys). Alerts you to broken integrations that need attention.","editable": true,"max_value": null,"min_value": null,@@ -1471,7 +1470,7 @@},"notifications.on_research_completed": {"category": "notifications",- "description": "Send notification when research completes",+ "description": "Send notification when a research task completes successfully. This is the primary completion alert for tracking long-running research.","editable": true,"max_value": null,"min_value": null,@@ -1485,7 +1484,7 @@},"notifications.on_research_failed": {"category": "notifications",- "description": "Send notification when research fails",+ "description": "Send notification when a research task fails or encounters an error. Enables rapid problem detection without monitoring the web interface.","editable": true,"max_value": null,"min_value": null,@@ -1499,7 +1498,7 @@},"notifications.on_research_queued": {"category": "notifications",- "description": "Send notification when research is added to queue",+ "description": "Send notification when research is added to the processing queue. Useful in queue mode to confirm your request was accepted and is waiting to be processed.","editable": true,"max_value": null,"min_value": null,@@ -1513,7 +1512,7 @@},"notifications.on_subscription_error": {"category": "notifications",- "description": "Send notification when subscription encounters an error",+ "description": "Send notification when a subscription refresh fails or encounters errors. Helps identify broken subscriptions that need attention.","editable": true,"max_value": null,"min_value": null,@@ -1527,7 +1526,7 @@},"notifications.on_subscription_update": {"category": "notifications",- "description": "Send notification when subscriptions have new content",+ "description": "Send notification when news subscriptions detect new content matching your configured topics.","editable": true,"max_value": null,"min_value": null,@@ -1541,7 +1540,7 @@},"notifications.rate_limit_per_day": {"category": "notifications",- "description": "Maximum number of notifications per day (prevents spam)",+ "description": "Maximum number of notifications per day per user. Daily cap prevents notification fatigue. Default of 50 balances staying informed with avoiding excessive alerts.","editable": true,"max_value": 500,"min_value": 1,@@ -1555,7 +1554,7 @@},"notifications.rate_limit_per_hour": {"category": "notifications",- "description": "Maximum number of notifications per hour (prevents spam)",+ "description": "Maximum number of notifications per hour per user. Prevents notification spam during burst activity. Default of 10 allows important notifications through while limiting noise.","editable": true,"max_value": 100,"min_value": 1,@@ -1597,7 +1596,7 @@},"rate_limiting.decay_per_day": {"category": "rate_limiting",- "description": "Confidence decay factor per day for old rate limit estimates (0.5-0.99, lower = faster decay)",+ "description": "How much to trust old rate limit data as it ages (0.5-0.99). At 0.95, data retains 95% reliability per day. Lower values discard old data faster, forcing the system to re-learn optimal wait times.","editable": true,"max_value": 0.99,"min_value": 0.5,@@ -1611,7 +1610,7 @@},"rate_limiting.enabled": {"category": "rate_limiting",- "description": "Enable adaptive rate limiting system that learns optimal wait times for each search engine",+ "description": "Enable adaptive rate limiting that learns optimal wait times for each search engine to avoid hitting API rate limits. When disabled, requests are sent with minimal delay (0.1s), which may trigger rate limit errors from some APIs.","editable": true,"max_value": null,"min_value": null,@@ -1625,7 +1624,7 @@},"rate_limiting.exploration_rate": {"category": "rate_limiting",- "description": "Percentage of attempts that will explore faster rates to discover improvements (0.0-1.0)",+ "description": "Fraction of requests that test shorter wait times to check if the API allows faster access (0.0-1.0). Higher values adapt faster to relaxed limits but risk more rate limit errors.","editable": true,"max_value": 1.0,"min_value": 0.0,@@ -1639,7 +1638,7 @@},"rate_limiting.learning_rate": {"category": "rate_limiting",- "description": "How quickly to adapt to new rate limit information (higher = faster adaptation)",+ "description": "How much weight to give new timing data vs. existing estimates (0.0-1.0). Higher values react faster to changes in API rate limits but produce less stable wait times.","editable": true,"max_value": 1.0,"min_value": 0.05,@@ -1653,7 +1652,7 @@},"rate_limiting.llm_enabled": {"category": "rate_limiting",- "description": "Enable adaptive rate limiting for LLM API calls (e.g., for free tier APIs with request limits)",+ "description": "Enable adaptive rate limiting for LLM API calls, separate from search engine rate limiting. Useful for free-tier or rate-limited LLM APIs that impose request quotas.","editable": true,"max_value": null,"min_value": null,@@ -1667,7 +1666,7 @@},"rate_limiting.memory_window": {"category": "rate_limiting",- "description": "Number of recent attempts to keep in memory for learning",+ "description": "Number of recent requests to remember per search engine for calculating optimal wait times. At least 3 successful requests are needed before wait time estimates start updating.","editable": true,"max_value": 1000,"min_value": 10,@@ -1681,7 +1680,7 @@},"rate_limiting.profile": {"category": "rate_limiting",- "description": "Rate limiting aggressiveness profile",+ "description": "Overall rate limiting behavior. 'Conservative' uses longer waits and adapts slowly (fewer errors). 'Balanced' is the default. 'Aggressive' uses shorter waits and adapts quickly (faster but riskier).","editable": true,"max_value": null,"min_value": null,@@ -1708,7 +1707,7 @@},"report.citation_format": {"category": "report_parameters",- "description": "Citation format style for reports",+ "description": "Citation formatting style for reports. Options include numbered hyperlinks [1], domain-based hyperlinks [arxiv.org], smart domain numbering [arxiv.org-1], and plain numbered references without links.","editable": true,"max_value": null,"min_value": null,@@ -1741,37 +1740,9 @@"value": "number_hyperlinks","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.enable_file_backup": {"category": "report_parameters",- "description": "Also save reports to file system for external access (reports are always stored in database)",+ "description": "Also save reports as files on disk for external access (reports are always stored in the database regardless). Enable this if you need to access reports from outside the web interface.","editable": true,"max_value": null,"min_value": null,@@ -1785,7 +1756,7 @@},"report.export_formats": {"category": "report_parameters",- "description": "Available export formats for reports",+ "description": "Available export format options displayed in the user interface. Supported formats include Markdown (.md), LaTeX (.tex), Quarto (.qmd), and RIS bibliographic format.","editable": true,"max_value": null,"min_value": null,@@ -1817,7 +1788,7 @@},"report.max_context_chars": {"category": "report_parameters",- "description": "Maximum characters for context when generating sections (lower values are safer for smaller local models)",+ "description": "Maximum character limit for previous section context when generating report sections. If accumulated context exceeds this, it is truncated at sentence boundaries. Lower values are safer for smaller local models. Default is 4000.","editable": true,"max_value": 50000,"min_value": 1000,@@ -1831,7 +1802,7 @@},"report.max_context_sections": {"category": "report_parameters",- "description": "Number of previous sections to include as context when generating new sections (helps reduce repetition in detailed reports)",+ "description": "Number of previously generated report sections to include as context when writing new sections. Helps the LLM avoid repeating content. Higher values increase context size but may exceed smaller model limits. Default is 3.","editable": true,"max_value": 10,"min_value": 1,@@ -1845,7 +1816,7 @@},"report.searches_per_section": {"category": "report_parameters",- "description": "Number of searches to run per report section",+ "description": "Number of web searches to perform per report section. Higher values increase research depth for each section but also increase search engine queries and processing time. Default is 2.","editable": true,"max_value": 5.0,"min_value": 1.0,@@ -1859,7 +1830,7 @@},"research_library.auto_index_enabled": {"category": "research_library",- "description": "Automatically index documents for RAG search when they are added to collections (via upload or download). Indexing happens in the background without blocking uploads.",+ "description": "Automatically index documents for RAG search when they are added to collections (via upload or download). Indexing runs in the background without blocking uploads. Disable to defer indexing and improve upload speed for large batches.","editable": true,"max_value": null,"min_value": null,@@ -1885,35 +1856,6 @@"value": true,"visible": true},- "research_library.enable_pdf_storage": {- "category": "research_library",- "description": "DEPRECATED: Use pdf_storage_mode instead. Kept for backward compatibility.",- "editable": false,- "env_var": "RESEARCH_LIBRARY_ENABLE_PDF_STORAGE",- "max_value": null,- "min_value": null,- "name": "Enable PDF Storage (Legacy)",- "options": null,- "step": null,- "type": "APP",- "ui_element": "checkbox",- "value": false,- "visible": false- },- "research_library.enable_txt_storage": {- "category": "research_library",- "description": "\u26a0\ufe0f PRIVACY WARNING: Text files will be stored unencrypted on disk for RAG/ChromaDB integration. This exposes document contents to anyone with filesystem access.",- "editable": true,- "max_value": null,- "min_value": null,- "name": "Enable Text File Storage",- "options": null,- "step": null,- "type": "APP",- "ui_element": "checkbox",- "value": false,- "visible": true- },"research_library.max_pdf_size_mb": {"category": "research_library","description": "Maximum allowed PDF file size in megabytes. PDFs larger than this will not be stored.",@@ -7142,7 +7084,7 @@},"search.final_max_results": {"category": "search_parameters",- "description": "Maximum unique sources to include in the final research report after cross-engine deduplication and filtering.",+ "description": "Maximum unique sources to include in the final research output. Applied once after all search iterations complete, deduplicating and filtering across all accumulated results.","editable": true,"max_value": 200.0,"min_value": 1,@@ -7156,7 +7098,7 @@},"search.iterations": {"category": null,- "description": "Maximum number of sequential search cycles to perform. Each iteration generates new follow-up questions based on previous results to progressively expand and refine the research.",+ "description": "Number of search-and-refine cycles to run. Each iteration generates follow-up questions based on previous results to progressively deepen the research. More iterations yield better coverage but increase search and LLM API usage.","editable": true,"max_value": null,"min_value": 1,@@ -7170,7 +7112,7 @@},"search.journal_reputation.exclude_non_published": {"category": "journal_quality_filter_parameters",- "description": "When enabled, excludes results without a formal journal publication reference. Use this to require only peer-reviewed academic sources.",+ "description": "When enabled, excludes results without a formal journal publication reference. This ensures only sources with documented journal publications are included in analysis.","editable": true,"max_value": null,"min_value": null,@@ -7440,7 +7382,7 @@},"search.skip_relevance_filter": {"category": "search_parameters",- "description": "Global override to skip LLM relevance filtering for ALL search engines. When false, filtering is auto-enabled for academic engines (arXiv, Semantic Scholar, etc.) that use keyword matching, and auto-disabled for generic engines (Google, Brave, etc.) that already use semantic search.",+ "description": "When ON, LLM relevance filtering is disabled for all search engines. When OFF, each engine decides automatically: academic engines (arXiv, PubMed) enable filtering since they use keyword matching, while generic engines (Google, Brave) skip it since they already rank by relevance.","editable": true,"max_value": null,"min_value": null,@@ -7503,7 +7445,7 @@},"search.tool": {"category": "search_general",- "description": "Web search engine to use for research",+ "description": "Search engine to use for research queries. 'Auto' intelligently selects the best engine for each query type. Each engine may require its own API key or service to be configured separately.","editable": true,"max_value": null,"min_value": null,diff --git a/tests/settings/test_settings_defaults_integrity.py b/tests/settings/test_settings_defaults_integrity.pyindex 49f17e5bba..ed0ef05ad6 100644--- a/tests/settings/test_settings_defaults_integrity.py+++ b/tests/settings/test_settings_defaults_integrity.py@@ -38,13 +38,8 @@ ENUM_SETTINGS = {# ---------------------------------------------------------------------------KNOWN_UNUSED = {- # Truly unused / dead code (candidates for Phase 4 removal)- "general.output_dir",- "report.enable_fact_checking",- "report.detailed_citations",+ # Truly unused / dead code (candidates for future removal)"report.export_formats",- "research_library.enable_pdf_storage",- "research_library.enable_txt_storage","research_library.confirm_deletions","search.quality_check_urls",}@@ -382,14 +377,6 @@ class TestSettingsDefaultsIntegrity:# -- Test 5: Enum-settings consistency ---------------------------------- @pytest.mark.xfail(- reason=(- "knowledge_accumulation JSON has ui_element='text' with no options "- "instead of 'select' with ITERATION/QUESTION/NO_KNOWLEDGE — "- "will be fixed in Phase 2"- ),- strict=True,- )def test_enum_settings_consistency(self, defaults):"""Settings backed by Python enums must have options matching actual enum values."""errors = []diff --git a/tests/ui_tests/test_settings_persistence.js b/tests/ui_tests/test_settings_persistence.jsindex 56b544e2f5..6228043a12 100644--- a/tests/ui_tests/test_settings_persistence.js+++ b/tests/ui_tests/test_settings_persistence.js@@ -85,8 +85,6 @@ async function modifySettings(page) {timeRange: '1y',// Report settings- enableFactChecking: true,- detailedCitations: true,citationFormat: 'domain_hyperlinks'};@@ -137,16 +135,6 @@ async function modifySettings(page) {log(` - Citation format set to: ${testSettings.citationFormat}`, 'info');}- // Checkboxes- const factCheckBox = await page.$('input[name="report.enable_fact_checking"], #fact-checking');- if (factCheckBox) {- const isChecked = await page.evaluate(el => el.checked, factCheckBox);- if (isChecked !== testSettings.enableFactChecking) {- await factCheckBox.click();- }- log(` - Fact checking: ${testSettings.enableFactChecking}`, 'info');- }-// Save settingslog('💾 Saving settings...', 'info');const saveButton = await page.$('button[type="submit"], .save-settings-btn, #save-settings');@@ -214,10 +202,6 @@ async function verifySettingsPersistence(page, originalSettings) {const citation = document.querySelector('select[name="report.citation_format"], #citation-format');if (citation) settings.citationFormat = citation.value;- // Fact checking- const factCheck = document.querySelector('input[name="report.enable_fact_checking"], #fact-checking');- if (factCheck) settings.enableFactChecking = factCheck.checked;-return settings;});