Skip to content

Commit e31843a

Browse files
committed
small fixes
1 parent 44a36ac commit e31843a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/content/changelog/autorag/2025-06-16-autorag-custom-metadata-and-context.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can add [custom metadata](/r2/api/workers/workers-api-reference/#r2putoption
1212

1313
# Object's custom metadata in search responses
1414

15-
When you run a search, AutoRAG now returns any custom metadata associated with the object. This metadata appears in the response under `file`, inside `attributes`, and can be used for downstream processing.
15+
When you run a search, AutoRAG now returns any custom metadata associated with the object. This metadata appears in the response inside `attributes` then `file` , and can be used for downstream processing.
1616

1717
For example, the `attributes` section of your search response may look like:
1818

src/content/changelog/autorag/2025-06-16-autorag-filename-filter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This is useful when your application has already determined which files should b
1212

1313
For example, your search query may look like:
1414

15-
```json
15+
```js
1616
const response = await env.AI.autorag("my-autorag").search({
1717
query: "what is the project deadline?",
1818
filters: {

src/content/docs/autorag/configuration/metadata.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ const answer = await env.AI.autorag("my-autorag").search({
4040
| Attribute | Description | Example |
4141
| --- | --- | --- |
4242
| `filename` | The name of the file. | `dog.png` or `animals/mammals/cat.png` |
43-
| `folder` | The prefix or directory to the object. | For the object `animals/mammals/cat.png`, the folder is `animals/mammals/` |
44-
| `timestamp` | The timestamp for when the object was last modified. Comparisons are supported using a 13-digit Unix timestamp (milliseconds), but values will be rounded to the floored to the nearest second. | The timestamp `2025-01-01 00:00:00.999 UTC` is `1735689600999` and it will be truncated to `1735689600000`, corresponding to `2025-01-01 00:00:00 UTC` |
43+
| `folder` | The folder or prefix to the object. | For the object `animals/mammals/cat.png`, the folder is `animals/mammals/` |
44+
| `timestamp` | The timestamp for 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). | The timestamp `2025-01-01 00:00:00.999 UTC` is `1735689600999` and it will be rounded to `1735689600000`, corresponding to `2025-01-01 00:00:00 UTC` |
4545

4646
### Filter schema
4747

0 commit comments

Comments
 (0)