Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

Fix incorrect Ollama URL for embeddings.

Daniel Pettifbd1e9d8323a
diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.json
index c3261f4148..647f72253b 100644
--- a/src/local_deep_research/defaults/default_settings.json
+++ b/src/local_deep_research/defaults/default_settings.json
@@ -472,6 +472,20 @@
"value": 50,
"visible": true
},
+ "search.final_max_results": {
+ "category": "search_parameters",
+ "description": "Maximum number of search results to include in the final report.",
+ "editable": true,
+ "max_value": 200.0,
+ "min_value": 1,
+ "name": "Final Max Results",
+ "options": null,
+ "step": 1,
+ "type": "SEARCH",
+ "ui_element": "number",
+ "value": 100,
+ "visible": true
+ },
"search.quality_check_urls": {
"category": null,
"description": "Setting for search.quality_check_urls",
diff --git a/src/local_deep_research/web_search_engines/engines/search_engine_local.py b/src/local_deep_research/web_search_engines/engines/search_engine_local.py
index bbbb3d1ab9..0704571e0a 100644
--- a/src/local_deep_research/web_search_engines/engines/search_engine_local.py
+++ b/src/local_deep_research/web_search_engines/engines/search_engine_local.py
@@ -31,6 +31,8 @@ from langchain_core.language_models import BaseLLM
from langchain_text_splitters import RecursiveCharacterTextSplitter
from ...config import search_config
+from ...config.llm_config import OLLAMA_BASE_URL_ENV
+from ...utilities.db_utils import get_db_setting
from ..search_engine_base import BaseSearchEngine
# Setup logging
@@ -168,8 +170,10 @@ class LocalEmbeddingManager:
if self.embedding_model_type == "ollama":
# Use Ollama for embeddings
if not self.ollama_base_url:
- self.ollama_base_url = os.getenv(
- "OLLAMA_BASE_URL", "http://localhost:11434"
+ self.ollama_base_url = os.getenv(OLLAMA_BASE_URL_ENV)
+ if not self.ollama_base_url:
+ self.ollama_base_url = get_db_setting(
+ "llm.ollama.url", "http://localhost:11434"
)
logger.info(