diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/retrieval-augmented-generation.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/retrieval-augmented-generation.adoc index b66383e0bcc..0caf86ff261 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/retrieval-augmented-generation.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/retrieval-augmented-generation.adoc @@ -260,7 +260,7 @@ MultiQueryExpander queryExpander = MultiQueryExpander.builder() .chatClientBuilder(chatClientBuilder) .numberOfQueries(3) .build(); -List queries = expander.expand(new Query("How to run a Spring Boot app?")); +List queries = queryExpander.expand(new Query("How to run a Spring Boot app?")); ---- By default, the `MultiQueryExpander` includes the original query in the list of expanded queries. You can disable this behavior