Skip to content

Docs: Update version references to v0.26.1 in READMEs and docs - #16158

Merged
asiroliu merged 1 commit into
infiniflow:mainfrom
asiroliu:docs/update_version_references_to_v0.26.1
Jun 17, 2026
Merged

asiroliu merged 1 commit into
infiniflow:mainfrom
asiroliu:docs/update_version_references_to_v0.26.1

Conversation

@asiroliu

Copy link
Copy Markdown
Collaborator

What problem does this PR solve?

  • Update version tags in README files (including translations) from v0.26.0 to v0.26.1
  • Modify Docker image references and documentation to reflect new version
  • Update version badges and image descriptions
  • Maintain consistency across all language variants of README files

Type of change

  • Documentation Update

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. 📖 documentation Improvements or additions to documentation labels Jun 17, 2026
@coderabbitai

coderabbitai Bot commented Jun 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Version bump from v0.26.0 to v0.26.1 across the entire repository: Python package manifests (pyproject.toml files), Docker environment config and startup scripts, Helm chart image tag, database migration CLI help text, and all documentation files including nine language-specific READMEs.

Changes

RAGFlow v0.26.0 → v0.26.1 Version Bump

Layer / File(s) Summary
Package manifests and runtime migration version
pyproject.toml, sdk/python/pyproject.toml, admin/client/pyproject.toml, docker/entrypoint.sh, docker/launch_backend_service.sh
Python package versions bumped to 0.26.1; --database-version flag in Docker entrypoint and backend launch scripts updated to v0.26.1.
Docker env config and Helm chart tag
docker/.env, helm/values.yaml
RAGFLOW_IMAGE tag and commented fallback registry URLs in docker/.env updated to v0.26.1; ragflow.image.tag in Helm values updated accordingly.
Migration tool script version examples
tools/scripts/db_schema_sync.py, tools/scripts/mysql_migration.py
Docstring examples, --version/--database-version help text, epilog CLI examples, and validation error message examples updated to reference v0.26.1.
Documentation and multilingual README version references
README*.md, docker/README.md, test/README.md, admin/client/README.md, tools/scripts/README.md, docs/...
Docker pull badges, git checkout commands, RAGFLOW_IMAGE defaults, quickstart/upgrade/FAQ/guide/admin docs, and tools README updated from v0.26.0 to v0.26.1 across all language variants and documentation files.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • infiniflow/ragflow#15941: Same type of documentation/config version bump touching identical artifacts (README Docker badges, docker/.env RAGFLOW_IMAGE tag), moving the release reference forward to v0.26.0.
  • infiniflow/ragflow#14488: Same release-version bump pattern updating overlapping docs and Docker image tag references, including tools/scripts/db_schema_sync.py CLI help text examples.
  • infiniflow/ragflow#14257: Identical type of version-bump edits updating tools/scripts/db_schema_sync.py and cross-README version strings from one release tag to the next.

Suggested reviewers

  • yingfeng

🐇 A hop, a skip, a point-one more,
The version ticked — from zero to fore!
Badges and scripts all chant in line,
v0.26.1 — oh how divine!
The rabbit stamps the release with glee,
One tiny bump sets the project free! 🎉

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 76.19% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: updating version references to v0.26.1 across documentation files.
Description check ✅ Passed The description includes the required 'What problem does this PR solve?' section with clear bullet points and correctly identifies the change type as 'Documentation Update'.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@asiroliu
asiroliu force-pushed the docs/update_version_references_to_v0.26.1 branch from eace3c3 to 2ba5fc9 Compare June 17, 2026 11:13

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (3)
setup_test_account.sh (3)

129-139: 💤 Low value

provider_exists function is defined but never called.

This function appears to be dead code. Either use it (e.g., before calling add_provider to skip redundant API calls) or remove it to reduce maintenance burden.

♻️ Suggestion: Use it for idempotency check
+# In main(), before add_provider calls:
+    if ! provider_exists "ZHIPU-AI" "$AUTH_TOKEN"; then
+        add_provider "ZHIPU-AI" "$AUTH_TOKEN"
+    fi

