feat(prompts): update assistant descriptions and add intent-specific templates

- Updated the assistant descriptions in various prompt templates to specify that they are developed by Tencent.
- Added new intent-specific system prompt templates for greeting, chitchat, follow-up, image analysis, summarization, and web search unavailability scenarios.
- Enhanced citation rules in the system prompts to ensure proper inline citation formatting.
- Refactored the rewrite prompt to classify user intent more accurately and output structured JSON responses.
This commit is contained in:
wizardchen
2026-03-23 01:57:06 +08:00
committed by lyingbug
parent 109393dd16
commit 052be53c42
44 changed files with 1272 additions and 1323 deletions
+26 -24
View File
@@ -266,31 +266,33 @@ func (e *EvaluationService) Evaluation(ctx context.Context,
StartTime: time.Now(),
},
Params: &types.ChatManage{
VectorThreshold: e.config.Conversation.VectorThreshold,
KeywordThreshold: e.config.Conversation.KeywordThreshold,
EmbeddingTopK: e.config.Conversation.EmbeddingTopK,
MaxRounds: e.config.Conversation.MaxRounds,
RerankModelID: rerankModelID,
RerankTopK: e.config.Conversation.RerankTopK,
RerankThreshold: e.config.Conversation.RerankThreshold,
ChatModelID: chatModelID,
SummaryConfig: types.SummaryConfig{
MaxTokens: e.config.Conversation.Summary.MaxTokens,
RepeatPenalty: e.config.Conversation.Summary.RepeatPenalty,
TopK: e.config.Conversation.Summary.TopK,
TopP: e.config.Conversation.Summary.TopP,
Prompt: e.config.Conversation.Summary.Prompt,
ContextTemplate: e.config.Conversation.Summary.ContextTemplate,
FrequencyPenalty: e.config.Conversation.Summary.FrequencyPenalty,
PresencePenalty: e.config.Conversation.Summary.PresencePenalty,
NoMatchPrefix: e.config.Conversation.Summary.NoMatchPrefix,
Temperature: e.config.Conversation.Summary.Temperature,
Seed: e.config.Conversation.Summary.Seed,
MaxCompletionTokens: e.config.Conversation.Summary.MaxCompletionTokens,
PipelineRequest: types.PipelineRequest{
VectorThreshold: e.config.Conversation.VectorThreshold,
KeywordThreshold: e.config.Conversation.KeywordThreshold,
EmbeddingTopK: e.config.Conversation.EmbeddingTopK,
MaxRounds: e.config.Conversation.MaxRounds,
RerankModelID: rerankModelID,
RerankTopK: e.config.Conversation.RerankTopK,
RerankThreshold: e.config.Conversation.RerankThreshold,
ChatModelID: chatModelID,
SummaryConfig: types.SummaryConfig{
MaxTokens: e.config.Conversation.Summary.MaxTokens,
RepeatPenalty: e.config.Conversation.Summary.RepeatPenalty,
TopK: e.config.Conversation.Summary.TopK,
TopP: e.config.Conversation.Summary.TopP,
Prompt: e.config.Conversation.Summary.Prompt,
ContextTemplate: e.config.Conversation.Summary.ContextTemplate,
FrequencyPenalty: e.config.Conversation.Summary.FrequencyPenalty,
PresencePenalty: e.config.Conversation.Summary.PresencePenalty,
NoMatchPrefix: e.config.Conversation.Summary.NoMatchPrefix,
Temperature: e.config.Conversation.Summary.Temperature,
Seed: e.config.Conversation.Summary.Seed,
MaxCompletionTokens: e.config.Conversation.Summary.MaxCompletionTokens,
},
FallbackResponse: e.config.Conversation.FallbackResponse,
RewritePromptSystem: e.config.Conversation.RewritePromptSystem,
RewritePromptUser: e.config.Conversation.RewritePromptUser,
},
FallbackResponse: e.config.Conversation.FallbackResponse,
RewritePromptSystem: e.config.Conversation.RewritePromptSystem,
RewritePromptUser: e.config.Conversation.RewritePromptUser,
},
}