Skip to content

Commit 55c461f

Browse files
committed
changelog
1 parent 6d4c6b7 commit 55c461f

File tree

4 files changed

+40
-1
lines changed

4 files changed

+40
-1
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: Pre-search metadata filtering and multitenancy support in AutoRAG
3+
description: Add metadata filters to AutoRAG queries to enable multitenancy and control the scope of retrieved results.
4+
products:
5+
- autorag
6+
date: 2025-04-22T6:00:00Z
7+
---
8+
9+
You can now filter AutoRAG search results by `folder` and `modified_date` using metadata filters to narrow down the scope of your query.
10+
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.
12+
13+
**Example folder structure:**
14+
15+
```bash
16+
customer-a/logs/
17+
customer-a/contracts/
18+
customer-b/contracts/
19+
```
20+
21+
**Example query:**
22+
23+
```js
24+
const response = await env.AI.autorag("my-autorag").search({
25+
query: "When did I sign my agreement contract?",
26+
filters: {
27+
type: "eq",
28+
key: "folder",
29+
value: "customer-a/contracts/",
30+
},
31+
});
32+
```
33+
34+
You can also combine filters to further narrow results before retrieval. Learn more in [metadata filtering](/autorag/configuration/metadata-filtering/).

src/content/docs/autorag/usage/workers-binding.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const answer = await env.AI.autorag("my-autorag").aiSearch({
4242
ranking_options: {
4343
score_threshold: 0.3,
4444
},
45+
stream: true,
4546
});
4647
```
4748

src/content/partials/autorag/ai-search-api-params.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Configurations for customizing result ranking. Defaults to `{}`.
2727
- `score_threshold` <Type text="number" /> <MetaInfo text="optional" />
2828
- The minimum match score required for a result to be considered a match. Defaults to `0`. Must be between `0` and `1`.
2929

30-
`streaming` <Type text="boolean" /> <MetaInfo text="optional" />
30+
`stream` <Type text="boolean" /> <MetaInfo text="optional" />
3131

3232
Returns a stream of results as they are available. Defaults to `false`.
3333

src/content/release-notes/autorag.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ productLink: "/autorag/"
55
productArea: Developer platform
66
productAreaLink: /workers/platform/changelog/platform/
77
entries:
8+
- publish_date: "2025-04-22"
9+
title: Response streaming in AutoRAG binding added
10+
description: |-
11+
AutoRAG now supports response streaming in the `AI Search` method of the [Workers binding](/autorag/usage/workers-binding/), allowing you to stream results as they’re retrieved by setting `stream: true`.
812
- publish_date: "2025-04-07"
913
title: AutoRAG is now in open beta!
1014
description: |-

0 commit comments

Comments
 (0)