Skip to content

Commit 1891435

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

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

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

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,29 @@ 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.
10+
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 will only include vectors that match the `filter` criteria, meaning that `filter` is applied first, and the `topK` results are taken from the filtered set.
1511

16-
:::
12+
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.
1713

18-
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.
14+
## Metadata indexes
1915

20-
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.
16+
Vectorize supports [namespace](/vectorize/best-practices/insert-vectors/#namespaces) filtering by default, but to filter on any other metadata property of your vectors, you'll need to create a Metadata index.
2117

22-
## Limits
18+
Metadata indexes for properties of type `string`, `number` and `boolean` are supported. Please refer to [Create metadata indexes](/vectorize/get-started/intro/#4-optional-create-metadata-indexes) for details.
2319

24-
You can store up to 10KiB of metadata per vector, and create up to 10 metadata indexes per Vectorize index.
20+
You can create up to 10 metadata indexes per Vectorize index.
2521

2622
For metadata indexes of type `number`, the indexed number precision is that of float64.
2723

2824
For metadata indexes of type `string`, each vector indexes the first 64B of the string data truncated on UTF-8 character boundaries to the longest well-formed UTF-8 substring within that limit, so vectors are filterable on the first 64B of their value for each indexed property.
2925

30-
See [Vectorize Limits](/vectorize/platform/limits/) for a complete list of limits.
26+
You can store up to 10KiB of metadata per vector. See [Vectorize Limits](/vectorize/platform/limits/) for a complete list of limits.
27+
28+
:::note[Enable metadata filtering]
29+
30+
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.
31+
32+
:::
3133

3234
## Supported operations
3335

0 commit comments

Comments
 (0)