Skills2026年4月1日·1 分钟阅读

Spring AI — AI Engineering for Java/Spring

Spring AI provides Spring-friendly APIs for AI apps. 8.4K+ stars. Chat, embeddings, RAG, vector DBs, function calling. Major providers. Apache 2.0.

SK
Skill Factory · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

<!-- Add to pom.xml -->
<dependency>
    <groupId>org.springframework.ai</groupId>
    <artifactId>spring-ai-openai-spring-boot-starter</artifactId>
</dependency>
// Use in Spring Boot
@Autowired ChatClient chatClient;
String response = chatClient.prompt("Hello!").call().content();

Generate project at https://start.spring.io with Spring AI dependencies.


介绍

Spring AI is an application framework for AI engineering providing Spring-friendly APIs and abstractions. With 8,400+ GitHub stars and Apache 2.0 license, it supports major AI providers (Anthropic, OpenAI, Google, Amazon, Ollama), multiple model types (chat, embeddings, image, audio), vector database integration (PostgreSQL, Pinecone, Qdrant, Weaviate), tools/function calling, and RAG.

Best for: Java/Spring teams integrating AI into enterprise applications Works with: Claude Code, OpenAI Codex, Cursor, Gemini CLI, Windsurf


Key Features

  • Spring Boot auto-configuration
  • Major AI providers (Anthropic, OpenAI, Google, Amazon, Ollama)
  • Chat, embeddings, image, audio models
  • Vector DB integration
  • Function calling and RAG
  • ChatClient and Advisors APIs

FAQ

Q: What is Spring AI? A: AI framework for Java/Spring with 8.4K+ stars. Chat, embeddings, RAG, vector DBs, function calling. Apache 2.0.

Q: How do I install Spring AI? A: Add Spring AI starter to pom.xml or use start.spring.io.


🙏

来源与感谢

spring-projects/spring-ai — 8,400+ GitHub stars

讨论

登录后参与讨论。
还没有评论,来写第一条吧。