Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/content/docs/autorag/configuration/metadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ filters: {
type: "and",
filters: [
{
type: "gt",
type: "gte",
key: "folder",
value: "customer-a//",
value: "customer-a/",
},
{
type: "lte",
Expand All @@ -128,8 +128,8 @@ filters: {

This filter identifies paths starting with `customer-a/` by using:

- The `and` condition to combine the effects of the `gt` and `lte` conditions.
- The `gt` condition to include paths greater than the `/` ASCII character.
- The `and` condition to combine the effects of the `gte` and `lte` conditions.
- The `gte` condition to include paths greater than and including the folder itself.
- The `lte` condition to include paths less than and including the lower case `z` ASCII character.

Together, these conditions effectively select paths that begin with the provided path value.
Expand Down
10 changes: 5 additions & 5 deletions src/content/docs/autorag/how-to/multitenancy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ filters: {
type: "and",
filters: [
{
type: "gt",
type: "gte",
key: "folder",
value: "customer-a//",
value: "customer-a/",
},
{
type: "lte",
Expand All @@ -78,8 +78,8 @@ filters: {

This filter identifies paths starting with `customer-a/` by using:

- The `and` condition to combine the effects of the `gt` and `lte` conditions.
- The `gt` condition to include paths greater than the `/` ASCII character.
- The `and` condition to combine the effects of the `gte` and `lte` conditions.
- The `gte` condition to include paths greater than and including the folder itself.
- The `lte` condition to include paths less than and including the lower case `z` ASCII character.

This filter captures both files `profile.md` and `contract-1.pdf`.
This filter captures both files `profile.md` and `contract-1.pdf`.