Skip to content

Commit be8f8ca

Browse files
authored
Merge pull request #7 from stackhpc/upstream-v0.19.1
Update to upstream v0.19.1
2 parents fc70c06 + 2f77988 commit be8f8ca

File tree

541 files changed

+36722
-4755
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

541 files changed

+36722
-4755
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ jobs:
8888
echo "Waiting for service to be available..."
8989
sleep 5
9090
done
91-
cd sdk/python && uv sync --python 3.10 --group test --frozen && uv pip install . && source .venv/bin/activate && cd test/test_sdk_api && pytest -s --tb=short get_email.py t_dataset.py t_chat.py t_session.py t_document.py t_chunk.py
91+
if [[ $GITHUB_EVENT_NAME == 'schedule' ]]; then
92+
export HTTP_API_TEST_LEVEL=p3
93+
else
94+
export HTTP_API_TEST_LEVEL=p2
95+
fi
96+
UV_LINK_MODE=copy uv sync --python 3.10 --only-group test --no-default-groups --frozen && uv pip install sdk/python && uv run --only-group test --no-default-groups pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_sdk_api
9297
9398
- name: Run frontend api tests against Elasticsearch
9499
run: |
@@ -98,7 +103,7 @@ jobs:
98103
echo "Waiting for service to be available..."
99104
sleep 5
100105
done
101-
cd sdk/python && uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_frontend_api && pytest -s --tb=short get_email.py test_dataset.py
106+
cd sdk/python && UV_LINK_MODE=copy uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_frontend_api && pytest -s --tb=short get_email.py test_dataset.py
102107
103108
- name: Run http api tests against Elasticsearch
104109
run: |
@@ -113,7 +118,7 @@ jobs:
113118
else
114119
export HTTP_API_TEST_LEVEL=p2
115120
fi
116-
cd sdk/python && uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_http_api && pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL}
121+
UV_LINK_MODE=copy uv sync --python 3.10 --only-group test --no-default-groups --frozen && uv run --only-group test --no-default-groups pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_http_api
117122
118123
- name: Stop ragflow:nightly
119124
if: always() # always run this step even if previous steps failed
@@ -132,7 +137,12 @@ jobs:
132137
echo "Waiting for service to be available..."
133138
sleep 5
134139
done
135-
cd sdk/python && uv sync --python 3.10 --group test --frozen && uv pip install . && source .venv/bin/activate && cd test/test_sdk_api && pytest -s --tb=short get_email.py t_dataset.py t_chat.py t_session.py t_document.py t_chunk.py
140+
if [[ $GITHUB_EVENT_NAME == 'schedule' ]]; then
141+
export HTTP_API_TEST_LEVEL=p3
142+
else
143+
export HTTP_API_TEST_LEVEL=p2
144+
fi
145+
UV_LINK_MODE=copy uv sync --python 3.10 --only-group test --no-default-groups --frozen && uv pip install sdk/python && DOC_ENGINE=infinity uv run --only-group test --no-default-groups pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_sdk_api
136146
137147
- name: Run frontend api tests against Infinity
138148
run: |
@@ -142,7 +152,7 @@ jobs:
142152
echo "Waiting for service to be available..."
143153
sleep 5
144154
done
145-
cd sdk/python && uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_frontend_api && pytest -s --tb=short get_email.py test_dataset.py
155+
cd sdk/python && UV_LINK_MODE=copy uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_frontend_api && pytest -s --tb=short get_email.py test_dataset.py
146156
147157
- name: Run http api tests against Infinity
148158
run: |
@@ -157,7 +167,7 @@ jobs:
157167
else
158168
export HTTP_API_TEST_LEVEL=p2
159169
fi
160-
cd sdk/python && uv sync --python 3.10 --group test --frozen && source .venv/bin/activate && cd test/test_http_api && DOC_ENGINE=infinity pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL}
170+
UV_LINK_MODE=copy uv sync --python 3.10 --only-group test --no-default-groups --frozen && DOC_ENGINE=infinity uv run --only-group test --no-default-groups pytest -s --tb=short --level=${HTTP_API_TEST_LEVEL} test/testcases/test_http_api
161171
162172
- name: Stop ragflow:nightly
163173
if: always() # always run this step even if previous steps failed