Or remove the function if add_provider already handles duplicates gracefully (which it does via the "duplicated|already exist" check).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@setup_test_account.sh` around lines 129 - 139, The provider_exists function
is defined but never invoked, making it dead code that should be cleaned up.
Since the add_provider function already handles duplicate providers gracefully
through its error checking, you should remove the entire provider_exists
function definition to eliminate maintenance burden and keep the script focused
on actual operations. If in the future idempotency checks are needed before
calling add_provider, this function can be re-introduced and called
appropriately, but for now it should be deleted.

76-82: ⚡ Quick win

Add curl timeouts to prevent indefinite hangs.

All curl calls lack timeout settings. If the server is unresponsive or there are network issues, the script will hang indefinitely. This is particularly problematic in CI/CD pipelines.

Add --connect-timeout and --max-time to all curl invocations:

♻️ Proposed fix for api_post (apply similarly to other functions)
 api_post() {
     local endpoint="$1"
     local json_data="$2"
-    curl -s -X POST "${API_BASE}${endpoint}" \
+    curl -s --connect-timeout 10 --max-time 30 -X POST "${API_BASE}${endpoint}" \
         -H "Content-Type: application/json" \
         -d "$json_data"
 }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@setup_test_account.sh` around lines 76 - 82, The curl command in the api_post
function lacks timeout settings, which can cause the script to hang indefinitely
if the server is unresponsive or network issues occur. Add --connect-timeout and
--max-time flags to the curl invocation in the api_post function to set
reasonable timeout limits (for example, --connect-timeout 10 and --max-time 30),
and apply the same timeout flags to all other curl commands throughout the
script to prevent indefinite hangs.

186-213: ⚡ Quick win

Login request is made twice unnecessarily.

The function calls the login endpoint twice: once via api_post (line 189) to check the response code, and again with curl -D - (lines 202-205) to extract headers. This is inefficient and could trigger rate limiting.

Consolidate into a single request that captures both headers and body:

♻️ Proposed fix
 login_and_get_token() {
     log_info "Logging in to get auth token"
-    local response
-    response=$(api_post "/auth/login" "{\"email\": \"${EMAIL}\", \"password\": \"${PASSWORD}\"}")
-    local code
-    code=$(echo "$response" | grep -oP '(?<="code":)[0-9]+')
-
-    if [ "$code" != "0" ]; then
-        local message
-        message=$(echo "$response" | grep -oP '(?<="message":")[^"]+')
-        log_error "Login failed: $message"
-        exit 1
-    fi
-
-    # Extract token from Authorization header - curl -D dumps headers to stdout
-    local auth_header
-    auth_header=$(curl -s -D - -X POST "${API_BASE}/auth/login" \
+    local headers_file
+    headers_file=$(mktemp)
+    local response
+    response=$(curl -s -D "$headers_file" -X POST "${API_BASE}/auth/login" \
         -H "Content-Type: application/json" \
-        -d "{\"email\": \"${EMAIL}\", \"password\": \"${PASSWORD}\"}" \
-        | grep -i "^authorization:" | tr -d '\r')
+        -d "{\"email\": \"${EMAIL}\", \"password\": \"${PASSWORD}\"}")
+    
+    local code
+    code=$(echo "$response" | sed -n 's/.*"code":\([0-9]*\).*/\1/p')
+    
+    if [ "$code" != "0" ]; then
+        local message
+        message=$(echo "$response" | sed -n 's/.*"message":"\([^"]*\)".*/\1/p')
+        log_error "Login failed: $message"
+        rm -f "$headers_file"
+        exit 1
+    fi
 
-    AUTH_TOKEN="${auth_header#authorization: }"
+    AUTH_TOKEN=$(grep -i "^authorization:" "$headers_file" | tr -d '\r' | sed 's/^[Aa]uthorization: //')
+    rm -f "$headers_file"
+    
     if [ -z "$AUTH_TOKEN" ]; then
         log_error "Failed to extract auth token"
         exit 1
     fi
     log_success "Logged in successfully, token obtained"
 }
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@setup_test_account.sh` around lines 186 - 213, The login_and_get_token()
function makes two separate API requests to the same endpoint, which is
inefficient. Consolidate these into a single curl request that captures both
response headers and body using the -D flag. Store the full response (headers
and body) in a variable, then parse both the response code from the body and the
Authorization header from the captured headers using grep to extract the values
needed for the code check and AUTH_TOKEN assignment. Remove the redundant
api_post call and the second curl invocation to have only one login request.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@setup_test_account.sh`:
- Around line 32-34: The three API key variable assignments ZHIPU_AI_API_KEY,
SILICONFLOW_API_KEY, and TONGYI_QIANWEN_API_KEY contain hardcoded default values
that appear to be real credentials, which poses a security risk. Remove the
hardcoded fallback values from the parameter expansion syntax for all three
variables so they either use empty defaults or require explicit user-provided
environment variables. This will ensure the validate_config check can properly
detect and reject missing required API keys instead of silently accepting the
hardcoded defaults.
- Around line 171-173: The grep -oP regex flag is a GNU extension that fails on
macOS systems. Replace the grep -oP commands used to extract the code and
message variables with a portable JSON parsing approach. Use jq if available, or
sed/awk as fallback options. Specifically, the code variable extraction and
message variable extraction both use the non-portable grep -oP pattern that
needs to be replaced with a macOS-compatible alternative for reliable
cross-platform JSON parsing.

