7 lessons · take it step by step
Spring AI
Build Java AI applications with ChatClient, structured output, tools, conversation memory and a tested pgvector RAG laboratory.
Start here
Follow the order if you are new, or jump straight to a topic you need.
Spring AI: Getting Started
20–30 minRun a pinned Spring Boot AI laboratory with separate fixture and Ollama modes.
Spring AI ChatClient
20–30 minCompose versioned requests, inspect response metadata and stream text through an injected ChatClient builder.
Structured Output in Spring AI
20–30 minMap model output to Java records, then validate business and evidence invariants.
Spring AI Tool Calling
20–30 minExpose narrow Java tools and enforce resource authorization inside the application.
RAG with PostgreSQL & pgvector
20–30 minPersist document vectors, filter by trusted tenant and return answers with verifiable source IDs.
Advisors & Conversation Memory
20–30 minCompose memory into a ChatClient without mixing users, conversations or retrieved knowledge.
Testing & Evaluation for Spring AI
20–30 minSeparate unit behavior, provider contracts, database retrieval and live answer quality.