Skip to content

Commit 689e458

Browse files
authored
Docs: Edit pinecone example (#1154)
``` // Add the documents vectorStore.add(List.of(document)); ``` To ``` // Add the documents vectorStore.add(documents); ```
1 parent d00cbe7 commit 689e458

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/pinecone.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Add the documents to Pinecone:
226226

227227
[source,java]
228228
----
229-
vectorStore.add(List.of(document));
229+
vectorStore.add(documents);
230230
----
231231

232232
And finally, retrieve documents similar to a query:

0 commit comments

Comments
 (0)