feat: use language-neutral English prompts for multilingual LLM responses

Convert all LLM-facing prompts, templates, and tool output labels to
language-neutral English so the model responds in the user's input
language. Update frontend relevance/match-type mappings to match.

Output language strategy:
- User-facing: reply in user's input language
- Vector-indexed: match source document language
- LLM-internal: fixed English
This commit is contained in:
ochan.kwon
2026-03-06 20:24:23 +09:00
committed by lyingbug
parent db7cef5f17
commit edcf7116cd
28 changed files with 819 additions and 841 deletions
+14 -14
View File
@@ -1,30 +1,30 @@
# 改写用户提示词模板
# Rewrite user prompt templates
templates:
- id: "default_rewrite_user"
name: "标准格式"
description: "标准的改写用户提示词格式"
name: "Standard Format"
description: "Standard rewrite user prompt format"
content: |
## 历史对话背景
## Conversation History
{{conversation}}
## 需要改写的用户问题
## User Question to Rewrite
{{query}}
## 改写后的问题
## Rewritten Question
- id: "detailed_rewrite_user"
name: "详细格式"
description: "详细的改写用户提示词格式"
name: "Detailed Format"
description: "Detailed rewrite user prompt format"
content: |
## 历史对话背景
以下是用户与助手的对话历史,请仔细阅读以理解上下文:
## Conversation History
Please carefully read the following conversation history between the user and assistant to understand the context:
{{conversation}}
## 当前用户问题
## Current User Question
{{query}}
## 任务要求
请根据以上对话历史,将当前问题改写为一个独立、完整、可以脱离上下文理解的问题。
## Task Requirements
Based on the above conversation history, rewrite the current question into an independent, complete question that can be understood without context.
## 改写后的问题
## Rewritten Question