From e02c691cec083958ac7a2fa2f0a8a86463858ae1 Mon Sep 17 00:00:00 2001 From: ChanYeong <139435149+cyPark95@users.noreply.github.com> Date: Tue, 13 Aug 2024 05:37:44 +0900 Subject: [PATCH] docs: Edit Auto-configuration Example (#1169) * docs: Edit Auto-configuration Example * docs: Edit Azure Example * docs: Edit Oracle Example --- .../src/main/antora/modules/ROOT/pages/api/vectordbs/azure.adoc | 2 +- .../main/antora/modules/ROOT/pages/api/vectordbs/oracle.adoc | 2 +- .../src/main/antora/modules/ROOT/pages/api/vectordbs/redis.adoc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/azure.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/azure.adoc index c4d7316a0..a76ddb3b1 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/azure.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/azure.adoc @@ -156,7 +156,7 @@ Add the documents to your vector store: [source,java] ---- -vectorStore.add(List.of(document)); +vectorStore.add(documents); ---- And finally, retrieve documents similar to a query: diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/oracle.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/oracle.adoc index 4eabbb3db..1f78ce7fd 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/oracle.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/oracle.adoc @@ -88,7 +88,7 @@ List documents = List.of( new Document("You walk forward facing the past and you turn back toward the future.", Map.of("meta2", "meta2"))); // Add the documents to Oracle Vector Store -vectorStore.add(List.of(document)); +vectorStore.add(documents); // Retrieve documents similar to a query List results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5)); diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/redis.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/redis.adoc index df95bee48..08d6331b8 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/redis.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/redis.adoc @@ -93,7 +93,7 @@ List documents = List.of( new Document("You walk forward facing the past and you turn back toward the future.", Map.of("meta2", "meta2"))); // Add the documents to Redis -vectorStore.add(List.of(document)); +vectorStore.add(documents); // Retrieve documents similar to a query List results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));