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
+1 -1
View File
@@ -992,7 +992,7 @@ func (b *graphBuilder) generateKnowledgeGraphDiagram(ctx context.Context) string
// only draw if there are multiple entities or at least one relationship in the subgraph
if hasRelations {
subgraphCount++
sb.WriteString(fmt.Sprintf("\n subgraph 子图%d\n", subgraphCount))
sb.WriteString(fmt.Sprintf("\n subgraph Subgraph%d\n", subgraphCount))
// add all entities in this subgraph
entitiesInComponent := make(map[string]bool)