.gitignore

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ sdk/python/ragflow.egg-info/
3636
sdk/python/build/
3737
sdk/python/dist/
3838
sdk/python/ragflow_sdk.egg-info/
39+
40+
# Exclude dep files
41+
libssl*.deb
42+
tika-server*.jar*
43+
cl100k_base.tiktoken
44+
chrome*
3945
huggingface.co/
4046
nltk_data/
4147

@@ -44,3 +50,146 @@ nltk_data/
4450
.lh/
4551
.venv
4652
docker/data
53+
54+
55+
#--------------------------------------------------#
56+
# The following was generated with gitignore.nvim: #
57+
#--------------------------------------------------#
58+
# Gitignore for the following technologies: Node
59+
60+
# Logs
61+
logs
62+
*.log
63+
npm-debug.log*
64+
yarn-debug.log*
65+
yarn-error.log*
66+
lerna-debug.log*
67+
.pnpm-debug.log*
68+
69+
# Diagnostic reports (https://nodejs.org/api/report.html)
70+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
71+
72+
# Runtime data
73+
pids
74+
*.pid
75+
*.seed
76+
*.pid.lock
77+
78+
# Directory for instrumented libs generated by jscoverage/JSCover
79+
lib-cov
80+
81+
# Coverage directory used by tools like istanbul
82+
coverage
83+
*.lcov
84+
85+
# nyc test coverage
86+
.nyc_output
87+
88+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
89+
.grunt
90+
91+
# Bower dependency directory (https://bower.io/)
92+
bower_components
93+
94+
# node-waf configuration
95+
.lock-wscript
96+
97+
# Compiled binary addons (https://nodejs.org/api/addons.html)
98+
build/Release
99+
100+
# Dependency directories
101+
node_modules/
102+
jspm_packages/
103+
104+
# Snowpack dependency directory (https://snowpack.dev/)
105+
web_modules/
106+
107+
# TypeScript cache
108+
*.tsbuildinfo
109+
110+
# Optional npm cache directory
111+
.npm
112+
113+
# Optional eslint cache
114+
.eslintcache
115+
116+
# Optional stylelint cache
117+
.stylelintcache
118+
119+
# Microbundle cache
120+
.rpt2_cache/
121+
.rts2_cache_cjs/
122+
.rts2_cache_es/
123+
.rts2_cache_umd/
124+
125+
# Optional REPL history
126+
.node_repl_history
127+
128+
# Output of 'npm pack'
129+
*.tgz
130+
131+
# Yarn Integrity file
132+
.yarn-integrity
133+
134+
# dotenv environment variable files
135+
.env
136+
.env.development.local
137+
.env.test.local
138+
.env.production.local
139+
.env.local
140+
141+
# parcel-bundler cache (https://parceljs.org/)
142+
.cache
143+
.parcel-cache
144+
145+
# Next.js build output
146+
.next
147+
out
148+
149+
# Nuxt.js build / generate output
150+
.nuxt
151+
dist
152+
153+
# Gatsby files
154+
.cache/
155+
# Comment in the public line in if your project uses Gatsby and not Next.js
156+
# https://nextjs.org/blog/next-9-1#public-directory-support
157+
# public
158+
159+
# vuepress build output
160+
.vuepress/dist
161+
162+
# vuepress v2.x temp and cache directory
163+
.temp
164+
165+
# Docusaurus cache and generated files
166+
.docusaurus
167+
168+
# Serverless directories
169+
.serverless/
170+
171+
# FuseBox cache
172+
.fusebox/
173+
174+
# DynamoDB Local files
175+
.dynamodb/
176+
177+
# TernJS port file
178+
.tern-port
179+
180+
# Stores VSCode versions used for testing VSCode extensions
181+
.vscode-test
182+
183+
# yarn v2
184+
.yarn/cache
185+
.yarn/unplugged
186+
.yarn/build-state.yml
187+
.yarn/install-state.gz
188+
.pnp.*
189+
190+
# Serverless Webpack directories
191+
.webpack/
192+
193+
# SvelteKit build / generate output
194+
.svelte-kit
195+

README.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
</div>
66

