Overview of ai4j-spring-boot-starter
mainThe ai4j-spring-boot-starter integrates the ai4j Core SDK into the Spring Boot ecosystem by leveraging Spring's configuration, Bean lifecycle, and business layering.
Key Responsibilities:
- Configuration Binding: Maps
ai.*properties from your application configuration to property objects. - Unified Service Entry: Exposes
AiServicefor interacting with AI models. - Multi-instance Registry: Uses
AiServiceRegistryto manage multiple provider instances. - HTTP Client Management: Provides unified OkHttp configuration, including timeouts and connection capabilities.
- RAG Support: Automatically assembles RAG-related Beans (vector stores, assemblers, rerankers) when conditions are met.
Note: This starter does not redefine the underlying semantics of Chat, Responses, Tool, MCP, or RAG; those are handled by the Core SDK. If you are not using Spring Boot, use the Core SDK directly.