File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ Add the documents to your vector store:
156
156
157
157
[source,java]
158
158
----
159
- vectorStore.add(List.of(document) );
159
+ vectorStore.add(documents );
160
160
----
161
161
162
162
And finally, retrieve documents similar to a query:
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ List<Document> documents = List.of(
88
88
new Document("You walk forward facing the past and you turn back toward the future.", Map.of("meta2", "meta2")));
89
89
90
90
// Add the documents to Oracle Vector Store
91
- vectorStore.add(List.of(document) );
91
+ vectorStore.add(documents );
92
92
93
93
// Retrieve documents similar to a query
94
94
List<Document> results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ List <Document> documents = List.of(
93
93
new Document("You walk forward facing the past and you turn back toward the future.", Map.of("meta2", "meta2")));
94
94
95
95
// Add the documents to Redis
96
- vectorStore.add(List.of(document) );
96
+ vectorStore.add(documents );
97
97
98
98
// Retrieve documents similar to a query
99
99
List<Document> results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));
You can’t perform that action at this time.
0 commit comments