xiangpei
2025-04-18 0aa739db8268b442ab74634289ffed00124a976a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package com.monkeylessey.domain.entity;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.monkeylessey.sys.domain.base.AbsEntity;
import java.io.Serializable;
import lombok.Data;
 
/**
 * chat对话
 *
 * @author 向培
 * @since 2025-04-18
 */
@Data
@TableName("ai_session")
public class Session extends AbsEntity {
 
    private static final long serialVersionUID = 1L;
 
    @TableField("session_name")
    /** 会话名称 */
    private String sessionName;
 
    @TableField("mode")
    /** 会话模式 */
    private String mode;
 
    @TableField("kb_name")
    /** 知识库 */
    private String kbName;
 
    @TableField("top_k")
    /**  */
    private String topK;
 
    @TableField("score_threshold")
    /**  */
    private String scoreThreshold;
 
    @TableField("stream")
    /**  */
    private Integer stream;
 
    @TableField("model")
    /** 大模型 */
    private String model;
 
    @TableField("temperature")
    /**  */
    private String temperature;
 
    @TableField("max_tokens")
    /** 最大吐字数 */
    private Integer maxTokens;
 
    @TableField("prompt_name")
    /**  */
    private String promptName;
 
    @TableField("return_direct")
    /** 是否只返回检索结果不调用大模型 */
    private Integer returnDirect;
 
    @TableField("user_id")
    /**  */
    private String userId;
 
 
}