通过yml开关控制使用哪些模型和向量库

This commit is contained in:
thinkgem
2025-06-18 10:59:44 +08:00
parent 28293383dd
commit 5fc096ab0a
4 changed files with 46 additions and 9 deletions

View File

@@ -43,11 +43,11 @@
<artifactId>spring-ai-starter-model-openai</artifactId>
</dependency>
<!-- 本地大模型
<!-- 本地大模型 -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-model-ollama</artifactId>
</dependency> -->
</dependency>
<!-- 向量数据库 -->
<dependency>
@@ -65,19 +65,19 @@
<artifactId>httpclient5</artifactId>
</dependency>
<!-- PG 向量数据库
<!-- PG 向量数据库 -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-vector-store-pgvector</artifactId>
</dependency> -->
</dependency>
<!-- ES 向量数据库
<!-- ES 向量数据库 -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-vector-store-elasticsearch</artifactId>
</dependency> -->
</dependency>
<!-- Milvus 向量数据库
<!-- Milvus 向量数据库 -->
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-vector-store-milvus</artifactId>
@@ -92,7 +92,7 @@
<groupId>io.netty</groupId>
<artifactId>netty-resolver-dns-native-macos</artifactId>
<classifier>osx-aarch_64</classifier>
</dependency> -->
</dependency>
<!-- HTML 转 Markdown -->
<dependency>