From 656fa8b4fea1dca9d0800b8b23279bb7d65947c7 Mon Sep 17 00:00:00 2001 From: jo-kim <92084680+jo-kim@users.noreply.github.com> Date: Tue, 13 Aug 2024 05:39:19 +0900 Subject: [PATCH] Update chroma docs (#1171) --- .../main/antora/modules/ROOT/pages/api/vectordbs/chroma.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/chroma.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/chroma.adoc index 7a8d7b193a..a4fe965846 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/chroma.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/chroma.adoc @@ -98,7 +98,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));