You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/changelog/autorag/2025-04-23-autorag-metadata-filtering.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ products:
6
6
date: 2025-04-23T6:00:00Z
7
7
---
8
8
9
-
You can now filter [AutoRAG](/autorag) search results by `folder` and `modified_date` using [metadata filtering](/autorag/configuration/metadata-filtering/) to narrow down the scope of your query.
9
+
You can now filter [AutoRAG](/autorag) search results by `folder` and `timestamp` using [metadata filtering](/autorag/configuration/metadata-filtering/) to narrow down the scope of your query.
10
10
11
11
This makes it easy to build [multitenant experiences](/autorag/how-to/multitenancy/) where each user can only access their own data. By organizing your content into per-tenant folders and applying a `folder` filter at query time, you ensure that each tenant retrieves only their own documents.
You can currently filter by the `folder` and `modified_date` of an R2 object. Currently, custom metadata attributes are not supported.
35
+
You can currently filter by the `folder` and `timestamp` of an R2 object. Currently, custom metadata attributes are not supported.
36
36
37
37
### `folder`
38
38
39
39
The directory to the object. For example, the `folder` of the object at `llama/logistics/llama-logistics.mdx` is `llama/logistics/`. Note that the `folder` does not include a leading `/`.
40
40
41
41
Note that `folder` filter only includes files exactly in that folder, so files in subdirectories are not included. For example, specifying `folder: "llama/"` will match files in `llama/` but does not match files in `llama/logistics`.
42
42
43
-
### `modified_date`
43
+
### `timestamp`
44
44
45
45
The timestamp indicating when the object was last modified. Comparisons are supported using a 13-digit Unix timestamp (milliseconds), but values will be rounded to 10 digits (seconds). For example, `1735689600999` or `2025-01-01 00:00:00.999 UTC` will be rounded down to `1735689600000`, corresponding to `2025-01-01 00:00:00 UTC`.
46
46
@@ -50,7 +50,7 @@ You can create simple comparison filters or an array of comparison filters using
50
50
51
51
### Comparison filter
52
52
53
-
You can compare a metadata attribute (for example, `folder` or `modified_date`) with a target value using a comparison filter.
53
+
You can compare a metadata attribute (for example, `folder` or `timestamp`) with a target value using a comparison filter.
54
54
55
55
```js
56
56
filters: {
@@ -102,7 +102,7 @@ You can see the metadata attributes of your retrieved data in the response under
102
102
"filename":"llama/logistics/llama-logistics.md",
103
103
"score":0.45,
104
104
"attributes": {
105
-
"modified_date":1735689600000, // unix timestamp for 2025-01-01
105
+
"timestamp":1735689600000, // unix timestamp for 2025-01-01
0 commit comments