Build AI Applications with Spring AI

Build AI Applications with Spring AI

Fu Cheng
This is a sample of the book's content.Buy on Leanpub

Table of Contents

Spring AI Basics›

  • Getting Started
    • Prerequisites
    • Spring Boot Application
    • Use Model Service
    • Consolidate Local and Production Environment
  • Chat Completion
    • Model
    • ChatModel
    • Create Prompts
    • Chat Response
    • ChatClient
    • Use Custom Chat Options
    • Prompt Template
    • Advisor
  • Streaming Chat Completion
    • StreamingChatModel
    • Streaming Web Application
    • Streaming JSON Events
  • Structured Output Converter
    • StructuredOutputConverter
    • ListOutputConverter
    • MapOutputConverter
    • BeanOutputConverter
    • Use ChatClient
  • Multimodal Input
    • Media
    • Image Understanding

Retrieval-Augmented Generation›

  • RAG Introduction
    • Reduce Hallucinations
    • Naive RAG
  • Embedding Model
    • EmbeddingModel
    • EmbeddingOptions
    • BatchingStrategy
    • Use EmbeddingModel
  • Documents
    • Create Documents
    • Document Reader
    • Document Transformer
    • Document Writer
  • Vector Store
    • VectorStore
    • Create VectorStore
    • Add Documents
    • Delete Documents
    • Similarity Search
    • VectorStore REST API
    • SimpleVectorStore
    • Pgvector
    • Vector Store Cloud Services
  • RAG
    • Simple RAG
  • Modular RAG
    • Query
    • Pre-Retrieval
    • Retrieval
    • Post-Retrieval
    • Generation
    • RetrievalAugmentationAdvisor
  • RAG Examples
    • Text-to-SQL
    • PDF Q&A

MCP›

  • MCP Introduction
  • Quick Start
    • Java Development Basics
    • stdio Server
    • HTTP SSE Server
    • MCP Client
    • Spring Integration
    • Spring AI Integration
  • MCP Server
    • Shared Models
    • ServerExchange
    • Prompt Templates
    • Resources
    • Tools
    • Completions
    • Logging
    • Pagination
  • MCP Client
    • Roots
    • Sampling
  • MCP Examples
    • File System MCP Server

Agent›

  • Agent Introduction
    • Cooking Suggestion Agent
  • Agent Components
    • Profile
    • Persona
    • Tools
    • Knowledge and memory
    • Reasoning and evaluation
    • Planning and feedback
  • Agentic Patterns
    • Task Execution
    • Evaluator-Optimizer
    • Parallelization Workflow
    • Routing Workflow
    • Chain Workflow
    • Agent as Tool
    • Tool as Agent
    • Orchestrator-Workers Workflow
  • Agent Development
    • Persona
    • Knowledge
    • Tools
    • Reasoning
    • Task

Source Code and Materials›

    Build AI Applications with Spring AI/overview

    Build AI Applications with Spring AI

    course_overview

    Create Java AI applications using Spring AI, RAG, MCP and Agents

    count_parts
    ·
    count_chapters
    begin_reading
    download
    part_count

    Spring AI Basics5 chapters

    Begin part ›
    1. Getting Started

    2. Chat Completion

    3. Streaming Chat Completion

    4. Structured Output Converter

    5. Multimodal Input

    part_count

    Retrieval-Augmented Generation7 chapters

    Begin part ›
    1. RAG Introduction

    2. Embedding Model

    3. Documents

    4. Vector Store

    5. RAG

    6. Modular RAG

    7. RAG Examples

    part_count

    MCP5 chapters

    Begin part ›
    1. MCP Introduction

    2. Quick Start

    3. MCP Server

    4. MCP Client

    5. MCP Examples

    part_count

    Agent4 chapters

    Begin part ›
    1. Agent Introduction

    2. Agent Components

    3. Agentic Patterns

    4. Agent Development

    part_count

    Source Code and Materials0 chapters

    Begin part ›