---

Nitpick comments:
In `@setup_test_account.sh`:
- Around line 129-139: The provider_exists function is defined but never
invoked, making it dead code that should be cleaned up. Since the add_provider
function already handles duplicate providers gracefully through its error
checking, you should remove the entire provider_exists function definition to
eliminate maintenance burden and keep the script focused on actual operations.
If in the future idempotency checks are needed before calling add_provider, this
function can be re-introduced and called appropriately, but for now it should be
deleted.
- Around line 76-82: The curl command in the api_post function lacks timeout
settings, which can cause the script to hang indefinitely if the server is
unresponsive or network issues occur. Add --connect-timeout and --max-time flags
to the curl invocation in the api_post function to set reasonable timeout limits
(for example, --connect-timeout 10 and --max-time 30), and apply the same
timeout flags to all other curl commands throughout the script to prevent
indefinite hangs.
- Around line 186-213: The login_and_get_token() function makes two separate API
requests to the same endpoint, which is inefficient. Consolidate these into a
single curl request that captures both response headers and body using the -D
flag. Store the full response (headers and body) in a variable, then parse both
the response code from the body and the Authorization header from the captured
headers using grep to extract the values needed for the code check and
AUTH_TOKEN assignment. Remove the redundant api_post call and the second curl
invocation to have only one login request.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7de8fad6-e611-4bfa-a101-50d9c23acfa4

📥 Commits

Reviewing files that changed from the base of the PR and between cf7b06c and eace3c3.

⛔ Files ignored due to path filters (3)
  • admin/client/uv.lock is excluded by !**/*.lock
  • sdk/python/uv.lock is excluded by !**/*.lock
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (33)
  • README.md
  • README_ar.md
  • README_fr.md
  • README_id.md
  • README_ja.md
  • README_ko.md
  • README_pt_br.md
  • README_tr.md
  • README_tzh.md
  • README_zh.md
  • admin/client/README.md
  • admin/client/pyproject.toml
  • docker/.env
  • docker/README.md
  • docker/entrypoint.sh
  • docker/launch_backend_service.sh
  • docs/administrator/admin/ragflow_cli.md
  • docs/administrator/configurations/configurations.md
  • docs/administrator/migration/database_schema_and_migration.md
  • docs/administrator/upgrade_ragflow.mdx
  • docs/develop/build_docker_image.mdx
  • docs/faq.mdx
  • docs/guides/dataset/configure_knowledge_base.md
  • docs/guides/manage_files.md
  • docs/quickstart.mdx
  • helm/values.yaml
  • pyproject.toml
  • sdk/python/pyproject.toml
  • setup_test_account.sh
  • test/README.md
  • tools/scripts/README.md
  • tools/scripts/db_schema_sync.py
  • tools/scripts/mysql_migration.py

