feat(agent): enrich follow-up suggestion generation context

Improve follow-up question quality by feeding the model structured context
(evidence, capabilities, complete turns) instead of raw RAG content, and
rank knowledge candidates by current-topic relevance.
This commit is contained in:
wizardchen
2026-07-15 17:00:07 +08:00
committed by lyingbug
parent 0f4500b98f
commit a729bc1271
7 changed files with 487 additions and 26 deletions
+1
View File
@@ -5660,6 +5660,7 @@ export default {
contextTurns: 'Context turns',
categories: 'Question types',
instruction: 'Additional instruction',
instructionPlaceholder: 'For example: prioritize practical next-step questions and avoid broad questions or repeating the answer…',
suppressFallback: 'Hide after fallback answers',
suppressQuestion: 'Hide when the answer ends with a question',
knowledgeFallback: 'Use knowledge candidates if generation fails',
+1
View File
@@ -5671,6 +5671,7 @@ export default {
advancedSettingsDesc: '컨텍스트, 질문 유형, 생성 지침 및 표시 규칙',
displayRules: '표시 및 폴백 규칙',
contextTurns: '컨텍스트 턴 수', categories: '질문 유형', instruction: '추가 생성 지침',
instructionPlaceholder: '예: 실행 가능한 다음 단계 질문을 우선하고 광범위한 질문이나 답변 반복은 피하세요…',
suppressFallback: '대체 답변 뒤에는 숨기기', suppressQuestion: '답변이 질문으로 끝나면 숨기기',
knowledgeFallback: '생성 실패 시 지식 후보 사용', allowRegenerate: '새 질문 묶음 허용',
modeCurated: '운영 설정', modeKnowledge: '지식 기반', modeGenerated: '모델 생성', modeHybrid: '혼합',
+1
View File
@@ -5171,6 +5171,7 @@ export default {
advancedSettingsDesc: 'Контекст, типы вопросов, инструкции и правила показа',
displayRules: 'Правила показа и резерва',
contextTurns: 'Ходы контекста', categories: 'Типы вопросов', instruction: 'Дополнительная инструкция',
instructionPlaceholder: 'Например: предлагайте практические следующие шаги, избегая общих вопросов и повторения ответа…',
suppressFallback: 'Скрывать после резервного ответа', suppressQuestion: 'Скрывать, если ответ заканчивается вопросом',
knowledgeFallback: 'Использовать базу знаний при ошибке', allowRegenerate: 'Разрешить обновление',
modeCurated: 'Редакторские', modeKnowledge: 'База знаний', modeGenerated: 'Модель', modeHybrid: 'Гибрид',
+1
View File
@@ -5685,6 +5685,7 @@ export default {
contextTurns: "上下文轮数",
categories: "问题类型",
instruction: "附加生成要求",
instructionPlaceholder: "例如:优先推荐能帮助用户落地执行的问题,避免宽泛问题或重复当前回答…",
suppressFallback: "兜底回答后不展示",
suppressQuestion: "回答本身以提问结尾时不展示",
knowledgeFallback: "模型生成失败时使用知识库候选",
@@ -985,6 +985,7 @@
<div class="setting-control setting-control-full">
<t-textarea
v-model="formData.config.question_suggestions.follow_ups.additional_instruction"
:placeholder="$t('agentEditor.questionSuggestions.instructionPlaceholder')"
:maxlength="2000" :autosize="{ minRows: 3, maxRows: 8 }" />
</div>
</div>