advancedSpring AI — Core, ChatClient & RAG

What is the difference between QuestionAnswerAdvisor and RetrievalAugmentationAdvisor?

QuestionAnswerAdvisor is simple one-shot RAG — search the vector store, append context to the prompt. RetrievalAugmentationAdvisor is a modular pipeline supporting query transformers (rewrite/expand), multiple document retrievers, and document post-processors (re-ranking) — the production-grade, multi-step option.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to What vector stores does Spring AI support? How do you switch between them?← Back to all Spring Boot & Microservices questions