Skip to content

Commit c2e0c9a

Browse files
committed
fix vertordbs opensearch.adoc
Signed-off-by: hungrytech <[email protected]>
1 parent 2903b20 commit c2e0c9a

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)