1
This commit is contained in:
19
model/dto/ragflow_chat_dto.go
Normal file
19
model/dto/ragflow_chat_dto.go
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user