feat: Introduce query expansion feature and enhance related configurations

- Added support for query expansion in conversation settings, allowing the system to generate additional queries when recall is low.
- Updated localization files in English, Russian, and Chinese to include new strings for the query expansion feature.
- Enhanced UI in AgentSettings.vue to allow users to toggle query expansion settings.
- Refactored related API and service logic to accommodate the new query expansion functionality in session management and chat processing.
This commit is contained in:
wizardchen
2025-11-19 20:23:30 +08:00
parent 5434768530
commit b9c1191dd2
15 changed files with 104 additions and 60 deletions
+9
View File
@@ -1237,6 +1237,15 @@ export default {
autoDisabled: 'Конфигурация Agent неполная. Режим Agent автоматически выключен'
}
},
conversationSettings: {
enableQueryExpansion: {
label: 'Включить расширение запросов',
desc: 'При низкой выдаче обращаться к LLM для генерации дополнительных запросов (дороже и медленнее)'
},
toasts: {
enableQueryExpansionSaved: 'Настройка расширения запросов сохранена'
}
},
mcpSettings: {
title: 'Сервисы MCP',
description: 'Управление внешними сервисами MCP (Model Context Protocol) для использования инструментов и ресурсов в режиме Agent',