From 8fa688fef6eb124d3e152d859b539fa9c3547249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=BCgelmeyer?= Date: Fri, 12 Apr 2024 10:56:57 +0200 Subject: [PATCH] Update qdrant.adoc Fixed java code. --- .../main/antora/modules/ROOT/pages/api/vectordbs/qdrant.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/qdrant.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/qdrant.adoc index 3b8caba0a..a5d4b871a 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/qdrant.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/qdrant.adoc @@ -90,7 +90,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 to Qdrant -vectorStore.add(List.of(document)); +vectorStore.add(documents); // Retrieve documents similar to a query List results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));