Spring AI Advisors provide an AOP-like mechanism to intercept, modify, and enhance AI interactions without touching core business logic. The tutorial covers three advisor types: the built-in QuestionAnswerAdvisor for RAG (retrieval-augmented generation using a vector store), the MessageChatMemoryAdvisor for maintaining conversational state, and building a custom SimpleLoggingAdvisor that logs requests and responses for both blocking and streaming calls. Code examples use Spring Boot, OpenAI, and an in-memory vector store, demonstrating how advisors are registered on the ChatClient and chain execution similar to AOP advice.
•26m watch time
Sort: