Update qdrant.adoc

Fixed java code.
This commit is contained in:
Philipp Hügelmeyer
2024-04-12 10:56:57 +02:00
committed by Christian Tzolov
parent d3f2a8fb15
commit 8fa688fef6

View File

@@ -90,7 +90,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 to Qdrant
vectorStore.add(List.of(document));
vectorStore.add(documents);
// Retrieve documents similar to a query
List<Document> results = vectorStore.similaritySearch(SearchRequest.query("Spring").withTopK(5));