From 9e2b928459ccee885104635ade2314f868d11f8f Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 25 八月 2026 13:10:54 +0800
Subject: [PATCH] refactor(ai): 移除多个AI相关依赖和配置
---
yudao-framework/yudao-spring-boot-starter-mybatis/pom.xml | 35 --------
yudao-server/src/main/resources/application-dev.yaml | 3
yudao-server/src/main/resources/application-jhhg.yaml | 2
yudao-server/src/main/resources/application-thzy.yaml | 2
sql/mysql/mes_seed_quality_init.sql | 13 +++
yudao-module-ai/pom.xml | 132 --------------------------------
yudao-server/src/main/resources/application.yaml | 27 ------
yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/config/AiAutoConfiguration.java | 7 -
yudao-server/src/main/resources/application-test.yaml | 2
yudao-server/src/main/resources/application-local.yaml | 2
yudao-server/src/main/resources/application-yzfx.yaml | 2
11 files changed, 16 insertions(+), 211 deletions(-)
diff --git a/sql/mysql/mes_seed_quality_init.sql b/sql/mysql/mes_seed_quality_init.sql
index e6f5615..9d1441d 100644
--- a/sql/mysql/mes_seed_quality_init.sql
+++ b/sql/mysql/mes_seed_quality_init.sql
@@ -14,7 +14,18 @@
WHERE NOT EXISTS (SELECT 1 FROM system_menu WHERE parent_id = 5500 AND path = 'seed-quality' AND deleted = 0);
INSERT INTO system_menu (name, permission, type, sort, parent_id, path, icon, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted)
-SELECT '鎻愪氦璐ㄦ', 'mes:qc-seed-quality:submit', 3, 1, id, '', '', 0, b'1', b'1', b'1', '1', NOW(), '1', NOW(), b'0'
+SELECT '鏌ヨ璐ㄦ', 'mes:qc-seed-quality:query', 3, 1, id, '', '', 0, b'1', b'1', b'1', '1', NOW(), '1', NOW(), b'0'
+FROM system_menu
+WHERE parent_id = 5500 AND path = 'seed-quality' AND deleted = 0
+ AND NOT EXISTS (
+ SELECT 1 FROM system_menu child
+ WHERE child.parent_id = system_menu.id
+ AND child.permission = 'mes:qc-seed-quality:query'
+ AND child.deleted = 0
+ );
+
+INSERT INTO system_menu (name, permission, type, sort, parent_id, path, icon, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted)
+SELECT '鎻愪氦璐ㄦ', 'mes:qc-seed-quality:submit', 3, 2, id, '', '', 0, b'1', b'1', b'1', '1', NOW(), '1', NOW(), b'0'
FROM system_menu
WHERE parent_id = 5500 AND path = 'seed-quality' AND deleted = 0
AND NOT EXISTS (
diff --git a/yudao-framework/yudao-spring-boot-starter-mybatis/pom.xml b/yudao-framework/yudao-spring-boot-starter-mybatis/pom.xml
index bd16132..ad096ec 100644
--- a/yudao-framework/yudao-spring-boot-starter-mybatis/pom.xml
+++ b/yudao-framework/yudao-spring-boot-starter-mybatis/pom.xml
@@ -33,41 +33,6 @@
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
- <dependency>
- <groupId>com.oracle.database.jdbc</groupId>
- <artifactId>ojdbc8</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>com.microsoft.sqlserver</groupId>
- <artifactId>mssql-jdbc</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>com.dameng</groupId>
- <artifactId>DmJdbcDriver18</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>cn.com.kingbase</groupId>
- <artifactId>kingbase8</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>org.opengauss</groupId>
- <artifactId>opengauss-jdbc</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>com.taosdata.jdbc</groupId>
- <artifactId>taos-jdbcdriver</artifactId>
- <optional>true</optional>
- </dependency>
<dependency>
<groupId>com.alibaba</groupId>
diff --git a/yudao-module-ai/pom.xml b/yudao-module-ai/pom.xml
index fda0405..bfedb3c 100644
--- a/yudao-module-ai/pom.xml
+++ b/yudao-module-ai/pom.xml
@@ -22,7 +22,6 @@
<spring-ai.version>2.0.0</spring-ai.version>
<!-- https://mvnrepository.com/artifact/com.alibaba.cloud.ai/spring-ai-alibaba -->
<alibaba-ai.version>2.0.0-M1.1</alibaba-ai.version>
- <tinyflow.version>1.2.6</tinyflow.version>
</properties>
<dependencies>
@@ -91,45 +90,7 @@
</exclusion>
</exclusions>
</dependency>
- <dependency>
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-starter-model-anthropic</artifactId>
- <version>${spring-ai.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-starter-model-deepseek</artifactId>
- <version>${spring-ai.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-starter-model-google-genai</artifactId>
- <version>${spring-ai.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-starter-model-ollama</artifactId>
- <version>${spring-ai.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-starter-model-stability-ai</artifactId>
- <version>${spring-ai.version}</version>
- </dependency>
<!-- 鍚戦噺瀛樺偍锛歨ttps://db-engines.com/en/ranking/vector+dbms -->
- <dependency>
- <!-- Qdrant锛歨ttps://qdrant.tech/ -->
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-starter-vector-store-qdrant</artifactId>
- <version>${spring-ai.version}</version>
- </dependency>
-
- <dependency>
- <!-- Redis锛歨ttps://redis.io/docs/latest/develop/get-started/vector-database/ -->
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-starter-vector-store-redis</artifactId>
- <version>${spring-ai.version}</version>
- </dependency>
<dependency>
<groupId>cn.iocoder.boot</groupId>
<artifactId>yudao-spring-boot-starter-redis</artifactId>
@@ -149,105 +110,18 @@
</exclusions>
</dependency>
- <dependency>
- <!-- Tika锛氳礋璐e唴瀹圭殑瑙f瀽 -->
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-tika-document-reader</artifactId>
- <version>${spring-ai.version}</version>
- <!-- TODO 鑺嬭壙锛歜oot 椤圭洰閲岋紝涓嶅紩鍏� cloud 渚濊禆锛侊紒锛佸彟澶栵紝杩欐牱涔熸槸涓轰簡瑙e喅鍚姩鎶ラ敊鐨勯棶棰橈紒 -->
- <exclusions>
- <exclusion>
- <artifactId>spring-cloud-function-context</artifactId>
- <groupId>org.springframework.cloud</groupId>
- </exclusion>
- <exclusion>
- <artifactId>spring-cloud-function-core</artifactId>
- <groupId>org.springframework.cloud</groupId>
- </exclusion>
- </exclusions>
- </dependency>
-
<!-- Apache POI锛氳礋璐� .doc/.docx 鏂囦欢鍐呭鎻愬彇锛屾瘮 Tika 瀵逛腑鏂囨敮鎸佹洿濂� -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.4.0</version>
</dependency>
-
- <!-- MCP 鐩稿叧 -->
- <!--
- 鐗规畩璇存槑锛氫笉鑳戒娇鐢� spring-ai-starter-mcp-server-webflux 鎴� spring-ai-starter-mcp-client-webflux 锛侊紒锛�
- 鍘熷洜锛氶」鐩娇鐢ㄤ簡 SpringMVC锛岃�屼笉鏄� WebFlux銆傚紩鍏ヤ笂杩� 2 涓紝浼氬鑷� SSE Server 澶辨晥銆�
- -->
<dependency>
- <!-- 鏈嶅姟绔� -->
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
- <version>${spring-ai.version}</version>
- <exclusions>
- <exclusion>
- <groupId>io.swagger.core.v3</groupId>
- <artifactId>swagger-annotations-jakarta</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-autoconfigure-mcp-server-common</artifactId>
- <version>${spring-ai.version}</version>
- </dependency>
- <dependency>
- <!-- 瀹㈡埛绔� -->
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-starter-mcp-client</artifactId>
- <version>${spring-ai.version}</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.ai</groupId>
- <artifactId>spring-ai-autoconfigure-mcp-client-common</artifactId>
- <version>${spring-ai.version}</version>
+ <groupId>org.apache.poi</groupId>
+ <artifactId>poi-scratchpad</artifactId>
+ <version>5.4.0</version>
</dependency>
- <!-- TinyFlow锛欰I 宸ヤ綔娴� -->
- <dependency>
- <groupId>dev.tinyflow</groupId>
- <artifactId>tinyflow-java-core</artifactId>
- <version>${tinyflow.version}</version>
- <exclusions>
- <exclusion>
- <groupId>com.jfinal</groupId>
- <artifactId>enjoy</artifactId>
- </exclusion>
- <exclusion>
- <!-- 瑙e喅 https://gitee.com/zhijiantianya/ruoyi-vue-pro/pulls/1318/ 闂 -->
- <groupId>com.agentsflex</groupId>
- <artifactId>agents-flex-store-elasticsearch</artifactId>
- </exclusion>
- <exclusion>
- <!-- 瑙e喅 https://t.zsxq.com/pCBZC 闂 -->
- <groupId>com.agentsflex</groupId>
- <artifactId>agents-flex-search-engine-es</artifactId>
- </exclusion>
- <exclusion>
- <!-- TODO @鑺嬭壙锛氭殏鏃剁Щ闄� groovy锛屽拰 iot 鍐茬獊 -->
- <groupId>org.codehaus.groovy</groupId>
- <artifactId>groovy-all</artifactId>
- </exclusion>
- <!-- 瑙e喅鍜� logback 鐨勬棩蹇楀啿绐� -->
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-simple</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-slf4j-impl</artifactId>
- </exclusion>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-reload4j</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
</dependencies>
</project>
diff --git a/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/config/AiAutoConfiguration.java b/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/config/AiAutoConfiguration.java
index 7f22950..5edd070 100644
--- a/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/config/AiAutoConfiguration.java
+++ b/yudao-module-ai/src/main/java/cn/iocoder/yudao/module/ai/framework/ai/config/AiAutoConfiguration.java
@@ -13,11 +13,8 @@
import org.springframework.ai.openai.OpenAiChatOptions;
import org.springframework.ai.openai.OpenAiEmbeddingModel;
import org.springframework.ai.openai.OpenAiEmbeddingOptions;
-import org.springframework.ai.retry.RetryUtils;
import org.springframework.ai.tokenizer.JTokkitTokenCountEstimator;
import org.springframework.ai.tokenizer.TokenCountEstimator;
-import org.springframework.ai.vectorstore.qdrant.autoconfigure.QdrantVectorStoreProperties;
-import org.springframework.ai.vectorstore.redis.autoconfigure.RedisVectorStoreProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@ -31,9 +28,7 @@
*/
@Configuration
@EnableConfigurationProperties({
- YudaoAiProperties.class,
- QdrantVectorStoreProperties.class,
- RedisVectorStoreProperties.class
+ YudaoAiProperties.class
})
@Slf4j
public class AiAutoConfiguration {
diff --git a/yudao-server/src/main/resources/application-dev.yaml b/yudao-server/src/main/resources/application-dev.yaml
index af8ba92..d3a4ab3 100644
--- a/yudao-server/src/main/resources/application-dev.yaml
+++ b/yudao-server/src/main/resources/application-dev.yaml
@@ -7,12 +7,9 @@
autoconfigure:
# noinspection SpringBootApplicationYaml
exclude:
- - org.springframework.ai.vectorstore.qdrant.autoconfigure.QdrantVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Qdrant锛屾墜鍔ㄥ垱寤�
- - org.springframework.ai.vectorstore.redis.autoconfigure.RedisVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Redis锛屾墜鍔ㄥ垱寤�
- org.springframework.ai.vectorstore.milvus.autoconfigure.MilvusVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Milvus锛屾墜鍔ㄥ垱寤�
- org.dromara.trans.config.TransServiceConfig # TODO 鑺嬭壙锛歟asy-trans 鍏煎 Spring Boot 4 鍚庣Щ闄わ紙TransServiceConfig 寮曠敤浜嗗凡绉婚櫎鐨� RestTemplateBuilder锛�
# 绂佺敤鏈厤缃� API Key 鐨勬ā鍨嬭嚜鍔ㄩ厤缃�
- - org.springframework.ai.model.deepseek.autoconfigure.DeepSeekChatAutoConfiguration
# 鏁版嵁婧愰厤缃」
datasource:
druid: # Druid 銆愮洃鎺с�戠浉鍏崇殑鍏ㄥ眬閰嶇疆
diff --git a/yudao-server/src/main/resources/application-jhhg.yaml b/yudao-server/src/main/resources/application-jhhg.yaml
index bbf158a..27b1afe 100644
--- a/yudao-server/src/main/resources/application-jhhg.yaml
+++ b/yudao-server/src/main/resources/application-jhhg.yaml
@@ -7,8 +7,6 @@
# noinspection SpringBootApplicationYaml
exclude:
- org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration # 榛樿 local 鐜锛屼笉寮�鍚� Quartz 鐨勮嚜鍔ㄩ厤缃�
- - org.springframework.ai.vectorstore.qdrant.autoconfigure.QdrantVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Qdrant锛屾墜鍔ㄥ垱寤�
- - org.springframework.ai.vectorstore.redis.autoconfigure.RedisVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Redis锛屾墜鍔ㄥ垱寤�
- org.springframework.ai.vectorstore.milvus.autoconfigure.MilvusVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Milvus锛屾墜鍔ㄥ垱寤�
- org.dromara.trans.config.TransServiceConfig # TODO 鑺嬭壙锛歟asy-trans 鍏煎 Spring Boot 4 鍚庣Щ闄わ紙TransServiceConfig 寮曠敤浜嗗凡绉婚櫎鐨� RestTemplateBuilder锛�
# 绂佺敤鏈厤缃� API Key 鐨勬ā鍨嬭嚜鍔ㄩ厤缃紙鍙繚鐣欓�氫箟鍗冮棶 Embedding 鐨勬墜鍔ㄩ厤缃級
diff --git a/yudao-server/src/main/resources/application-local.yaml b/yudao-server/src/main/resources/application-local.yaml
index 0c3d99a..b4c990d 100644
--- a/yudao-server/src/main/resources/application-local.yaml
+++ b/yudao-server/src/main/resources/application-local.yaml
@@ -7,8 +7,6 @@
# noinspection SpringBootApplicationYaml
exclude:
- org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration # 榛樿 local 鐜锛屼笉寮�鍚� Quartz 鐨勮嚜鍔ㄩ厤缃�
- - org.springframework.ai.vectorstore.qdrant.autoconfigure.QdrantVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Qdrant锛屾墜鍔ㄥ垱寤�
- - org.springframework.ai.vectorstore.redis.autoconfigure.RedisVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Redis锛屾墜鍔ㄥ垱寤�
- org.springframework.ai.vectorstore.milvus.autoconfigure.MilvusVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Milvus锛屾墜鍔ㄥ垱寤�
- org.dromara.trans.config.TransServiceConfig # TODO 鑺嬭壙锛歟asy-trans 鍏煎 Spring Boot 4 鍚庣Щ闄わ紙TransServiceConfig 寮曠敤浜嗗凡绉婚櫎鐨� RestTemplateBuilder锛�
# 绂佺敤鏈厤缃� API Key 鐨勬ā鍨嬭嚜鍔ㄩ厤缃紙鍙繚鐣欓�氫箟鍗冮棶 Embedding 鐨勬墜鍔ㄩ厤缃級
diff --git a/yudao-server/src/main/resources/application-test.yaml b/yudao-server/src/main/resources/application-test.yaml
index 5e34067..f0e1db9 100644
--- a/yudao-server/src/main/resources/application-test.yaml
+++ b/yudao-server/src/main/resources/application-test.yaml
@@ -7,8 +7,6 @@
# noinspection SpringBootApplicationYaml
exclude:
- org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration # 榛樿 local 鐜锛屼笉寮�鍚� Quartz 鐨勮嚜鍔ㄩ厤缃�
- - org.springframework.ai.vectorstore.qdrant.autoconfigure.QdrantVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Qdrant锛屾墜鍔ㄥ垱寤�
- - org.springframework.ai.vectorstore.redis.autoconfigure.RedisVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Redis锛屾墜鍔ㄥ垱寤�
- org.springframework.ai.vectorstore.milvus.autoconfigure.MilvusVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Milvus锛屾墜鍔ㄥ垱寤�
- org.dromara.trans.config.TransServiceConfig # TODO 鑺嬭壙锛歟asy-trans 鍏煎 Spring Boot 4 鍚庣Щ闄わ紙TransServiceConfig 寮曠敤浜嗗凡绉婚櫎鐨� RestTemplateBuilder锛�
# 绂佺敤鏈厤缃� API Key 鐨勬ā鍨嬭嚜鍔ㄩ厤缃紙鍙繚鐣欓�氫箟鍗冮棶 Embedding 鐨勬墜鍔ㄩ厤缃級
diff --git a/yudao-server/src/main/resources/application-thzy.yaml b/yudao-server/src/main/resources/application-thzy.yaml
index 778d435..0626831 100644
--- a/yudao-server/src/main/resources/application-thzy.yaml
+++ b/yudao-server/src/main/resources/application-thzy.yaml
@@ -7,8 +7,6 @@
# noinspection SpringBootApplicationYaml
exclude:
- org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration # 榛樿 local 鐜锛屼笉寮�鍚� Quartz 鐨勮嚜鍔ㄩ厤缃�
- - org.springframework.ai.vectorstore.qdrant.autoconfigure.QdrantVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Qdrant锛屾墜鍔ㄥ垱寤�
- - org.springframework.ai.vectorstore.redis.autoconfigure.RedisVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Redis锛屾墜鍔ㄥ垱寤�
- org.springframework.ai.vectorstore.milvus.autoconfigure.MilvusVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Milvus锛屾墜鍔ㄥ垱寤�
- org.dromara.trans.config.TransServiceConfig # TODO 鑺嬭壙锛歟asy-trans 鍏煎 Spring Boot 4 鍚庣Щ闄わ紙TransServiceConfig 寮曠敤浜嗗凡绉婚櫎鐨� RestTemplateBuilder锛�
# 绂佺敤鏈厤缃� API Key 鐨勬ā鍨嬭嚜鍔ㄩ厤缃紙鍙繚鐣欓�氫箟鍗冮棶 Embedding 鐨勬墜鍔ㄩ厤缃級
diff --git a/yudao-server/src/main/resources/application-yzfx.yaml b/yudao-server/src/main/resources/application-yzfx.yaml
index 6834e7c..0ea0e29 100644
--- a/yudao-server/src/main/resources/application-yzfx.yaml
+++ b/yudao-server/src/main/resources/application-yzfx.yaml
@@ -7,8 +7,6 @@
# noinspection SpringBootApplicationYaml
exclude:
- org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration # 榛樿 local 鐜锛屼笉寮�鍚� Quartz 鐨勮嚜鍔ㄩ厤缃�
- - org.springframework.ai.vectorstore.qdrant.autoconfigure.QdrantVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Qdrant锛屾墜鍔ㄥ垱寤�
- - org.springframework.ai.vectorstore.redis.autoconfigure.RedisVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Redis锛屾墜鍔ㄥ垱寤�
- org.springframework.ai.vectorstore.milvus.autoconfigure.MilvusVectorStoreAutoConfiguration # 绂佺敤 AI 妯″潡鐨� Milvus锛屾墜鍔ㄥ垱寤�
- org.dromara.trans.config.TransServiceConfig # TODO 鑺嬭壙锛歟asy-trans 鍏煎 Spring Boot 4 鍚庣Щ闄わ紙TransServiceConfig 寮曠敤浜嗗凡绉婚櫎鐨� RestTemplateBuilder锛�
# 绂佺敤鏈厤缃� API Key 鐨勬ā鍨嬭嚜鍔ㄩ厤缃紙鍙繚鐣欓�氫箟鍗冮棶 Embedding 鐨勬墜鍔ㄩ厤缃級
diff --git a/yudao-server/src/main/resources/application.yaml b/yudao-server/src/main/resources/application.yaml
index ce9f718..2a0be3d 100644
--- a/yudao-server/src/main/resources/application.yaml
+++ b/yudao-server/src/main/resources/application.yaml
@@ -137,15 +137,6 @@
spring:
ai:
vectorstore: # 鍚戦噺瀛樺偍
- redis:
- initialize-schema: true
- index-name: knowledge_index # Redis 涓悜閲忕储寮曠殑鍚嶇О锛氱敤浜庡瓨鍌ㄥ拰妫�绱㈠悜閲忔暟鎹殑绱㈠紩鏍囪瘑绗︼紝鎵�鏈夌浉鍏崇殑鍚戦噺鎼滅储鎿嶄綔閮戒細鍩轰簬杩欎釜绱㈠紩杩涜
- prefix: "knowledge_segment:" # Redis 涓瓨鍌ㄥ悜閲忔暟鎹殑閿悕鍓嶇紑锛氳繖涓墠缂�浼氭坊鍔犲埌姣忎釜瀛樺偍鍦� Redis 涓殑鍚戦噺鏁版嵁閿悕鍓嶏紝姣忎釜 document 閮芥槸涓�涓� hash 缁撴瀯
- qdrant:
- initialize-schema: true
- collection-name: knowledge_segment # Qdrant 涓悜閲忛泦鍚堢殑鍚嶇О锛氱敤浜庡瓨鍌ㄥ悜閲忔暟鎹殑闆嗗悎鏍囪瘑绗︼紝鎵�鏈夌浉鍏崇殑鍚戦噺鎿嶄綔閮戒細鍦ㄨ繖涓泦鍚堜腑杩涜
- host: 127.0.0.1
- port: 6334
milvus:
initialize-schema: true
database-name: default # Milvus 涓暟鎹簱鐨勫悕绉�
@@ -155,24 +146,6 @@
port: 19530
model:
rerank: false # 鏄惁寮�鍚� Rerank 妯″瀷
- mcp:
- server:
- enabled: false
- name: yudao-mcp-server
- version: 1.0.0
- instructions: 涓�涓� MCP 绀轰緥鏈嶅姟
- sse-endpoint: /sse
- client:
- enabled: false
- name: mcp
- sse:
- connections:
- filesystem:
- url: http://127.0.0.1:8089
- sse-endpoint: /sse
- annotation-scanner:
- enabled: false # TODO @鑺嬭壙锛氭湁 bug https://github.com/spring-projects/spring-ai/issues/4917 闇�瑕佸畼鏂逛慨澶�
-
yudao:
ai:
web-search:
--
Gitblit v1.9.3