
Learn how Spring AI serves as a layer between your enterprise app and large language models, enabling chat, embeddings, image generation, audio transcription, and moderation.
Explore spring ai docs to see how it provides an abstraction for ai apps, review chat model docs, and learn about rag with providers like OpenAI, Anthropic, and Vertex AI.
Create a spring boot project with the spring ai module, add spring web and OpenAI starter dependencies, and configure the OpenAI api key in application properties.
Configure a spring ai application to use llama by adding the llama dependency, creating a llama controller, and setting the chat model via the model option.
Learn why prompt templates optimize AI model responses by collecting user values (movie type, language, decade, IMDb rating) and constructing a tailored prompt for better results.
Explore implementing a reusable prompt template in a spring-based API, filling placeholders with a map of type, lang, and year to generate targeted movie recommendations.
Implement PG vector storage in a Spring Boot app by adding PG vector and Docker Compose dependencies, wiring embedding model with JDBC template, and configuring schema and dimensions.
Explore retrieval augmented generation (rag) to provide contextual data from a product document by chunking, embedding, and storing in a vector store, improving accuracy and reducing hallucinations.
Implement an image describe endpoint that accepts a string query and a multipart image, posts to image/describe, and returns an analyzed description.
Learn to convert a list of movies to JSON using the bean output converter, switching from a single movie to a movies list with a parameterized type reference.
Spring AI—Gen AI (TELUSKO)
This comprehensive course on Spring AI is your gateway to building intelligent, AI-powered Java applications. It leverages Spring AI, the official module within the Spring framework, designed to seamlessly integrate Large Language Models (LLMs) and a broad spectrum of AI capabilities into your Spring Boot projects.
You'll develop essential skills for integrating diverse AI models, from popular model-as-a-service provider like OpenAI (GPT-4o) to open-source LLM providers like Ollama (Mistral and Deepseek). This is achieved through Spring AI's standardized API, offering remarkable portability and minimizing vendor lock-in.
A significant portion of the curriculum focuses on developing sophisticated conversational AI systems using the intuitive ChatClient API and ChatModel, enabling dynamic and natural interactions. Furthermore, you'll master Retrieval-Augmented Generation (RAG), a critical technique that empowers LLMs with external, up-to-date, and domain-specific knowledge. This involves deep dives into vector embeddings and practical experience with various vector databases like PgVector, Redis, and Spring AI's SimpleVectorStore, ensuring your AI responses are contextually relevant and accurate.
Beyond conventional text-based AI, the course ventures into multimodal applications, covering capabilities like image and audio processing, including text-to-speech and speech-to-text. This expands the possibilities for creating truly immersive and interactive applications. You'll also learn the art of prompt engineering through templates and advisors for enhanced AI interactions, and crucially, how to transform raw AI outputs into neatly structured Java objects (List, Bean, Map) for seamless integration into your application's logic.
This course is ideally suited for Java developers eager to add cutting-edge AI functionalities to their Spring Boot applications, backend developers exploring modern AI integration patterns, and teams dedicated to building the next generation of intelligent, data-driven applications. A solid foundation in Spring Boot and Java programming is recommended to maximize your learning experience. By completing this course, you will be well-equipped to transform your Spring applications with advanced AI features, ensuring you remain at the forefront of the rapidly evolving AI-driven development landscape.