Comment thread setup_test_account.sh Outdated
Comment on lines +32 to +34
ZHIPU_AI_API_KEY="${ZHIPU_AI_API_KEY:-5c4e7cd09d0642c498d9754d2d1d29cc.uDJ0SEHTl5ybURO5}"
SILICONFLOW_API_KEY="${SILICONFLOW_API_KEY:-sk-cshvllbhctirrygmocywmdseuyyuwnskwjssmbstyfjsnocb}"
TONGYI_QIANWEN_API_KEY="${TONGYI_QIANWEN_API_KEY:-sk-bb0a831c9ac447d19ac85c6b8af1fc1b}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Hardcoded API keys pose a security risk and should be removed.

The fallback default values contain what appear to be real API keys. Even if intended for testing, committing credentials to source control exposes them in git history and violates security best practices. The validate_config check on lines 146-157 will also never fail because these defaults always provide a value.

Remove the hardcoded defaults and require explicit environment variables:

🔒 Proposed fix
-ZHIPU_AI_API_KEY="${ZHIPU_AI_API_KEY:-5c4e7cd09d0642c498d9754d2d1d29cc.uDJ0SEHTl5ybURO5}"
-SILICONFLOW_API_KEY="${SILICONFLOW_API_KEY:-sk-cshvllbhctirrygmocywmdseuyyuwnskwjssmbstyfjsnocb}"
-TONGYI_QIANWEN_API_KEY="${TONGYI_QIANWEN_API_KEY:-sk-bb0a831c9ac447d19ac85c6b8af1fc1b}"
+ZHIPU_AI_API_KEY="${ZHIPU_AI_API_KEY:-}"
+SILICONFLOW_API_KEY="${SILICONFLOW_API_KEY:-}"
+TONGYI_QIANWEN_API_KEY="${TONGYI_QIANWEN_API_KEY:-}"
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@setup_test_account.sh` around lines 32 - 34, The three API key variable
assignments ZHIPU_AI_API_KEY, SILICONFLOW_API_KEY, and TONGYI_QIANWEN_API_KEY
contain hardcoded default values that appear to be real credentials, which poses
a security risk. Remove the hardcoded fallback values from the parameter
expansion syntax for all three variables so they either use empty defaults or
require explicit user-provided environment variables. This will ensure the
validate_config check can properly detect and reject missing required API keys
instead of silently accepting the hardcoded defaults.

Source: Linters/SAST tools

Comment thread setup_test_account.sh Outdated
Comment on lines +171 to +173
code=$(echo "$response" | grep -oP '(?<="code":)[0-9]+')
local message
message=$(echo "$response" | grep -oP '(?<="message":")[^"]+')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

grep -oP is not portable and will fail on macOS.

The Perl regex flag (-P) is a GNU grep extension not available on macOS's BSD grep. This will cause script failures with "invalid option -- P" on macOS systems.

Consider using sed, awk, or installing jq for reliable JSON parsing:

♻️ Proposed fix using sed (portable)
-    code=$(echo "$response" | grep -oP '(?<="code":)[0-9]+')
+    code=$(echo "$response" | sed -n 's/.*"code":\([0-9]*\).*/\1/p')
     local message
-    message=$(echo "$response" | grep -oP '(?<="message":")[^"]+')
+    message=$(echo "$response" | sed -n 's/.*"message":"\([^"]*\)".*/\1/p')

Or better, use jq for robust JSON parsing:

code=$(echo "$response" | jq -r '.code')
message=$(echo "$response" | jq -r '.message')
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
code=$(echo "$response" | grep -oP '(?<="code":)[0-9]+')
local message
message=$(echo "$response" | grep -oP '(?<="message":")[^"]+')
code=$(echo "$response" | sed -n 's/.*"code":\([0-9]*\).*/\1/p')
local message
message=$(echo "$response" | sed -n 's/.*"message":"\([^"]*\)".*/\1/p')
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@setup_test_account.sh` around lines 171 - 173, The grep -oP regex flag is a
GNU extension that fails on macOS systems. Replace the grep -oP commands used to
extract the code and message variables with a portable JSON parsing approach.
Use jq if available, or sed/awk as fallback options. Specifically, the code
variable extraction and message variable extraction both use the non-portable
grep -oP pattern that needs to be replaced with a macOS-compatible alternative
for reliable cross-platform JSON parsing.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
README_fr.md (1)

