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
+8 -8
View File
@@ -31,15 +31,15 @@ const matchTypeIconKeys: Record<string, string> = {
graph: '🕸️',
};
// Match type to icon mapping (Chinese keys preserved for API compatibility)
// Match type to icon mapping (keys match backend API response)
export const matchTypeIcons: Record<string, string> = {
'向量匹配': '🎯',
'关键词匹配': '🔤',
'相邻块匹配': '📌',
'历史匹配': '📜',
'父块匹配': '⬆️',
'关系块匹配': '🔗',
'图谱匹配': '🕸️',
'Vector Match': '🎯',
'Keyword Match': '🔤',
'Adjacent Chunk Match': '📌',
'History Match': '📜',
'Parent Chunk Match': '⬆️',
'Relation Chunk Match': '🔗',
'Graph Match': '🕸️',
};
// Get icon for a tool name