# spring-ai-alibaba/examples

Examples demonstrating usage of Spring AI & Spring AI Alibaba 📜

Repository: https://github.com/spring-ai-alibaba/examples
Canonical: https://ross.abutalabs.com/products/spring-ai-alibaba-examples
Homepage: https://java2ai.com
Language: Java
License: Apache-2.0
License Family: permissive
Topics: ai, exampls, java, spring-ai-alibaba
Last push: 2026-07-01T15:29:49+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 90, release rhythm 35, longevity 45
- inputs: {"age_days": 630, "days_push": 63, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2861, forks 1204 (observed 2026-08-28T04:07:26.175098+00:00)

## What it is
A collection of example modules demonstrating Spring AI and Spring AI Alibaba usage, from basic chat and image generation to RAG, MCP, tool calling, and multi-agent workflows. It serves as the official quickstart and best-practice reference for Java developers building AI applications with the Spring AI Alibaba framework.

## Use cases
- learn how to build AI agents in Java with Spring
- get started with Spring AI Alibaba examples
- build a RAG application in Java
- implement tool calling with an LLM in Spring
- orchestrate multi-agent workflows with a graph runtime
- integrate DashScope or OpenAI models into a Spring Boot app
- see MCP (Model Context Protocol) usage examples in Java

## When to choose
- you are a Java/Spring developer learning Spring AI or Spring AI Alibaba
- you want runnable reference code for chat, RAG, tool calling, or MCP
- you need quickstart templates with documented env vars and commands
- you want best practices for agent and multi-agent patterns on the JVM

## When to avoid
- you need a production library rather than sample code - use the main spring-ai-alibaba repo
- you work outside the JVM/Spring ecosystem
- you want a framework-agnostic or Python AI agent toolkit
- you need a GUI tool for agent visualization - use Spring AI Alibaba Studio/Admin instead

## Facets
- artifact type: learning-resource
- maturity: active
- function: agent-framework, rag, mcp, chatbot, prompt-engineering, sdk
- domain: artificial-intelligence, large-language-models, developer-tools, tutorials, web-development
- platform: jvm, cross-platform
- tags: spring-ai, spring-ai-alibaba, examples, dashscope, react-agent, multi-agent, workflow-orchestration, java, llm, tool-calling, graph-runtime, ai-agents, retrieval-augmented-generation, spring, maven

## Member repositories
- spring-ai-alibaba/examples (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:26.175098+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:36:27.175311+00:00, confidence not recorded.
  - readme: https://github.com/spring-ai-alibaba/examples (fetched 2026-08-28T04:07:26.175098+00:00, sha a206dfd7ebd1)
  - homepage: https://java2ai.com (fetched 2026-08-29T09:52:30.505694+00:00, sha d394853079be)
  - site_page: https://java2ai.com/docs/overview (fetched 2026-08-29T09:52:30.513680+00:00, sha 0cdc71036b07)
  - site_page: https://java2ai.com/docs/quick-start (fetched 2026-08-29T09:52:30.515736+00:00, sha 22b84ed36987)
  - site_page: https://java2ai.com/docs/frameworks/agent-framework/tutorials/agents (fetched 2026-08-29T09:52:30.517796+00:00, sha 895cd6b3c29f)
  - site_page: https://java2ai.com/docs/frameworks/graph-core/quick-start (fetched 2026-08-29T09:52:30.519992+00:00, sha 44622a6a4b5a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
