开发时服务
Docker Compose
Spring AI 提供了 Spring Boot 自动配置,用于建立与通过 Docker Compose 运行的模型服务或向量存储的连接。要启用此功能,请将以下依赖项添加到项目的 Maven pom.xml 文件中:
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-spring-boot-docker-compose</artifactId>
</dependency>
或者你的 Gradlebuild.gradle构建文件。
dependencies {
implementation 'org.springframework.ai:spring-ai-spring-boot-docker-compose'
}
服务连接
spring-ai-spring-boot-docker-compose 模块中提供了以下服务连接工厂:
连接详细信息 | 匹配 |
---|---|
AwsOpenSearchConnectionDetails |
容器命名 localstack/localstack |
ChromaConnectionDetails |
名为 chromadb/chroma 、ghcr.io/chroma-core/chroma 的容器 |
MongoConnectionDetails |
容器命名 mongodb/mongodb-atlas-local |
OllamaConnectionDetails |
容器命名 ollama/ollama |
OpenSearchConnectionDetails |
容器命名 opensearchproject/opensearch |
QdrantConnectionDetails |
容器命名 qdrant/qdrant |
TypesenseConnectionDetails |
容器命名 typesense/typesense |
WeaviateConnectionDetails |
名为 semitechnologies/weaviate 、cr.weaviate.io/semitechnologies/weaviate 的容器 |
作者:Jeebiz 创建时间:2025-08-04 00:52
最后编辑:Jeebiz 更新时间:2025-08-08 00:47
最后编辑:Jeebiz 更新时间:2025-08-08 00:47