InfoSphere/Spring AI 1.1.9-SNAPSHOT/ 返回书籍
Reference

Development-time Services

qianmoQqianmoQ· 更新于 2026-09-20· 阅读 6 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录
This version is still in development and is not considered stable yet. For the latest stable version, please use Spring AI 2.0.1!

Docker Compose

Spring AI provides Spring Boot auto-configuration for establishing a connection to a model service or vector store running via Docker Compose. To enable it, add the following dependency to your project’s Maven pom.xml file:

<dependency>
   <groupId>org.springframework.ai</groupId>
   <artifactId>spring-ai-spring-boot-docker-compose</artifactId>
</dependency>

or to your Gradle build.gradle build file.

dependencies {
    implementation 'org.springframework.ai:spring-ai-spring-boot-docker-compose'
}
Refer to the Dependency Management section to add the Spring AI BOM to your build file.

Service Connections

The following service connection factories are provided in the spring-ai-spring-boot-docker-compose module:

Connection DetailsMatched on
AwsOpenSearchConnectionDetailsContainers named localstack/localstack
ChromaConnectionDetailsContainers named chromadb/chroma, ghcr.io/chroma-core/chroma
MongoConnectionDetailsContainers named mongodb/mongodb-atlas-local
OllamaConnectionDetailsContainers named ollama/ollama
OpenSearchConnectionDetailsContainers named opensearchproject/opensearch
QdrantConnectionDetailsContainers named qdrant/qdrant
TypesenseConnectionDetailsContainers named typesense/typesense
WeaviateConnectionDetailsContainers named semitechnologies/weaviate, cr.weaviate.io/semitechnologies/weaviate
McpSseClientConnectionDetailsContainers named docker/mcp-gateway

More service connections are provided by the spring boot module spring-boot-docker-compose. Refer to the Docker Compose Support documentation page for the full list.

评论

登录后参与评论

正在加载评论…