Set max_context_items to 10

This commit is contained in:
Yiorgis Gozadinos 2025-12-09 12:47:42 +02:00
parent 802f058205
commit 5a593e928e
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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