193-193: ⚡ Quick win

Address static analysis typographical issues on line 193.

The static analysis tool flagged three issues on line 193:

  1. Incorrect apostrophe character — French typography requires proper directional quotation marks or apostrophes.
  2. Missing space after period — Ensure proper spacing follows the period in the sentence.
  3. Word choice suggestion — Consider more precise terminology for the instruction.

These are minor formatting issues that should be corrected for consistency with French documentation standards.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README_fr.md` at line 193, Correct the three typographical issues on line 193
in the French documentation. First, replace the straight apostrophes in
contractions like "l'édition" and "l'image" with proper French directional
apostrophes (curly quotes) to match French typography standards. Second, verify
that all periods in the sentence are followed by proper spacing between clauses.
Third, review the word choice throughout the sentence and consider if more
precise or idiomatic French terminology would better convey the instruction to
users downloading the Docker image.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@README_fr.md`:
- Line 193: Correct the three typographical issues on line 193 in the French
documentation. First, replace the straight apostrophes in contractions like
"l'édition" and "l'image" with proper French directional apostrophes (curly
quotes) to match French typography standards. Second, verify that all periods in
the sentence are followed by proper spacing between clauses. Third, review the
word choice throughout the sentence and consider if more precise or idiomatic
French terminology would better convey the instruction to users downloading the
Docker image.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6e3c0963-59b1-4641-acba-816653173778

📥 Commits

Reviewing files that changed from the base of the PR and between eace3c3 and 2ba5fc9.

⛔ Files ignored due to path filters (3)
  • admin/client/uv.lock is excluded by !**/*.lock
  • sdk/python/uv.lock is excluded by !**/*.lock
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (32)
  • README.md
  • README_ar.md
  • README_fr.md
  • README_id.md
  • README_ja.md
  • README_ko.md
  • README_pt_br.md
  • README_tr.md
  • README_tzh.md
  • README_zh.md
  • admin/client/README.md
  • admin/client/pyproject.toml
  • docker/.env
  • docker/README.md
  • docker/entrypoint.sh
  • docker/launch_backend_service.sh
  • docs/administrator/admin/ragflow_cli.md
  • docs/administrator/configurations/configurations.md
  • docs/administrator/migration/database_schema_and_migration.md
  • docs/administrator/upgrade_ragflow.mdx
  • docs/develop/build_docker_image.mdx
  • docs/faq.mdx
  • docs/guides/dataset/configure_knowledge_base.md
  • docs/guides/manage_files.md
  • docs/quickstart.mdx
  • helm/values.yaml
  • pyproject.toml
  • sdk/python/pyproject.toml
  • test/README.md
  • tools/scripts/README.md
  • tools/scripts/db_schema_sync.py
  • tools/scripts/mysql_migration.py
✅ Files skipped from review due to trivial changes (21)
  • admin/client/README.md
  • test/README.md
  • docker/README.md
  • README_id.md
  • docs/guides/manage_files.md
  • admin/client/pyproject.toml
  • README_zh.md
  • docs/administrator/migration/database_schema_and_migration.md
  • docs/guides/dataset/configure_knowledge_base.md
  • docs/quickstart.mdx
  • README_tzh.md
  • docs/administrator/upgrade_ragflow.mdx
  • docs/administrator/configurations/configurations.md
  • tools/scripts/README.md
  • docker/entrypoint.sh
  • docs/administrator/admin/ragflow_cli.md
  • README_ko.md
  • pyproject.toml
  • tools/scripts/db_schema_sync.py
  • docs/faq.mdx
  • tools/scripts/mysql_migration.py
🚧 Files skipped from review as they are similar to previous changes (5)
  • docker/launch_backend_service.sh
  • README.md
  • sdk/python/pyproject.toml
  • docker/.env
  • helm/values.yaml

@asiroliu
asiroliu merged commit 4379269 into infiniflow:main Jun 17, 2026
1 check passed
@asiroliu
asiroliu deleted the docs/update_version_references_to_v0.26.1 branch June 18, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📖 documentation Improvements or additions to documentation size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant