Skip to content

Commit bed1db3

Browse files
hungrytechilayaperumalg
authored andcommitted
fix vertordbs opensearch.adoc
Signed-off-by: hungrytech <[email protected]>
1 parent 1ca4709 commit bed1db3

File tree

1 file changed

+1
-1
lines changed
  • spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs

1 file changed

+1
-1
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/opensearch.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ List<Document> documents = List.of(
7777
vectorStore.add(documents);
7878
7979
// Retrieve documents similar to a query
80-
List<Document> results = vectorStore.similaritySearch(SearchRequest.build().query("Spring").topK(5).build());
80+
List<Document> results = vectorStore.similaritySearch(SearchRequest.builder().query("Spring").topK(5).build());
8181
----
8282

8383
=== Configuration Properties

0 commit comments

Comments
 (0)