From d548e2e8544904419d709ecd9602202c7bf47b8f Mon Sep 17 00:00:00 2001 From: Arnaud Gourlay Date: Wed, 15 Jan 2025 15:52:10 +0100 Subject: [PATCH] introduce example --- .../documentation/concepts/filtering.md | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/qdrant-landing/content/documentation/concepts/filtering.md b/qdrant-landing/content/documentation/concepts/filtering.md index f12e6f529..ec469d49b 100644 --- a/qdrant-landing/content/documentation/concepts/filtering.md +++ b/qdrant-landing/content/documentation/concepts/filtering.md @@ -2985,7 +2985,27 @@ Filtered points would be: This condition enables filtering by the presence of a given named vector on a point. -For example, to search for points with the `image` vector: +For example, if we have two named vector in our collection. + +```http +PUT /collections/{collection_name} +{ + "vectors": { + "image": { + "size": 4, + "distance": "Dot" + }, + "text": { + "size": 8, + "distance": "Cosine" + } + } +} +``` + +Some points in the collection might have both `image` and `text` vectors, some might have only one of them. + +This is how you can search for points which have the `image` vector defined: ```http POST /collections/{collection_name}/points/scroll