~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
feat(settings): JSON defaults for the nine local_search_* settings (#4208 follow-up) (#4222)
LearningCircuit951c0c11f7f3
diff --git a/src/local_deep_research/defaults/settings_local_search.json b/src/local_deep_research/defaults/settings_local_search.jsonnew file mode 100644index 0000000000..d1bfe94c7d--- /dev/null+++ b/src/local_deep_research/defaults/settings_local_search.json@@ -0,0 +1,145 @@+{+ "local_search_embedding_provider": {+ "category": "embeddings",+ "description": "Embedding provider used for the local-document search index. Drives which models the Embeddings page lists and which provider runs when documents are indexed. The model dropdown is rebuilt to match this provider.",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Embedding Provider",+ "options": [+ {"value": "sentence_transformers", "label": "Sentence Transformers (Local)"},+ {"value": "ollama", "label": "Ollama (Local)"},+ {"value": "openai", "label": "OpenAI / OpenAI-Compatible Endpoint"}+ ],+ "step": null,+ "type": "APP",+ "ui_element": "select",+ "value": "sentence_transformers",+ "visible": true+ },+ "local_search_embedding_model": {+ "category": "embeddings",+ "description": "Embedding model used for the local-document search index. Free-form text because available models vary by provider (e.g. Sentence Transformers ships a fixed list, Ollama/OpenAI-compatible servers expose whatever is installed). Defaults to all-MiniLM-L6-v2 (384d) which is fast and good for general use.",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Embedding Model",+ "options": null,+ "step": null,+ "type": "APP",+ "ui_element": "text",+ "value": "all-MiniLM-L6-v2",+ "visible": true+ },+ "local_search_chunk_size": {+ "category": "embeddings",+ "description": "Number of characters per chunk when splitting documents for embedding. Larger chunks (1000+) keep more context but search is less precise. Smaller chunks (<500) are more granular but may cut off important context. Affects new indexing only.",+ "editable": true,+ "max_value": 5000.0,+ "min_value": 100.0,+ "name": "Local Search Chunk Size",+ "options": null,+ "step": 100.0,+ "type": "APP",+ "ui_element": "number",+ "value": 1000,+ "visible": true+ },+ "local_search_chunk_overlap": {+ "category": "embeddings",+ "description": "Characters shared between adjacent chunks. Prevents important information from being cut at chunk boundaries. Typically 10-20% of chunk size. Affects new indexing only.",+ "editable": true,+ "max_value": 1000.0,+ "min_value": 0.0,+ "name": "Local Search Chunk Overlap",+ "options": null,+ "step": 50.0,+ "type": "APP",+ "ui_element": "number",+ "value": 200,+ "visible": true+ },+ "local_search_splitter_type": {+ "category": "embeddings",+ "description": "How to divide documents into chunks. Recursive uses natural breaks (paragraphs, sentences). Token-based respects model context limits. Sentence-based produces clean sentence boundaries. Semantic uses an embedding model to group related content (smarter but slower).",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Splitter Type",+ "options": [+ {"value": "recursive", "label": "Recursive (Default - uses separators)"},+ {"value": "token", "label": "Token-based (Good for LLM context)"},+ {"value": "sentence", "label": "Sentence-based (Clean boundaries)"},+ {"value": "semantic", "label": "Semantic (Smart grouping - slower)"}+ ],+ "step": null,+ "type": "APP",+ "ui_element": "select",+ "value": "recursive",+ "visible": true+ },+ "local_search_text_separators": {+ "category": "embeddings",+ "description": "JSON array of separator strings tried in order by the recursive splitter. The default works for general prose. For code, add language-specific separators like \"\\nclass\", \"\\ndef\".",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Text Separators",+ "options": null,+ "step": null,+ "type": "APP",+ "ui_element": "json",+ "value": ["\n\n", "\n", ". ", " ", ""],+ "visible": true+ },+ "local_search_distance_metric": {+ "category": "embeddings",+ "description": "How chunk vectors are compared during retrieval. Cosine similarity is the standard recommendation for text embeddings. L2 (Euclidean) and dot product are alternatives whose suitability depends on whether the embedding model is trained to produce normalized vectors.",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Distance Metric",+ "options": [+ {"value": "cosine", "label": "Cosine Similarity (Recommended)"},+ {"value": "l2", "label": "Euclidean Distance (L2)"},+ {"value": "dot_product", "label": "Dot Product"}+ ],+ "step": null,+ "type": "APP",+ "ui_element": "select",+ "value": "cosine",+ "visible": true+ },+ "local_search_normalize_vectors": {+ "category": "embeddings",+ "description": "L2-normalize embedding vectors after generation. Recommended: ensures fair similarity comparison regardless of source document length. Some embedding models already produce normalized output; in that case this is a no-op.",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Normalize Vectors",+ "options": null,+ "step": null,+ "type": "APP",+ "ui_element": "checkbox",+ "value": true,+ "visible": true+ },+ "local_search_index_type": {+ "category": "embeddings",+ "description": "FAISS index type used for the local-document search index. Flat: exact search, recommended for <10K documents. HNSW: approximate but ~50x faster, recommended for large collections (>10K docs). IVF: balanced for collections that are updated frequently. Changing this requires re-indexing existing collections.",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Index Type",+ "options": [+ {"value": "flat", "label": "Flat (Exact search, <10K docs)"},+ {"value": "hnsw", "label": "HNSW (Fast, large collections)"},+ {"value": "ivf", "label": "IVF (Balanced, updates)"}+ ],+ "step": null,+ "type": "APP",+ "ui_element": "select",+ "value": "flat",+ "visible": true+ }+}diff --git a/tests/settings/golden_master_settings.json b/tests/settings/golden_master_settings.jsonindex 01e60cd0c8..42e922d3f0 100644--- a/tests/settings/golden_master_settings.json+++ b/tests/settings/golden_master_settings.json@@ -1333,6 +1333,194 @@"value": null,"visible": true},+ "local_search_chunk_overlap": {+ "category": "embeddings",+ "description": "Characters shared between adjacent chunks. Prevents important information from being cut at chunk boundaries. Typically 10-20% of chunk size. Affects new indexing only.",+ "editable": true,+ "max_value": 1000.0,+ "min_value": 0.0,+ "name": "Local Search Chunk Overlap",+ "options": null,+ "step": 50.0,+ "type": "APP",+ "ui_element": "number",+ "value": 200,+ "visible": true+ },+ "local_search_chunk_size": {+ "category": "embeddings",+ "description": "Number of characters per chunk when splitting documents for embedding. Larger chunks (1000+) keep more context but search is less precise. Smaller chunks (<500) are more granular but may cut off important context. Affects new indexing only.",+ "editable": true,+ "max_value": 5000.0,+ "min_value": 100.0,+ "name": "Local Search Chunk Size",+ "options": null,+ "step": 100.0,+ "type": "APP",+ "ui_element": "number",+ "value": 1000,+ "visible": true+ },+ "local_search_distance_metric": {+ "category": "embeddings",+ "description": "How chunk vectors are compared during retrieval. Cosine similarity is the standard recommendation for text embeddings. L2 (Euclidean) and dot product are alternatives whose suitability depends on whether the embedding model is trained to produce normalized vectors.",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Distance Metric",+ "options": [+ {+ "label": "Cosine Similarity (Recommended)",+ "value": "cosine"+ },+ {+ "label": "Euclidean Distance (L2)",+ "value": "l2"+ },+ {+ "label": "Dot Product",+ "value": "dot_product"+ }+ ],+ "step": null,+ "type": "APP",+ "ui_element": "select",+ "value": "cosine",+ "visible": true+ },+ "local_search_embedding_model": {+ "category": "embeddings",+ "description": "Embedding model used for the local-document search index. Free-form text because available models vary by provider (e.g. Sentence Transformers ships a fixed list, Ollama/OpenAI-compatible servers expose whatever is installed). Defaults to all-MiniLM-L6-v2 (384d) which is fast and good for general use.",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Embedding Model",+ "options": null,+ "step": null,+ "type": "APP",+ "ui_element": "text",+ "value": "all-MiniLM-L6-v2",+ "visible": true+ },+ "local_search_embedding_provider": {+ "category": "embeddings",+ "description": "Embedding provider used for the local-document search index. Drives which models the Embeddings page lists and which provider runs when documents are indexed. The model dropdown is rebuilt to match this provider.",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Embedding Provider",+ "options": [+ {+ "label": "Sentence Transformers (Local)",+ "value": "sentence_transformers"+ },+ {+ "label": "Ollama (Local)",+ "value": "ollama"+ },+ {+ "label": "OpenAI / OpenAI-Compatible Endpoint",+ "value": "openai"+ }+ ],+ "step": null,+ "type": "APP",+ "ui_element": "select",+ "value": "sentence_transformers",+ "visible": true+ },+ "local_search_index_type": {+ "category": "embeddings",+ "description": "FAISS index type used for the local-document search index. Flat: exact search, recommended for <10K documents. HNSW: approximate but ~50x faster, recommended for large collections (>10K docs). IVF: balanced for collections that are updated frequently. Changing this requires re-indexing existing collections.",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Index Type",+ "options": [+ {+ "label": "Flat (Exact search, <10K docs)",+ "value": "flat"+ },+ {+ "label": "HNSW (Fast, large collections)",+ "value": "hnsw"+ },+ {+ "label": "IVF (Balanced, updates)",+ "value": "ivf"+ }+ ],+ "step": null,+ "type": "APP",+ "ui_element": "select",+ "value": "flat",+ "visible": true+ },+ "local_search_normalize_vectors": {+ "category": "embeddings",+ "description": "L2-normalize embedding vectors after generation. Recommended: ensures fair similarity comparison regardless of source document length. Some embedding models already produce normalized output; in that case this is a no-op.",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Normalize Vectors",+ "options": null,+ "step": null,+ "type": "APP",+ "ui_element": "checkbox",+ "value": true,+ "visible": true+ },+ "local_search_splitter_type": {+ "category": "embeddings",+ "description": "How to divide documents into chunks. Recursive uses natural breaks (paragraphs, sentences). Token-based respects model context limits. Sentence-based produces clean sentence boundaries. Semantic uses an embedding model to group related content (smarter but slower).",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Splitter Type",+ "options": [+ {+ "label": "Recursive (Default - uses separators)",+ "value": "recursive"+ },+ {+ "label": "Token-based (Good for LLM context)",+ "value": "token"+ },+ {+ "label": "Sentence-based (Clean boundaries)",+ "value": "sentence"+ },+ {+ "label": "Semantic (Smart grouping - slower)",+ "value": "semantic"+ }+ ],+ "step": null,+ "type": "APP",+ "ui_element": "select",+ "value": "recursive",+ "visible": true+ },+ "local_search_text_separators": {+ "category": "embeddings",+ "description": "JSON array of separator strings tried in order by the recursive splitter. The default works for general prose. For code, add language-specific separators like \"\\nclass\", \"\\ndef\".",+ "editable": true,+ "max_value": null,+ "min_value": null,+ "name": "Local Search Text Separators",+ "options": null,+ "step": null,+ "type": "APP",+ "ui_element": "json",+ "value": [+ "\n\n",+ "\n",+ ". ",+ " ",+ ""+ ],+ "visible": true+ },"mcp.servers": {"category": "mcp","description": "List of external MCP servers to connect to. Each entry should have 'command' (required), and optionally 'name', 'args', and 'env'. Allowed commands: node, npx, python, python3, uv, uvx, docker. See <a href=\"https://github.com/LearningCircuit/local-deep-research/blob/main/docs/mcp-server.md#mcp-client-connecting-external-mcp-servers\" target=\"_blank\">MCP Client documentation</a> for details.",