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_app_knowledge")
public class AppKnowledgeDO extends BaseDO {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 应用ID
     */
    private Long appId;

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

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

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

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