From e1541caea9a344c8fb4baf8d6bb0b65c339486a6 Mon Sep 17 00:00:00 2001 From: zrguo <49157727+LarFii@users.noreply.github.com> Date: Wed, 9 Jul 2025 12:10:06 +0800 Subject: [PATCH] Update webui setting --- lightrag/operate.py | 2 ++ lightrag_webui/src/stores/settings.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lightrag/operate.py b/lightrag/operate.py index 4b2aa250..a27e19f4 100644 --- a/lightrag/operate.py +++ b/lightrag/operate.py @@ -2500,6 +2500,8 @@ async def naive_query( source_type="vector", ) + logger.info(f"Final context: {len(processed_chunks)} chunks") + # Build text_units_context from processed chunks text_units_context = [] for i, chunk in enumerate(processed_chunks): diff --git a/lightrag_webui/src/stores/settings.ts b/lightrag_webui/src/stores/settings.ts index 203502dc..5942ddca 100644 --- a/lightrag_webui/src/stores/settings.ts +++ b/lightrag_webui/src/stores/settings.ts @@ -111,7 +111,7 @@ const useSettingsStoreBase = create()( mode: 'global', response_type: 'Multiple Paragraphs', top_k: 10, - max_token_for_text_unit: 4000, + max_token_for_text_unit: 6000, max_token_for_global_context: 4000, max_token_for_local_context: 4000, only_need_context: false,