ragflow/sdk/python
pyyuhao 5d6bf2224a
Fix: Opensearch chunk management (#7802)
### What problem does this PR solve?

This PR solve the problems metioned in the
pr(https://github.com/infiniflow/ragflow/pull/7140) which is also
submitted by me

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):


### Introduction
I fixed the problems when using OpenSearch as the DOC_ENGINE, the
failures of pytest and the wrong API's return.
Mainly about delete chunk, list chunks, update chunk, retrieval chunk.
The pytest comand "cd sdk/python && uv sync --python 3.10 --group test
--frozen && source .venv/bin/activate && cd test/test_http_api &&
DOC_ENGINE=opensearch pytest test_chunk_management_within_dataset -s
--tb=short " is finally successful.

###Others
As some changes between Elasticsearch And Opensearch differ, some pytest
results about OpenSearch are correct and resonable. However, some pytest
params (skipif params) are incompatible. So I changed some pytest params
about skipif.

As a search engine programmer, I will still focus on the usage of vector
databases (especially OpenSearch) for the RAG stuff.
Thanks for your review
2025-05-26 16:57:58 +08:00
..
ragflow_sdk Feat: Add http api to create, update, or delete agents. (#7515) 2025-05-12 17:59:53 +08:00
test Fix: Opensearch chunk management (#7802) 2025-05-26 16:57:58 +08:00
hello_ragflow.py Update comments (#4569) 2025-01-21 20:52:28 +08:00
pyproject.toml Docs: update for v0.19.0 (#7823) 2025-05-23 18:25:47 +08:00
README.md Replace poetry with uv (#4471) 2025-01-14 11:49:43 +08:00
uv.lock Docs: update for v0.19.0 (#7823) 2025-05-23 18:25:47 +08:00

ragflow-sdk

build and publish python SDK to pypi.org

uv build
uv pip install twine
export TWINE_USERNAME="__token__"
export TWINE_PASSWORD=$YOUR_PYPI_API_TOKEN
twine upload dist/*.whl