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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user