๐Ÿค– Spring AI (+ LangChain4j)

Checklist

  • ChatClient fluent API, system/user messages, prompt templates
  • Model portability: Anthropic, OpenAI, Gemini, Ollama (local), Bedrock
  • Streaming responses (Flux โ†’ SSE)
  • Structured output โ†’ Java records
  • Tool calling (@Tool methods) and returning tool results
  • Advisors: chat memory, RAG (QuestionAnswerAdvisor), logging, safeguards
  • VectorStore abstraction: pgvector, Redis, etc.; ETL pipeline (DocumentReader โ†’ splitter โ†’ embed โ†’ store)
  • MCP: Spring AI MCP server & client starters โญ โ†’ MCP
  • Observability: Micrometer metrics for tokens and latency
  • Evaluation helpers (relevancy/fact-checking evaluators)
  • Compare with LangChain4j (AI Services, agents) and know when youโ€™d pick each

๐Ÿงช Labs (๐ŸŸข warm-up โ†’ ๐ŸŸก core โ†’ ๐Ÿ”ด hard โ†’ โšซ boss)

  • ๐ŸŸข ChatClient with streaming + structured output into records
  • ๐ŸŸก @Tool methods + advisors (memory, logging); compare with LangChain4j AI Services
  • ๐Ÿ”ด An ETL pipeline into pgvector + QuestionAnswerAdvisor, then replace it with your own hybrid retriever
  • ๐Ÿ”ด Orbit MCP server with the Spring AI MCP starter (tools + resources + OAuth)
  • โšซ The MCP client side: connect external MCP servers as Orbit tools with scopes

๐Ÿง  Cognitive tasks

  • Framework vs hand-rolled: what does Spring AIโ€™s tool calling do that your Go loop does by hand?

๐Ÿ›ฐ๏ธ Orbit integration

Go deeper

โš™๏ธ LLM Inference Internals ยท ๐Ÿงฉ AI & Agent Patterns ยท ๐Ÿค– MCP

Resources

  • docs.spring.io/spring-ai โญ ยท Spring AI examples repo ยท Dan Vega + Josh Long videos on Spring AI ยท docs.langchain4j.dev Related: AI Engineering Roadmap