Files
customer-server/model/dto/ragflow_chat_dto.go
2026-03-14 10:02:49 +08:00

20 lines
967 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Package dto - RAGFlow对话配置DTO
// 功能:定义更新对话配置提示词的请求响应结构体
package dto
// UpdateChatPromptReq 更新对话配置提示词请求
type UpdateChatPromptReq struct {
ChatId string `json:"chatId" v:"required#对话配置ID不能为空"`
Prompt string `json:"prompt" v:"required#提示词不能为空"`
SimilarityThreshold float64 `json:"similarityThreshold"` // 相似度阈值0.0-1.0默认0.2
KeywordsSimilarityWeight float64 `json:"keywordsSimilarityWeight"` // 关键词权重0.0-1.0默认0.7
TopN int `json:"topN"` // 返回chunk数量默认8
EmptyResponse string `json:"emptyResponse"` // 无匹配时回复
}
// UpdateChatPromptRes 更新对话配置提示词响应
type UpdateChatPromptRes struct {
Success bool `json:"success"`
Message string `json:"message"`
}