Skip to content

Commit f470b33

Browse files
committed
add metadata description
1 parent 6b39fc7 commit f470b33

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
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
@@ -39,7 +39,7 @@ We recommend using the `context` field to describe supplemental information you
3939
For example:
4040

4141
```json
42-
context: "summary: 'Checklist for internal product launch readiness, including legal, engineering, and marketing steps.'; url: 'https://wiki.company.com/docs/product-launch-checklist'"
42+
context: "summary: 'Checklist for internal product launch readiness, including legal, engineering, and marketing steps.'; url: 'https://wiki.company.com/docs/launch-checklist'"
4343
```
4444

4545
This gives you more control over how your content is interpreted, without requiring you to modify the original contents of the file.

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ sidebar:
77

88
import { FileTree } from "~/components"
99

10+
Use metadata to filter documents before retrieval and provide context to guide AI responses. This page covers how to apply filters and attach optional context metadata to your files.
11+
1012
## Metadata filtering
1113
Metadata filtering narrows down search results based on metadata, so only relevant content is retrieved. The filter narrows down results prior to retrieval, so that you only query the scope of documents that matter.
1214

@@ -132,7 +134,7 @@ This filter identifies paths starting with `customer-a/` by using:
132134

133135
Together, these conditions effectively select paths that begin with the provided path value.
134136

135-
## Add a `context` field to guide AI Search
137+
## Add `context` field to guide AI Search
136138
You can optionally include a custom metadata field named `context` when uploading an object to your R2 bucket.
137139

138140
The `context` field is attached to each chunk and passed to the LLM during an `/ai-search` query. It does not affect retrieval but helps the LLM interpret and frame the answer.

0 commit comments

Comments
 (0)