Docs: fix pinecone example (#1170)

This commit is contained in:
JayPark7821
2024-08-13 05:38:52 +09:00
committed by GitHub
parent e02c691cec
commit 9f5ed055d4

View File

@@ -93,7 +93,7 @@ List <Document> 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<Document> results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));