From 9db7d3544cce345123798b380a2072882fa02d17 Mon Sep 17 00:00:00 2001 From: q Date: Sat, 18 Apr 2026 15:51:43 +0300 Subject: [PATCH] Reduce chunk size: 5 msgs / 512 chars, overlap 2 msgs Co-Authored-By: Claude Sonnet 4.6 --- index/chunking.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index/chunking.py b/index/chunking.py index 6b76f60..60cbdfc 100644 --- a/index/chunking.py +++ b/index/chunking.py @@ -4,10 +4,10 @@ from cleaning import CleanedMessage, clean_message from rendering import render_dense_content, render_page_content, render_sparse_content from index_schemas import IndexAPIItem, Message -WINDOW_MAX_MESSAGES = 10 -WINDOW_MAX_CHARS = 2048 +WINDOW_MAX_MESSAGES = 5 +WINDOW_MAX_CHARS = 512 TIME_GAP_SECONDS = 3600 -OVERLAP_MESSAGES = 3 +OVERLAP_MESSAGES = 2 def _clean_all(messages: list[Message]) -> list[CleanedMessage]: