From 9f5ed055d45862e6ef9da418f2e86423cd320cf6 Mon Sep 17 00:00:00 2001 From: JayPark7821 <60100532+JayPark7821@users.noreply.github.com> Date: Tue, 13 Aug 2024 05:38:52 +0900 Subject: [PATCH] Docs: fix pinecone example (#1170) --- .../main/antora/modules/ROOT/pages/api/vectordbs/pinecone.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/pinecone.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/pinecone.adoc index 45ff1d95f..6c4d1648e 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/pinecone.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/pinecone.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 -vectorStore.add(List.of(document)); +vectorStore.add(documents); // Retrieve documents similar to a query List results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));