mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-21 08:37:05 +08:00
## Summary Fixes case-asymmetric matching for manual `meta_data_filter` when using **`in`** / **`not in`** with a **list** `value`. Document metadata strings were lowercased, but list elements were not, so values like `"F2"` failed to match `["F2", "F11"]` even though **`=`** behaved correctly. Closes #14389 ## Changes - **`common/metadata_utils.py`**: For **`in`** / **`not in`**, normalize string elements when `value` and/or `input` is a list, consistent with scalar string lowercasing. - **`test/unit_test/common/test_metadata_filter_operators.py`**: Regression tests for list `value` case-insensitivity and **`not in`**. ## Type of change - [x] Bug fix (non-breaking)