diff --git a/lightrag_webui/src/stores/settings.ts b/lightrag_webui/src/stores/settings.ts index 0a04fbf0..fb0adde0 100644 --- a/lightrag_webui/src/stores/settings.ts +++ b/lightrag_webui/src/stores/settings.ts @@ -110,8 +110,8 @@ const useSettingsStoreBase = create()( querySettings: { mode: 'global', response_type: 'Multiple Paragraphs', - top_k: 10, - chunk_top_k: 5, + top_k: 40, + chunk_top_k: 10, max_entity_tokens: 10000, max_relation_tokens: 10000, max_total_tokens: 32000, @@ -119,8 +119,6 @@ const useSettingsStoreBase = create()( only_need_prompt: false, stream: true, history_turns: 3, - hl_keywords: [], - ll_keywords: [], user_prompt: '', enable_rerank: true }, @@ -263,22 +261,16 @@ const useSettingsStoreBase = create()( state.backendMaxGraphNodes = null } if (version < 15) { - // 完整更新querySettings到统一token控制系统 + // Add new querySettings state.querySettings = { - mode: 'global', + ...state.querySettings, + mode: 'mix', response_type: 'Multiple Paragraphs', - top_k: 10, - chunk_top_k: 5, + top_k: 40, + chunk_top_k: 10, max_entity_tokens: 10000, max_relation_tokens: 10000, max_total_tokens: 32000, - only_need_context: false, - only_need_prompt: false, - stream: true, - history_turns: 3, - hl_keywords: [], - ll_keywords: [], - user_prompt: '', enable_rerank: true } }