Skip to content

Commit e02c691

Browse files
authored
docs: Edit Auto-configuration Example (#1169)
* docs: Edit Auto-configuration Example * docs: Edit Azure Example * docs: Edit Oracle Example
1 parent 568d90a commit e02c691

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Add the documents to your vector store:
156156

157157
[source,java]
158158
----
159-
vectorStore.add(List.of(document));
159+
vectorStore.add(documents);
160160
----
161161

162162
And finally, retrieve documents similar to a query:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ List<Document> documents = List.of(
8888
new Document("You walk forward facing the past and you turn back toward the future.", Map.of("meta2", "meta2")));
8989
9090
// Add the documents to Oracle Vector Store
91-
vectorStore.add(List.of(document));
91+
vectorStore.add(documents);
9292
9393
// Retrieve documents similar to a query
9494
List<Document> results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ List <Document> documents = List.of(
9393
new Document("You walk forward facing the past and you turn back toward the future.", Map.of("meta2", "meta2")));
9494
9595
// Add the documents to Redis
96-
vectorStore.add(List.of(document));
96+
vectorStore.add(documents);
9797
9898
// Retrieve documents similar to a query
9999
List<Document> results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));

0 commit comments

Comments
 (0)