feat: 百科rag

This commit is contained in:
Blizzard
2026-04-23 11:15:58 +08:00
parent b2e6e511cd
commit e9c93d4029
8 changed files with 157 additions and 3 deletions
+15
View File
@@ -0,0 +1,15 @@
package plant
import "sundynix-go/global"
// AiChatHistory AI问答历史记录
type AiChatHistory struct {
global.BaseModel
UserId string `json:"userId" gorm:"size:50;index;comment:用户ID"`
Question string `json:"question" gorm:"type:text;comment:用户提问"`
Answer string `json:"answer" gorm:"type:longtext;comment:AI回答"`
}
func (AiChatHistory) TableName() string {
return "sundynix_ai_chat_history"
}