mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 12:32:30 +08:00
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>
This commit is contained in:
@ -193,6 +193,9 @@ releases! 🌟
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd ragflow/docker
|
$ 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:
|
# Use CPU for embedding and DeepDoc tasks:
|
||||||
$ docker compose -f docker-compose.yml up -d
|
$ docker compose -f docker-compose.yml up -d
|
||||||
|
|
||||||
|
|||||||
@ -191,6 +191,9 @@ Coba demo kami di [https://demo.ragflow.io](https://demo.ragflow.io).
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd ragflow/docker
|
$ 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:
|
# Use CPU for embedding and DeepDoc tasks:
|
||||||
$ docker compose -f docker-compose.yml up -d
|
$ docker compose -f docker-compose.yml up -d
|
||||||
|
|
||||||
|
|||||||
@ -170,6 +170,9 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd ragflow/docker
|
$ cd ragflow/docker
|
||||||
|
|
||||||
|
# 任意: 安定版タグを利用 (一覧: https://github.com/infiniflow/ragflow/releases) 例: git checkout v0.21.1
|
||||||
|
|
||||||
# Use CPU for embedding and DeepDoc tasks:
|
# Use CPU for embedding and DeepDoc tasks:
|
||||||
$ docker compose -f docker-compose.yml up -d
|
$ docker compose -f docker-compose.yml up -d
|
||||||
|
|
||||||
@ -177,6 +180,7 @@
|
|||||||
# sed -i '1i DEVICE=gpu' .env
|
# sed -i '1i DEVICE=gpu' .env
|
||||||
# docker compose -f docker-compose.yml up -d
|
# docker compose -f docker-compose.yml up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
| RAGFlow image tag | Image size (GB) | Has embedding models? | Stable? |
|
| RAGFlow image tag | Image size (GB) | Has embedding models? | Stable? |
|
||||||
| ----------------- | --------------- | --------------------- | -------------------------- |
|
| ----------------- | --------------- | --------------------- | -------------------------- |
|
||||||
|
|||||||
@ -172,6 +172,9 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd ragflow/docker
|
$ 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:
|
# Use CPU for embedding and DeepDoc tasks:
|
||||||
$ docker compose -f docker-compose.yml up -d
|
$ docker compose -f docker-compose.yml up -d
|
||||||
|
|
||||||
|
|||||||
@ -190,6 +190,9 @@ Experimente nossa demo em [https://demo.ragflow.io](https://demo.ragflow.io).
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd ragflow/docker
|
$ 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:
|
# Use CPU for embedding and DeepDoc tasks:
|
||||||
$ docker compose -f docker-compose.yml up -d
|
$ docker compose -f docker-compose.yml up -d
|
||||||
|
|
||||||
|
|||||||
@ -189,6 +189,9 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd ragflow/docker
|
$ cd ragflow/docker
|
||||||
|
|
||||||
|
# 可選:使用穩定版標籤(查看發佈:https://github.com/infiniflow/ragflow/releases),例:git checkout v0.21.1
|
||||||
|
|
||||||
# Use CPU for embedding and DeepDoc tasks:
|
# Use CPU for embedding and DeepDoc tasks:
|
||||||
$ docker compose -f docker-compose.yml up -d
|
$ docker compose -f docker-compose.yml up -d
|
||||||
|
|
||||||
|
|||||||
@ -190,6 +190,9 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cd ragflow/docker
|
$ cd ragflow/docker
|
||||||
|
|
||||||
|
# 可选:使用稳定版本标签(查看发布:https://github.com/infiniflow/ragflow/releases),例如:git checkout v0.21.1
|
||||||
|
|
||||||
# Use CPU for embedding and DeepDoc tasks:
|
# Use CPU for embedding and DeepDoc tasks:
|
||||||
$ docker compose -f docker-compose.yml up -d
|
$ docker compose -f docker-compose.yml up -d
|
||||||
|
|
||||||
|
|||||||
@ -217,3 +217,6 @@ REGISTER_ENABLED=1
|
|||||||
# Enable DocLing and Mineru
|
# Enable DocLing and Mineru
|
||||||
USE_DOCLING=false
|
USE_DOCLING=false
|
||||||
USE_MINERU=false
|
USE_MINERU=false
|
||||||
|
|
||||||
|
# pptx support
|
||||||
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
|
||||||
@ -67,8 +67,10 @@ class Session(Base):
|
|||||||
or (self.__session_type == "chat" and json_data.get("data") is True)
|
or (self.__session_type == "chat" and json_data.get("data") is True)
|
||||||
):
|
):
|
||||||
return
|
return
|
||||||
|
if self.__session_type == "agent":
|
||||||
yield self._structure_answer(json_data)
|
yield self._structure_answer(json_data)
|
||||||
|
else:
|
||||||
|
yield self._structure_answer(json_data["data"])
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
json_data = res.json()
|
json_data = res.json()
|
||||||
|
|||||||
Reference in New Issue
Block a user