Skip to content

Commit 9f5ed05

Browse files
authored
Docs: fix pinecone example (#1170)
1 parent e02c691 commit 9f5ed05

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
@@ -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
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)