Spring AI in Action
eBook - ePub

Spring AI in Action

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Spring AI in Action

About this book

Use Spring AI to add generative AI features like virtual assistants, text summaries, and suggestions to your Java applications.

No matter what kind of software you’re building, there’s a huge demand for AI features! Until recently, though, Java developers have had few good tools for adding AI features to existing and new applications. Spring AI, an exciting new extension for Spring and Spring Boot, changes the equation. Spring AI provides generative AI capabilities natively within the framework, so you can stick with Java end-to-end. Spring AI in Action shows you how!

In Spring AI in Action you will:

• Learn Spring AI from the ground up!
• Create text summaries, virtual assistants and more in Spring Boot applications
• RAG and other techniques to improve LLM responses
• Text from images and images from text

Spring AI makes it much, much easier to add generative AI features to Spring applications. With this powerful framework extension, you can write familiar Java code to build AI features like virtual assistants, text summaries, and smart search suggestions.

About the technology

When it comes to AI applications, no Python, no problem! The Spring AI framework makes it possible to add LLM-based features to any Spring application using Java or other JVM languages like Kotlin. From setting up Retrieval Augmented Generation (RAG) to creating AI agents, Spring AI is fast, powerful, and instantly familiar.

About the book

In Spring AI in Action, bestselling author Craig Walls shows you how to build AI applications natively using Spring AI and Spring Boot. You’ll start with a simple “Hello AI World” example and quickly advance to more sophisticated techniques, including RAG, AI agents, tool use, speech, and AI observability. You’ll see Craig’s practical example-driven approach—with a relentless emphasis on getting stuff done.

What's inside

• Learn Spring AI from the ground up!
• Create text summaries, virtual assistants and more
• RAG, agents, and multimodal AI
• Chat and conversational memory
• AI tool use

About the reader

For Spring developers. No Generative AI skills required.

About the author

Craig Walls is a principal engineer, a member of the Spring engineering team, and a frequent conference speaker. He is the author of Spring in Action, the bestselling book ever published on Spring Framework.

Table of Contents

1 Getting started with Spring AI
2 Evaluating generated responses
3 Submitting prompts for generation
4 Talking with your documents
5 Enabling conversational memory
6 Activating tool-driven generation
7 Applying Model Context Protocol
8 Generating with voice and pictures
9 Observing AI operations
10 Safeguarding generative AI
11 Applying generative AI patterns
12 Employing agents

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Table of contents

  1. Spring AI in Action
  2. copyright
  3. contents
  4. foreword
  5. preface
  6. acknowledgments
  7. about this book
  8. about the author
  9. about the cover illustration
  10. 1 Getting started with Spring AI
  11. 2 Evaluating generated responses
  12. 3 Submitting prompts for generation
  13. 4 Talking with your documents
  14. 5 Enabling conversational memory
  15. 6 Activating tool-driven generation
  16. 7 Applying Model Context Protocol
  17. 8 Generating with voice and pictures
  18. 9 Observing AI operations
  19. 10 Safeguarding generative AI
  20. 11 Applying generative AI patterns
  21. 12 Employing agents

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Spring AI in Action by Craig Walls in PDF and/or ePUB format, as well as other popular books in Computer Science & Artificial Intelligence (AI) & Semantics. We have over 1.5 million books available in our catalogue for you to explore.