Update qdrant.adoc
Fixed java code.
This commit is contained in:
committed by
Christian Tzolov
parent
d3f2a8fb15
commit
8fa688fef6
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user