ragflow/rag/utils
pyyuhao 49f3f26622
Bug fix: OpenSearch chunk update some api error (#9032)
### What problem does this PR solve?

Fix a small non-blocking main workflow bug about chunk update When
OpenSearch is the doc engine.
When you wanna enable/disable a chunk in the web-page “Knowledge Base /
Dataset / Chunk”, the bug ocurred.
<img width="2388" height="662" alt="image"
src="https://github.com/user-attachments/assets/575987a0-c929-4589-bfa0-ba54e137cfd9"
/>

The reaseon why it ocurred is that some api params between OpenSearch
and ES differs. It functioned well no matter enable/disable/rewrite the
chunk after I fixed. I also checked the result when using the chat
web-page.

<img width="2394" height="660" alt="image"
src="https://github.com/user-attachments/assets/8b899dc6-d769-4e80-8dd8-ad0fbbca5f78"
/>

I will still focus on vector-database espeically OpenSearch.

### Type of change

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

Co-authored-by: 张雨豪 <zhangyh80@chinatelecom.cn>
Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
2025-07-25 09:57:24 +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: whole knowledge graph lost after removing any document in the knowledge base (#7151) 2025-04-30 09:43:17 +08:00
mcp_tool_call_conn.py Refa: more robust mcp tool call (#8631) 2025-07-02 18:37:54 +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 use quote_plus to escape password in opendal's mysql url (#8976) 2025-07-23 10:17:34 +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 Perf: Enhance timeout handling. (#8826) 2025-07-15 09:36:45 +08:00
s3_conn.py fix s3 init config . (#8886) 2025-07-17 12:10:15 +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