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/docs/autorag/configuration/metadata-filtering.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ sidebar:
7
7
8
8
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.
9
9
10
-
Here is an example of metadata filtering in[Workers Binding](/autorag/usage/workers-binding/) but it can be easily adapted to use the [REST API](/autorag/usage/rest-api/) instead.
10
+
Here is an example of metadata filtering using[Workers Binding](/autorag/usage/workers-binding/) but it can be easily adapted to use the [REST API](/autorag/usage/rest-api/) instead.
@@ -38,7 +38,7 @@ You can currently filter by the `folder` and `modified_date` of an R2 object. Cu
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
-
Note that `folder` filter only includes files exactly on 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`.
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
43
### `modified_date`
44
44
@@ -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 (e.g.`folder` or `modified_date`) with a target value using a comparison filter.
53
+
You can compare a metadata attribute (for example,`folder` or `modified_date`) with a target value using a comparison filter.
54
54
55
55
```js
56
56
filters: {
@@ -89,7 +89,7 @@ Note the following limitations with the compound operators:
89
89
- No nesting combinations of `and`'s and `or`'s, meaning you can only pick 1 `and` or 1 `or`.
90
90
- When using `or`:
91
91
- Only the `eq` operator is allowed.
92
-
- All conditions must filter on the **same key** (e.g. all on `folder`)
92
+
- All conditions must filter on the **same key** (for example, all on `folder`)
Copy file name to clipboardExpand all lines: src/content/docs/autorag/how-to/bring-your-own-generation-model.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
@@ -18,7 +18,7 @@ import {
18
18
19
19
When using `AI Search`, AutoRAG leverages a Workers AI model to generate the response. If you want to use a model outside of Workers AI, you can use AutoRAG for search while leveraging a model outside of Workers AI to generate responses.
20
20
21
-
Here is an example of how you can use an OpenAI model to generate your responses. This example is done using [Workers Binding](/autorag/usage/workers-binding/) but can be easily adapted to use the [REST API](/autorag/usage/rest-api/) instead.
21
+
Here is an example of how you can use an OpenAI model to generate your responses. This example uses [Workers Binding](/autorag/usage/workers-binding/), but can be easily adapted to use the [REST API](/autorag/usage/rest-api/) instead.
Copy file name to clipboardExpand all lines: src/content/docs/autorag/how-to/multitenancy.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
@@ -19,7 +19,7 @@ customer-a/contracts/
19
19
customer-b/contracts/
20
20
```
21
21
22
-
When indexing, AutoRAG will automatically store the folder path as metadata under the `folder` attribute. It’s recommended to enforce folder separation during upload or indexing to prevent accidental data access across tenants.
22
+
When indexing, AutoRAG will automatically store the folder path as metadata under the `folder` attribute. It is recommended to enforce folder separation during upload or indexing to prevent accidental data access across tenants.
Copy file name to clipboardExpand all lines: src/content/docs/autorag/how-to/simple-search-engine.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,11 @@ sidebar:
5
5
order: 5
6
6
---
7
7
8
-
Using the `search` method you can implement a simple but fast search engine. This example is done using [Workers Binding](/autorag/usage/workers-binding/) but can be easily adapted to use the [REST API](/autorag/usage/rest-api/) instead.
8
+
By using the `search` method, you can implement a simple but fast search engine. This example uses [Workers Binding](/autorag/usage/workers-binding/), but can be easily adapted to use the [REST API](/autorag/usage/rest-api/) instead.
9
9
10
10
To replicate this example remember to:
11
11
12
-
- Disable `rewrite_query` as you want to match the original user query
12
+
- Disable `rewrite_query`, as you want to match the original user query
13
13
- Configure your AutoRAG to have small chunk sizes, usually 256 tokens is enough
Narrow down search results based on metadata, like folder and date, so only relevant content is retrieved. For more details, see[Metadata filtering](/autorag/configuration/metadata-filtering).
36
+
Narrow down search results based on metadata, like folder and date, so only relevant content is retrieved. For more details, refer to[Metadata filtering](/autorag/configuration/metadata-filtering).
Narrow down search results based on metadata, like folder and date, so only relevant content is retrieved. For more details, see[Metadata filtering](/autorag/configuration/metadata-filtering).
28
+
Narrow down search results based on metadata, like folder and date, so only relevant content is retrieved. For more details, refer to[Metadata filtering](/autorag/configuration/metadata-filtering).
0 commit comments