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