77
<p align="center">
8-
<a href="./README.md">English</a> |
9-
<a href="./README_zh.md">简体中文</a> |
10-
<a href="./README_tzh.md">繁体中文</a> |
11-
<a href="./README_ja.md">日本語</a> |
12-
<a href="./README_ko.md">한국어</a> |
13-
<a href="./README_id.md">Bahasa Indonesia</a> |
14-
<a href="/README_pt_br.md">Português (Brasil)</a>
8+
<a href="./README.md"><img alt="README in English" src="https://img.shields.io/badge/English-DBEDFA"></a>
9+
<a href="./README_zh.md"><img alt="简体中文版自述文件" src="https://img.shields.io/badge/简体中文-DFE0E5"></a>
10+
<a href="./README_tzh.md"><img alt="繁體版中文自述文件" src="https://img.shields.io/badge/繁體中文-DFE0E5"></a>
11+
<a href="./README_ja.md"><img alt="日本語のREADME" src="https://img.shields.io/badge/日本語-DFE0E5"></a>
12+
<a href="./README_ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-DFE0E5"></a>
13+
<a href="./README_id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-DFE0E5"></a>
14+
<a href="./README_pt_br.md"><img alt="Português(Brasil)" src="https://img.shields.io/badge/Português(Brasil)-DFE0E5"></a>
1515
</p>
1616

1717
<p align="center">
@@ -22,14 +22,17 @@
2222
<img alt="Static Badge" src="https://img.shields.io/badge/Online-Demo-4e6b99">
2323
</a>
2424
<a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
25-
<img src="https://img.shields.io/badge/docker_pull-ragflow:v0.19.0-brightgreen" alt="docker pull infiniflow/ragflow:v0.19.0">
25+
<img src="https://img.shields.io/docker/pulls/infiniflow/ragflow?label=Docker%20Pulls&color=0db7ed&logo=docker&logoColor=white&style=flat-square" alt="docker pull infiniflow/ragflow:v0.19.1">
2626
</a>
2727
<a href="https://github.com/infiniflow/ragflow/releases/latest">
2828
<img src="https://img.shields.io/github/v/release/infiniflow/ragflow?color=blue&label=Latest%20Release" alt="Latest Release">
2929
</a>
3030
<a href="https://github.com/infiniflow/ragflow/blob/main/LICENSE">
3131
<img height="21" src="https://img.shields.io/badge/License-Apache--2.0-ffffff?labelColor=d4eaf7&color=2e6cc4" alt="license">
3232
</a>
33+
<a href="https://deepwiki.com/infiniflow/ragflow">
34+
<img alt="Ask DeepWiki" src="https://deepwiki.com/badge.svg">
35+
</a>
3336
</p>
3437

3538
<h4 align="center">
@@ -40,6 +43,12 @@
4043
<a href="https://demo.ragflow.io">Demo</a>
4144
</h4>
4245

46+
#
47+
48+
<div align="center">
49+
<a href="https://trendshift.io/repositories/9064" target="_blank"><img src="https://trendshift.io/api/badge/repositories/9064" alt="infiniflow%2Fragflow | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
50+
</div>
51+
4352
<details open>
4453
<summary><b>📕 Table of Contents</b></summary>
4554

