Skip to content

Commit 656fa8b

Browse files
authored
Update chroma docs (#1171)
1 parent 9f5ed05 commit 656fa8b

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ List <Document> documents = List.of(
9898
new Document("You walk forward facing the past and you turn back toward the future.", Map.of("meta2", "meta2")));
9999
100100
// Add the documents
101-
vectorStore.add(List.of(document));
101+
vectorStore.add(documents);
102102
103103
// Retrieve documents similar to a query
104104
List<Document> results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));

0 commit comments

Comments
 (0)