package com.pavis.admin.aigc.model.entity;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.TableName;

import com.pavis.admin.common.model.entity.BaseDO;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 智能体和知识库关联实体
 *
 * @author semi
 * @since 2025/05/26 17:28
 */
@Data
@TableName("aigc_agent_knowledge")
public class AgentKnowledgeDO extends BaseDO {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 智能体ID
     */
    private Long agentId;

    /**
     * 知识库ID
     */
    private Long knowledgeId;

    /**
     * 检索配置
     */
    private String retrievalConfig;

    /**
     * 检索返回数量
     */
    private Integer topK;

    /**
     * 相似度阈值
     */
    private BigDecimal scoreThreshold;
}
