From 5a593e928e2ebef44b84ef6bad6d78fdebc5b9e5 Mon Sep 17 00:00:00 2001 From: Yiorgis Gozadinos Date: Tue, 9 Dec 2025 12:47:42 +0200 Subject: [PATCH] Set max_context_items to 10 --- CHANGELOG.md | 2 +- haiku_rag_slim/haiku/rag/config/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8964b94..5fc2512b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -55,7 +55,7 @@ - **Search Config**: New settings in `search` section for search behavior and context expansion - `search.limit` - Default number of search results (default: 5). Used by CLI, MCP server, and API when no limit specified - `search.context_radius` - DocItems before/after to include for text content expansion (default: 0) - - `search.max_context_items` - Maximum items in expanded context (default: 25) + - `search.max_context_items` - Maximum items in expanded context (default: 10) - `search.max_context_chars` - Maximum characters in expanded context (default: 10000) - **Rebuild Performance**: Batched database writes during `rebuild` command reduce LanceDB versions by ~98% - All rebuild modes (FULL, RECHUNK, EMBED_ONLY) now batch writes across documents diff --git a/haiku_rag_slim/haiku/rag/config/models.py b/haiku_rag_slim/haiku/rag/config/models.py index 4b3b0faf..9c8eeec2 100644 --- a/haiku_rag_slim/haiku/rag/config/models.py +++ b/haiku_rag_slim/haiku/rag/config/models.py @@ -122,7 +122,7 @@ class ProcessingConfig(BaseModel): class SearchConfig(BaseModel): limit: int = 5 context_radius: int = 0 - max_context_items: int = 25 + max_context_items: int = 10 max_context_chars: int = 10000 vector_index_metric: Literal["cosine", "l2", "dot"] = "cosine" vector_refine_factor: int = 30