Update chroma docs (#1171)

This commit is contained in:
jo-kim
2024-08-13 05:39:19 +09:00
committed by GitHub
parent 9f5ed055d4
commit 656fa8b4fe

View File

@@ -98,7 +98,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));