ragflow/rag/utils
Syed Shahmeer Ali 982ec24fa7
Fix kb isolation infinity conn (#9913)
### What problem does this PR solve?

This PR fixes a critical bug in the knowledge base isolation feature
where chat responses were referencing documents from incorrect knowledge
bases. The issue was in the `infinity_conn.py` file where the
`equivalent_condition_to_str()` function was incorrectly skipping
`kb_id` filtering, causing documents from unintended knowledge bases to
be included in search results.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

---------

Co-authored-by: Syed Shahmeer Ali <ashahmeer73@gmail.com>
Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
2025-09-04 21:14:56 +08:00
..
__init__.py Fix: type violations. (#6262) 2025-03-19 12:12:34 +08:00
azure_sas_conn.py refactor: no need to inherit in python3 clean the code (#5659) 2025-03-05 18:03:53 +08:00
azure_spn_conn.py refactor: no need to inherit in python3 clean the code (#5659) 2025-03-05 18:03:53 +08:00
doc_store_conn.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
es_conn.py Fix: add ES re-connect once request timeout. (#8678) 2025-07-07 09:22:25 +08:00
infinity_conn.py Fix kb isolation infinity conn (#9913) 2025-09-04 21:14:56 +08:00
mcp_tool_call_conn.py Feat: init dataflow. (#9791) 2025-08-28 18:40:32 +08:00
minio_conn.py Delete Corresponding Minio Bucket When Deleting a Knowledge Base (#7841) 2025-05-26 10:02:51 +08:00
opendal_conn.py fix: add missing env vars and default values of service_conf.yaml (#9289) 2025-08-07 10:41:05 +08:00
opensearch_conn.py Bug fix: OpenSearch chunk update some api error (#9032) 2025-07-25 09:57:24 +08:00
oss_conn.py refactor: no need to inherit in python3 clean the code (#5659) 2025-03-05 18:03:53 +08:00
redis_conn.py Fix typo (#9766) 2025-08-27 18:56:40 +08:00
s3_conn.py Fix: no doc hits after meta data filter. (#9435) 2025-08-13 12:43:31 +08:00
storage_factory.py Oss support opendal(including mysql) (#8204) 2025-06-12 11:37:42 +08:00
tavily_conn.py Feat: apply LLM to optimize citations. (#5935) 2025-03-11 19:56:21 +08:00