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