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.gradlebuild 文件。

dependencies {
    implementation 'org.springframework.ai:spring-ai-spring-boot-docker-compose'
}
请参阅 Dependency Management 部分,将 Spring AI BOM 添加到您的构建文件中。

服务连接

以下服务连接工厂在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


APP信息