Welcome
Thank you for purchasing the MEAP edition of Spring AI in Action. I hope you find it to be a valuable resource as you explore the fascinating world of Generative AI. Writing this book has been a rewarding experience, and I trust that you will enjoy working through it as much as I did creating it.
Generative AI is currently a highly prominent topic. It’s difficult to engage with the news, social media, or technical publications without encountering discussions on AI and its impact on our world. While some of the discourse may be exaggerated or overly cautious, there is a wealth of practical applications for Generative AI that lie between these extremes.
In this book, you will learn how to use Spring AI to integrate Large Language Models (LLMs) from providers like OpenAI, Mistral AI, and Anthropic into your Spring applications. You will enable your applications to ask questions on behalf of users, including inquiries about your own documents and APIs. Additionally, you will explore techniques for managing conversational memory in multi-turn interactions. In later chapters, you will discover how to work with multimodal LLMs to generate and interpret images, audio, and other types of content, alongside textual prompts and responses.