diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/couchbase.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/couchbase.adoc index f6fbb34fdc5..87cb0bb9e6b 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/couchbase.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/couchbase.adoc @@ -215,9 +215,9 @@ Read the link:https://docs.couchbase.com/java-sdk/current/hello-world/start-usin ---- @Bean public Cluster cluster() { - Cluster cluster = Cluster.connect("couchbase://localhost", - "username", "password"); + return Cluster.connect("couchbase://localhost", "username", "password"); } + ---- and then create the `CouchbaseSearchVectorStore` bean using the builder pattern: