From de53498b39c85fd08d05853b77c3d00b6f0194d2 Mon Sep 17 00:00:00 2001 From: Billy Bao Date: Tue, 11 Nov 2025 19:56:54 +0800 Subject: [PATCH] Fix: Update env to support PPTX and update README for version changes (#11167) ### What problem does this PR solve? Fix: Update env to support PPTX Fix: update README for version changes #11138 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [x] Documentation Update --------- Co-authored-by: writinwaters <93570324+writinwaters@users.noreply.github.com> --- README.md | 3 +++ README_id.md | 3 +++ README_ja.md | 4 ++++ README_ko.md | 3 +++ README_pt_br.md | 3 +++ README_tzh.md | 3 +++ README_zh.md | 3 +++ docker/.env | 3 +++ sdk/python/ragflow_sdk/modules/session.py | 6 ++++-- 9 files changed, 29 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5e66f4d87..9e3ea3f7b 100644 --- a/README.md +++ b/README.md @@ -193,6 +193,9 @@ releases! 🌟 ```bash $ cd ragflow/docker + + # Optional: use a stable tag (see releases: https://github.com/infiniflow/ragflow/releases), e.g.: git checkout v0.21.1 + # Use CPU for embedding and DeepDoc tasks: $ docker compose -f docker-compose.yml up -d diff --git a/README_id.md b/README_id.md index 016f4dc1a..ae61578ec 100644 --- a/README_id.md +++ b/README_id.md @@ -191,6 +191,9 @@ Coba demo kami di [https://demo.ragflow.io](https://demo.ragflow.io). ```bash $ cd ragflow/docker + + # Opsional: gunakan tag stabil (lihat releases: https://github.com/infiniflow/ragflow/releases), contoh: git checkout v0.21.1 + # Use CPU for embedding and DeepDoc tasks: $ docker compose -f docker-compose.yml up -d diff --git a/README_ja.md b/README_ja.md index 09a6240c4..f7d338ae6 100644 --- a/README_ja.md +++ b/README_ja.md @@ -170,6 +170,9 @@ ```bash $ cd ragflow/docker + + # 任意: 安定版タグを利用 (一覧: https://github.com/infiniflow/ragflow/releases) 例: git checkout v0.21.1 + # Use CPU for embedding and DeepDoc tasks: $ docker compose -f docker-compose.yml up -d @@ -177,6 +180,7 @@ # sed -i '1i DEVICE=gpu' .env # docker compose -f docker-compose.yml up -d ``` + | RAGFlow image tag | Image size (GB) | Has embedding models? | Stable? | | ----------------- | --------------- | --------------------- | -------------------------- | diff --git a/README_ko.md b/README_ko.md index 6720682f5..1c378cd0d 100644 --- a/README_ko.md +++ b/README_ko.md @@ -172,6 +172,9 @@ ```bash $ cd ragflow/docker + + # Optional: use a stable tag (see releases: https://github.com/infiniflow/ragflow/releases), e.g.: git checkout v0.21.1 + # Use CPU for embedding and DeepDoc tasks: $ docker compose -f docker-compose.yml up -d diff --git a/README_pt_br.md b/README_pt_br.md index 94b4d2c97..a5a2e3b82 100644 --- a/README_pt_br.md +++ b/README_pt_br.md @@ -190,6 +190,9 @@ Experimente nossa demo em [https://demo.ragflow.io](https://demo.ragflow.io). ```bash $ cd ragflow/docker + + # Opcional: use uma tag estável (veja releases: https://github.com/infiniflow/ragflow/releases), ex.: git checkout v0.21.1 + # Use CPU for embedding and DeepDoc tasks: $ docker compose -f docker-compose.yml up -d diff --git a/README_tzh.md b/README_tzh.md index edc1d0b61..01e070965 100644 --- a/README_tzh.md +++ b/README_tzh.md @@ -189,6 +189,9 @@ ```bash $ cd ragflow/docker + + # 可選:使用穩定版標籤(查看發佈:https://github.com/infiniflow/ragflow/releases),例:git checkout v0.21.1 + # Use CPU for embedding and DeepDoc tasks: $ docker compose -f docker-compose.yml up -d diff --git a/README_zh.md b/README_zh.md index 0e7814b52..e909413a6 100644 --- a/README_zh.md +++ b/README_zh.md @@ -190,6 +190,9 @@ ```bash $ cd ragflow/docker + + # 可选:使用稳定版本标签(查看发布:https://github.com/infiniflow/ragflow/releases),例如:git checkout v0.21.1 + # Use CPU for embedding and DeepDoc tasks: $ docker compose -f docker-compose.yml up -d diff --git a/docker/.env b/docker/.env index 1d6c8ba90..7c4c5642d 100644 --- a/docker/.env +++ b/docker/.env @@ -217,3 +217,6 @@ REGISTER_ENABLED=1 # Enable DocLing and Mineru USE_DOCLING=false USE_MINERU=false + +# pptx support +DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 \ No newline at end of file diff --git a/sdk/python/ragflow_sdk/modules/session.py b/sdk/python/ragflow_sdk/modules/session.py index d9b6193c4..12141afed 100644 --- a/sdk/python/ragflow_sdk/modules/session.py +++ b/sdk/python/ragflow_sdk/modules/session.py @@ -67,8 +67,10 @@ class Session(Base): or (self.__session_type == "chat" and json_data.get("data") is True) ): return - - yield self._structure_answer(json_data) + if self.__session_type == "agent": + yield self._structure_answer(json_data) + else: + yield self._structure_answer(json_data["data"]) else: try: json_data = res.json()