@@ -78,11 +87,11 @@ Try our demo at [https://demo.ragflow.io](https://demo.ragflow.io).
7887

7988
## 🔥 Latest Updates
8089

90+
- 2025-05-23 Adds a Python/JavaScript code executor component to Agent.
91+
- 2025-05-05 Supports cross-language query.
8192
- 2025-03-19 Supports using a multi-modal model to make sense of images within PDF or DOCX files.
8293
- 2025-02-28 Combined with Internet search (Tavily), supports reasoning like Deep Research for any LLMs.
83-
- 2025-01-26 Optimizes knowledge graph extraction and application, offering various configuration options.
8494
- 2024-12-18 Upgrades Document Layout Analysis model in DeepDoc.
85-
- 2024-11-01 Adds keyword extraction and related question generation to the parsed chunks to improve the accuracy of retrieval.
8695
- 2024-08-22 Support text to SQL statements through RAG.
8796

8897
## 🎉 Stay Tuned
@@ -178,7 +187,7 @@ releases! 🌟
178187
> All Docker images are built for x86 platforms. We don't currently offer Docker images for ARM64.
179188
> If you are on an ARM64 platform, follow [this guide](https://ragflow.io/docs/dev/build_docker_image) to build a Docker image compatible with your system.
180189
181-
> The command below downloads the `v0.19.0-slim` edition of the RAGFlow Docker image. See the following table for descriptions of different RAGFlow editions. To download a RAGFlow edition different from `v0.19.0-slim`, update the `RAGFLOW_IMAGE` variable accordingly in **docker/.env** before using `docker compose` to start the server. For example: set `RAGFLOW_IMAGE=infiniflow/ragflow:v0.19.0` for the full edition `v0.19.0`.
190+
> The command below downloads the `v0.19.1-slim` edition of the RAGFlow Docker image. See the following table for descriptions of different RAGFlow editions. To download a RAGFlow edition different from `v0.19.1-slim`, update the `RAGFLOW_IMAGE` variable accordingly in **docker/.env** before using `docker compose` to start the server. For example: set `RAGFLOW_IMAGE=infiniflow/ragflow:v0.19.1` for the full edition `v0.19.1`.
182191
183192
```bash
184193
$ cd ragflow/docker
@@ -191,8 +200,8 @@ releases! 🌟
191200
192201
| RAGFlow image tag | Image size (GB) | Has embedding models? | Stable? |
193202
|-------------------|-----------------|-----------------------|--------------------------|
194-
| v0.19.0 | &approx;9 | :heavy_check_mark: | Stable release |
195-
| v0.19.0-slim | &approx;2 | ❌ | Stable release |
203+
| v0.19.1 | &approx;9 | :heavy_check_mark: | Stable release |
204+
| v0.19.1-slim | &approx;2 | ❌ | Stable release |
196205
| nightly | &approx;9 | :heavy_check_mark: | _Unstable_ nightly build |
197206
| nightly-slim | &approx;2 | ❌ | _Unstable_ nightly build |
198207

README_id.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
</div>
66

77
<p align="center">
8-
<a href="./README.md">English</a> |
9-
<a href="./README_zh.md">简体中文</a> |
10-
<a href="./README_tzh.md">繁体中文</a> |
11-
<a href="./README_ja.md">日本語</a> |
12-
<a href="./README_ko.md">한국어</a> |
13-
<a href="./README_id.md">Bahasa Indonesia</a> |
14-
<a href="/README_pt_br.md">Português (Brasil)</a>
8+
<a href="./README.md"><img alt="README in English" src="https://img.shields.io/badge/English-DFE0E5"></a>
9+
<a href="./README_zh.md"><img alt="简体中文版自述文件" src="https://img.shields.io/badge/简体中文-DFE0E5"></a>
10+
<a href="./README_tzh.md"><img alt="繁體中文版自述文件" src="https://img.shields.io/badge/繁體中文-DFE0E5"></a>
11+
<a href="./README_ja.md"><img alt="日本語のREADME" src="https://img.shields.io/badge/日本語-DFE0E5"></a>
12+
<a href="./README_ko.md"><img alt="한국어" src="https://img.shields.io/badge/한국어-DFE0E5"></a>
13+
<a href="./README_id.md"><img alt="Bahasa Indonesia" src="https://img.shields.io/badge/Bahasa Indonesia-DBEDFA"></a>
14+
<a href="./README_pt_br.md"><img alt="Português(Brasil)" src="https://img.shields.io/badge/Português(Brasil)-DFE0E5"></a>
1515
</p>
1616

1717
<p align="center">
@@ -22,14 +22,17 @@
2222
<img alt="Lencana Daring" src="https://img.shields.io/badge/Online-Demo-4e6b99">
2323
</a>
2424
<a href="https://hub.docker.com/r/infiniflow/ragflow" target="_blank">
25-
<img src="https://img.shields.io/badge/docker_pull-ragflow:v0.19.0-brightgreen" alt="docker pull infiniflow/ragflow:v0.19.0">
25+
<img src="https://img.shields.io/docker/pulls/infiniflow/ragflow?label=Docker%20Pulls&color=0db7ed&logo=docker&logoColor=white&style=flat-square" alt="docker pull infiniflow/ragflow:v0.19.1">
2626
</a>
2727
<a href="https://github.com/infiniflow/ragflow/releases/latest">
2828
<img src="https://img.shields.io/github/v/release/infiniflow/ragflow?color=blue&label=Rilis%20Terbaru" alt="Rilis Terbaru">
2929
</a>
3030
<a href="https://github.com/infiniflow/ragflow/blob/main/LICENSE">
3131
<img height="21" src="https://img.shields.io/badge/Lisensi-Apache--2.0-ffffff?labelColor=d4eaf7&color=2e6cc4" alt="Lisensi">
3232
</a>
33+
<a href="https://deepwiki.com/infiniflow/ragflow">
34+
<img alt="Ask DeepWiki" src="https://deepwiki.com/badge.svg">
35+
</a>
3336
</p>
3437

3538
<h4 align="center">
@@ -40,6 +43,8 @@
4043
<a href="https://demo.ragflow.io">Demo</a>
4144
</h4>
4245

46+
#
47+
4348
<details open>
4449
<summary><b>📕 Daftar Isi </b> </summary>
4550

@@ -75,11 +80,11 @@ Coba demo kami di [https://demo.ragflow.io](https://demo.ragflow.io).
7580

7681
## 🔥 Pembaruan Terbaru
7782

83+
- 2025-05-23 Menambahkan komponen pelaksana kode Python/JS ke Agen.
84+
- 2025-05-05 Mendukung kueri lintas bahasa.
7885
- 2025-03-19 Mendukung penggunaan model multi-modal untuk memahami gambar di dalam file PDF atau DOCX.
7986
- 2025-02-28 dikombinasikan dengan pencarian Internet (TAVILY), mendukung penelitian mendalam untuk LLM apa pun.
80-
- 2025-01-26 Optimalkan ekstraksi dan penerapan grafik pengetahuan dan sediakan berbagai opsi konfigurasi.
8187
- 2024-12-18 Meningkatkan model Analisis Tata Letak Dokumen di DeepDoc.
82-
- 2024-11-01 Penambahan ekstraksi kata kunci dan pembuatan pertanyaan terkait untuk meningkatkan akurasi pengambilan.
8388
- 2024-08-22 Dukungan untuk teks ke pernyataan SQL melalui RAG.
8489

8590
## 🎉 Tetap Terkini
@@ -173,7 +178,7 @@ Coba demo kami di [https://demo.ragflow.io](https://demo.ragflow.io).
173178
> Semua gambar Docker dibangun untuk platform x86. Saat ini, kami tidak menawarkan gambar Docker untuk ARM64.
174179
> Jika Anda menggunakan platform ARM64, [silakan gunakan panduan ini untuk membangun gambar Docker yang kompatibel dengan sistem Anda](https://ragflow.io/docs/dev/build_docker_image).
175180
176-
> Perintah di bawah ini mengunduh edisi v0.19.0-slim dari gambar Docker RAGFlow. Silakan merujuk ke tabel berikut untuk deskripsi berbagai edisi RAGFlow. Untuk mengunduh edisi RAGFlow yang berbeda dari v0.19.0-slim, perbarui variabel RAGFLOW_IMAGE di docker/.env sebelum menggunakan docker compose untuk memulai server. Misalnya, atur RAGFLOW_IMAGE=infiniflow/ragflow:v0.19.0 untuk edisi lengkap v0.19.0.
181+
> Perintah di bawah ini mengunduh edisi v0.19.1-slim dari gambar Docker RAGFlow. Silakan merujuk ke tabel berikut untuk deskripsi berbagai edisi RAGFlow. Untuk mengunduh edisi RAGFlow yang berbeda dari v0.19.1-slim, perbarui variabel RAGFLOW_IMAGE di docker/.env sebelum menggunakan docker compose untuk memulai server. Misalnya, atur RAGFLOW_IMAGE=infiniflow/ragflow:v0.19.1 untuk edisi lengkap v0.19.1.
177182
178183
```bash
179184
$ cd ragflow/docker
@@ -186,8 +191,8 @@ $ docker compose -f docker-compose.yml up -d
186191

187192
| RAGFlow image tag | Image size (GB) | Has embedding models? | Stable? |
188193
| ----------------- | --------------- | --------------------- | ------------------------ |
189-
| v0.19.0 | &approx;9 | :heavy_check_mark: | Stable release |
190-
| v0.19.0-slim | &approx;2 || Stable release |
194+
| v0.19.1 | &approx;9 | :heavy_check_mark: | Stable release |
195+
| v0.19.1-slim | &approx;2 || Stable release |
191196
| nightly | &approx;9 | :heavy_check_mark: | _Unstable_ nightly build |
192197
| nightly-slim | &approx;2 || _Unstable_ nightly build |
193198

0 commit comments

Comments
 (0)