ragflow/rag
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
..
app Fix: when parse markdown support extract image at local (#8906) 2025-07-18 17:06:58 +08:00
llm Fix issue with keep_alive=-1 for ollama chat model by allowing a user to set an additional configuration option (#9017) 2025-07-24 11:20:14 +08:00
nlp Fix: no chunks parsed out for Law (#8842) 2025-07-15 13:01:56 +08:00
prompts Refa: refactor prompts into markdown-style structure using Jinja2 (#8667) 2025-07-04 15:59:41 +08:00
res Perf: ignore concate between rows. (#8507) 2025-06-26 14:55:37 +08:00
svr Refa: remove temperature since some LLMs fail to support. (#8981) 2025-07-23 10:17:04 +08:00
utils Bug fix: OpenSearch chunk update some api error (#9032) 2025-07-25 09:57:24 +08:00
__init__.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
benchmark.py Refactor embedding batch_size (#3825) 2024-12-03 16:22:39 +08:00
prompt_template.py Refa: refactor prompts into markdown-style structure using Jinja2 (#8667) 2025-07-04 15:59:41 +08:00
prompts.py Perf: set timeout of some steps in KG. (#8873) 2025-07-16 18:06:03 +08:00
raptor.py Refa: remove temperature since some LLMs fail to support. (#8981) 2025-07-23 10:17:04 +08:00
settings.py Feat: make document parsing and embedding batch sizes configurable via environment variables (#8266) 2025-06-16 13:40:47 +08:00