Skip to content

Commit 30f5ec1

Browse files
committed
[Vectorize] Clarify metadata filtering note
1 parent 3695f40 commit 30f5ec1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/content/docs/vectorize/reference/metadata-filtering.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ sidebar:
77

88
import { Render, PackageManagers } from "~/components";
99

10-
:::note[Enable metadata filtering]
11-
12-
Vectorize requires metadata indexes to be specified before vectors are inserted to support metadata filtering. `string`, `number` and `boolean` metadata indexes are supported. Please refer to [Create metadata indexes](/vectorize/get-started/intro/#4-optional-create-metadata-indexes) for details.
13-
14-
Vectorize supports [namespace](/vectorize/best-practices/insert-vectors/#namespaces) filtering by default.
15-
16-
:::
17-
1810
In addition to providing an input vector to your query, you can also filter by [vector metadata](/vectorize/best-practices/insert-vectors/#metadata) associated with every vector. Query results only include vectors that match `filter` criteria, meaning that `filter` is applied first, and `topK` results are taken from the filtered set.
1911

2012
By using metadata filtering to limit the scope of a query, you can filter by specific customer IDs, tenant, product category or any other metadata you associate with your vectors.
@@ -29,6 +21,14 @@ For metadata indexes of type `string`, each vector indexes the first 64B of the
2921

3022
See [Vectorize Limits](/vectorize/platform/limits/) for a complete list of limits.
3123

24+
:::note[Enable metadata filtering]
25+
26+
Vectors upserted before a metadata index was created won't have their metadata contained in that index. Upserting/re-upserting vectors after it was created will have them indexed as expected. Please refer to [Create metadata indexes](/vectorize/get-started/intro/#4-optional-create-metadata-indexes) for details.
27+
28+
Vectorize supports [namespace](/vectorize/best-practices/insert-vectors/#namespaces) filtering by default.
29+
30+
:::
31+
3232
## Supported operations
3333

3434
Optional `filter` property on `query()` method specifies metadata filter:

0 commit comments

Comments
 (0)