2026-08-07 d65c665b483f9c7b57358d4ad2c4bf3c6e1f9608
yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/config/YudaoAiProperties.java
@@ -4,7 +4,7 @@
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
 * 芋道 AI 配置类
 * 超级管理员 AI 配置类
 */
@ConfigurationProperties(prefix = "yudao.ai")
@Data
@@ -12,10 +12,37 @@
    private WebSearch webSearch;
    /** 向量库配置 */
    private VectorStore vectorStore = new VectorStore();
    @Data
    public static class WebSearch {
        private boolean enable;
        private String apiKey;
    }
    @Data
    public static class VectorStore {
        /** 向量库类型:milvus */
        private String type = "milvus";
        /** Milvus 配置 */
        private Milvus milvus = new Milvus();
        @Data
        public static class Milvus {
            /** 是否初始化 Schema */
            private boolean initializeSchema = true;
            /** 数据库名称 */
            private String databaseName = "default";
            /** 集合名称 */
            private String collectionName = "knowledge_segment";
            /** 主机地址 */
            private String host = "127.0.0.1";
            /** 端口 */
            private int port = 19530;
        }
    }
}