Help: Ai search autorag filter ( gt, gte, eq ) not work

Hi,

I’m encountering an issue with folder-based filtering using the gt, gte, and eq filter types. Filtering works as expected when targeting a top-level folder, but fails when specifying a sub-folder.

Below is an example payload that works and returns all files inside customer-a as well as its sub-folders:

{
  "query": "Cat",
  "filters": {
    "type": "gt",
    "key": "folder",
    "value": "customer-a//"
  }
}


However, the following payloads do not return any results, although the specified sub-folder exists:

{
  "filters": {
    "type": "gt",
    "key": "folder",
    "value": "customer-a/sub-folder"
  }
}


{
  "filters": {
    "type": "gte",
    "key": "folder",
    "value": "customer-a/sub-folder"
  }
}


{
  "filters": {
    "type": "eq",
    "key": "folder",
    "value": "customer-a/sub-folder"
  }
}


{
  "filters": {
    "type": "gte",
    "key": "folder",
    "value": "customer-a/sub-folder//"
  }
}


The following variant does work, but only returns items from the folder itself not from its deeper sub-folders:

{
  "filters": {
    "type": "gte",
    "key": "folder",
    "value": "customer-a//sub-folder"
  }
}


---

What I need


I would like to search inside a specific sub-folder, ideally including its nested sub-folders, similar to how filtering works for the top-level folder.

Could you please advise on the correct filtering method or confirm whether this is a known limitation or bug?

Thank you in advance for your assistance.
Was this page helpful?