Skip to content

docs: remove unnecessary docs & adjust page layout - #18146

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
Yannnnnnny:chatchannel
Aug 12, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
Yannnnnnny:chatchannel

Conversation

@Yannnnnnny

@Yannnnnnny Yannnnnnny commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

remove unnecessary docs
adjust page layout
fix some images layout
add chat channel docs

@dosubot dosubot Bot added size:XXL This PR changes 1000+ lines, ignoring generated files. 📖 documentation Improvements or additions to documentation labels Aug 12, 2026
@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The pull request reorganizes Agent documentation, adds comprehensive Chat Channels guides, updates sidebar navigation positions, and removes or replaces outdated documentation images.

Changes

Agent documentation

Layer / File(s) Summary
Agent overview and entry points
docs/guides/agent/agent_overview.md, docs/guides/agent/creation_and_management.md, docs/guides/agent/understand_the_canvas.md, docs/guides/agent/embed_into_web_pages.md, docs/guides/agent/import_and_export_agents.md
Adds Agent overview, creation, canvas, embedding, and import/export guidance. Removes several standalone pages and category configurations.
Agent workflow components
docs/guides/agent/agent_workflow/*
Expands configuration guidance for Agent components, data manipulation, retrieval, tools, messaging, and browser automation.

Chat Channels documentation

Layer / File(s) Summary
Chat Channels navigation and connection
docs/guides/chatchannel/_category_.json, docs/guides/chatchannel/chat_channels_overview.md, docs/guides/chatchannel/connect_chat.md, docs/guides/chatchannel/faq.md
Adds Chat Channels navigation, overview, connection, verification, and troubleshooting guidance.
Platform access and configuration
docs/guides/chatchannel/channel_access_and_configuration.md
Documents setup and verification for Discord, DingTalk, Feishu/Lark, QQ Bot, Telegram, WeCom, and WhatsApp.

Documentation navigation and media

Layer / File(s) Summary
Navigation and image updates
docs/guides/*/_category_.json, docs/guides/file/link_knowledge_base.md, docs/guides/memory/*
Updates category positions and removes outdated or replaces selected documentation images.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

Poem

A rabbit hops through guides anew,
With Agent paths and channels too.
Screenshots fade, new pages grow,
Clear steps help the workflows flow.
Navigation finds its proper seat—
Documentation feels complete!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Title check ✅ Passed The title clearly summarizes the main documentation removals and layout adjustments in the pull request.
Description check ✅ Passed The description identifies the main documentation removals, layout changes, image fixes, and added chat channel documentation.

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.

@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: 13

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
docs/guides/agent/agent_workflow/data_manipulation_components.md (1)

65-90: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Align the Variable Assigner operation list and table.

The prose lists Overwrite, Set, Append, and Add at Lines 69-73, while the Supported Operations table at Lines 85-90 lists Overwritten by, Set, and Clear. This is a documentation contract mismatch. Use the exact UI labels and document all supported operations once.

🤖 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 `@docs/guides/agent/agent_workflow/data_manipulation_components.md` around
lines 65 - 90, The Variable Assignor documentation lists inconsistent operation
names and coverage between the configuration steps and Supported Operations
table. Update the operation references and table under “Supported Operations” to
use the exact UI labels and include every supported operation—Overwrite, Set,
Append, Add, and Clear—documenting each once with the correct value requirement
and description.
🧹 Nitpick comments (1)
docs/guides/agent/import_and_export_agents.md (1)

23-26: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Specify the exported artifact.

The new section only says “click export”. The repository release note at docs/release_notes.md:821-826 identifies the artifact as JSON. State that Export downloads an Agent JSON file, and document version selection if the export action supports it.

🤖 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 `@docs/guides/agent/import_and_export_agents.md` around lines 23 - 26, Update
the Export Agent section to state that clicking Export downloads the Agent as a
JSON file. If the export flow provides version selection, document that
selection step before downloading.
🤖 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 `@docs/guides/agent/agent_workflow/basic_component_configuration.md`:
- Around line 168-176: Remove the duplicate `Similarity threshold` paragraph
from the retrieval configuration documentation, preserving the original
definition and the intervening `Keyword similarity weight`, `Top N`, and `Rerank
model` descriptions.
- Around line 152-170: Rename the knowledge retrieval parameter from “Keyword
similarity weight” to “Vector similarity weight” in both the configuration steps
and the Parameter Description, keeping the description aligned with the UI field
and its vector-similarity behavior.

In `@docs/guides/agent/agent_workflow/tool_components.md`:
- Around line 254-274: Update the GitHub component’s “Output Result” section to
describe only repository search results, consistent with the Repository Search
API and the documented query input. Remove references to issue, code, and user
search entries unless separate search modes and their inputs are documented.
- Around line 452-465: Update the Yahoo Finance parameter documentation around
the supported-values section: document the actual user-visible effects of
financials, count, and income_stmt, or remove those undocumented rows if their
behavior cannot be described accurately. Remove the empty Supported Values
heading and table rather than leaving stale documentation.
- Around line 683-699: Update the Browser parameter documentation around
chromium_sandbox to recommend running as a non-root user with Chromium
sandboxing enabled by default. Retain guidance for environments where disabling
sandboxing is unavoidable, but explicitly document the reduced isolation risk
for arbitrary page access and file uploads/downloads.
- Around line 587-605: Update the Supported Values table for the HTTP tool to
include a DELETE method row, matching the Go support already documented in the
method description. Preserve the existing distinction that DELETE is supported
by Go but not Python.
- Around line 661-667: Update the Configuration Example table so the Content
value remains a single valid table row: keep the example text on one line within
the cell, or move the multiline content into a fenced block outside the table
while preserving the Output Format row.
- Around line 57-66: Update the Tavily Search configuration example table to use
the Search fields documented in the Tavily Search parameter section, removing
the Tavily Extract-specific entries such as URLs, Extract Depth, and Format.
Keep the example values aligned with the actual Tavily Search configuration
options.

In `@docs/guides/agent/embed_into_web_pages.md`:
- Line 13: Remove the stale “Embed Agent Via Webpage” subsection title from the
Markdown document, since the metadata and H1 already provide the correct “Embed
into Web Pages” heading. Do not retain a duplicate or outdated heading.

In `@docs/guides/agent/understand_the_canvas.md`:
- Around line 25-30: Add the required blank line after “Common variables:” in
docs/guides/agent/understand_the_canvas.md (lines 25-30). In
docs/guides/agent/agent_workflow/data_manipulation_components.md, add blank
lines before the Parameter Description, Supported Operations, and Operation
Configuration tables at lines 106-132, and before the Parameter Description,
Output Result, and Usage Instructions tables at lines 154-174; no table content
changes are needed.

In `@docs/guides/chatchannel/channel_access_and_configuration.md`:
- Around line 159-167: Update the Webhook parameter descriptions for AgentID and
AESKey: identify AgentID as an integer, and describe AESKey as the 43-character
EncodingAESKey used for message encryption and decryption. Preserve the existing
WeCom console locations and failure behavior details.

In `@docs/guides/chatchannel/chat_channels_overview.md`:
- Around line 21-29: The chat channel overview table’s WhatsApp row understates
its backend requirement. Update the “Requires an open platform or developer
backend” column or the WhatsApp entry to explicitly state that WhatsApp requires
a reachable, running WhatsAppGateway, while preserving the credential
requirements for the other channels.

In `@docs/guides/chatchannel/faq.md`:
- Around line 21-23: Update the WeCom Webhook troubleshooting guidance to
separate credential steps: use CorpID and Secret only for access_token
acquisition, then validate AgentID independently as the application identifier
required for sending messages.

---

Outside diff comments:
In `@docs/guides/agent/agent_workflow/data_manipulation_components.md`:
- Around line 65-90: The Variable Assignor documentation lists inconsistent
operation names and coverage between the configuration steps and Supported
Operations table. Update the operation references and table under “Supported
Operations” to use the exact UI labels and include every supported
operation—Overwrite, Set, Append, Add, and Clear—documenting each once with the
correct value requirement and description.

---

Nitpick comments:
In `@docs/guides/agent/import_and_export_agents.md`:
- Around line 23-26: Update the Export Agent section to state that clicking
Export downloads the Agent as a JSON file. If the export flow provides version
selection, document that selection step before downloading.
🪄 Autofix

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 Plus

Run ID: 39a5fceb-8374-490c-ba48-5219aac39982

📥 Commits

Reviewing files that changed from the base of the PR and between 0c225b0 and af0ac6d.

📒 Files selected for processing (43)
  • docs/guides/agent/_category_.json
  • docs/guides/agent/agent_overview.md
  • docs/guides/agent/agent_overview/_category_.json
  • docs/guides/agent/agent_overview/purpose_of_agent.md
  • docs/guides/agent/agent_workflow/basic_component_configuration.md
  • docs/guides/agent/agent_workflow/data_manipulation_components.md
  • docs/guides/agent/agent_workflow/tool_components.md
  • docs/guides/agent/creation_and_management.md
  • docs/guides/agent/creation_and_management/_category_.json
  • docs/guides/agent/creation_and_management/access_agent_page.md
  • docs/guides/agent/creation_and_management/create_from_blank_agent.md
  • docs/guides/agent/creation_and_management/create_from_template.md
  • docs/guides/agent/creation_and_management/save_agent.md
  • docs/guides/agent/creation_and_management/search_copy_and_delete_agent.md
  • docs/guides/agent/embed_into_web_pages.md
  • docs/guides/agent/embed_into_web_pages/_category_.json
  • docs/guides/agent/import_and_export_agents.md
  • docs/guides/agent/import_and_export_agents/_category_.json
  • docs/guides/agent/import_and_export_agents/export_agent.md
  • docs/guides/agent/understand_the_canvas.md
  • docs/guides/agent/understand_the_canvas/_category_.json
  • docs/guides/agent/understand_the_canvas/add_components.md
  • docs/guides/agent/understand_the_canvas/component_connection_rules.md
  • docs/guides/agent/understand_the_canvas/configuration_panel.md
  • docs/guides/agent/understand_the_canvas/save_and_run.md
  • docs/guides/agent/understand_the_canvas/use_variables.md
  • docs/guides/ai_search.md
  • docs/guides/chat/_category_.json
  • docs/guides/chatchannel/_category_.json
  • docs/guides/chatchannel/channel_access_and_configuration.md
  • docs/guides/chatchannel/chat_channels_overview.md
  • docs/guides/chatchannel/connect_chat.md
  • docs/guides/chatchannel/faq.md
  • docs/guides/data_source/_category_.json
  • docs/guides/dataset/_category_.json
  • docs/guides/file/_category_.json
  • docs/guides/file/link_knowledge_base.md
  • docs/guides/memory/_category_.json
  • docs/guides/memory/connect_to_an_agent.md
  • docs/guides/memory/create_memory.md
  • docs/guides/memory/message_page.md
  • docs/guides/models/_category_.json
  • docs/guides/team/_category_.json
💤 Files with no reviewable changes (19)
  • docs/guides/agent/creation_and_management/category.json
  • docs/guides/agent/embed_into_web_pages/category.json
  • docs/guides/agent/agent_overview/category.json
  • docs/guides/agent/import_and_export_agents/category.json
  • docs/guides/agent/understand_the_canvas/category.json
  • docs/guides/agent/understand_the_canvas/add_components.md
  • docs/guides/agent/creation_and_management/search_copy_and_delete_agent.md
  • docs/guides/agent/creation_and_management/access_agent_page.md
  • docs/guides/agent/agent_overview/purpose_of_agent.md
  • docs/guides/agent/understand_the_canvas/use_variables.md
  • docs/guides/agent/creation_and_management/create_from_blank_agent.md
  • docs/guides/agent/creation_and_management/create_from_template.md
  • docs/guides/agent/import_and_export_agents/export_agent.md
  • docs/guides/memory/connect_to_an_agent.md
  • docs/guides/agent/understand_the_canvas/save_and_run.md
  • docs/guides/file/link_knowledge_base.md
  • docs/guides/agent/understand_the_canvas/component_connection_rules.md
  • docs/guides/agent/understand_the_canvas/configuration_panel.md
  • docs/guides/agent/creation_and_management/save_agent.md

Comment on lines +152 to +170
Configuration steps:

Parameter Explanation:
- **Similarity threshold**: Filter low-relevance chunks. Higher values enforce stricter matching but may omit useful content.
- **Keyword similarity weight**: Control vector weight in comprehensive similarity. All knowledge bases used together must share the same embedding model.
- **Top N**: Number of chunks passed to downstream components. Too few leads to insufficient information; too many increases latency and token usage.
- **Rerank model**: Improve sorting of retrieved results, adds latency. Disable for latency-sensitive Agents.

Initial Configuration Reference:
| Parameter | Suggested Value | Scenario | Description |
| ---- | ---- | ---- | ---- |
| Top N | 3~5 | FAQ, short knowledge entries | Faster response for clear answers |
| Top N | 5~10 | Product documentation, help center | Default recommended range |
| Top N | 10~20 | Legal contracts, long document analysis | More context, higher token consumption |
| Similarity threshold | 0.2 | Loose recall | Questions with diverse expression patterns |
| Similarity threshold | 0.5 | General Q&A | Default starting value |
| Similarity threshold | 0.8 | Strict precise matching | Scenarios requiring exact terminology matching |
1. Click the knowledge retrieval component.
2. In **Query variable**, select the query source. `sys.query` is commonly used.
3. In **Retrieval source**, select one or more knowledge bases, or select **Memory**.
4. Adjust **Similarity threshold**, **Keyword similarity weight**, and **Top N** as needed.
5. For cross-language retrieval, select a **Cross-language search** language.
6. For graph multi-hop Q&A, enable **Use knowledge graph**.
7. Click **Run** to test the retrieval results.

![Knowledge Retrieval Component](https://raw.githubusercontent.com/infiniflow/ragflow-docs/main/images/knowledge_retrieval_component_1.jpg)

![Knowledge Retrieval Component](https://raw.githubusercontent.com/infiniflow/ragflow-docs/main/images/knowledge_retrieval_component_2.jpg)

### Parameter Description

**Similarity threshold** is used to filter low-relevance chunks. The higher the threshold, the stricter the returned content, but useful information may be missed.

**Keyword similarity weight** is used to control the weight of vector similarity in the overall similarity score. When retrieving from multiple knowledge bases together, make sure they use the same embedding model.

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use Vector similarity weight consistently.

The cross-file guide docs/guides/memory/connect_to_an_agent.md uses Vector similarity weight at Lines 20-23. This page uses Keyword similarity weight at Lines 157 and 170, then describes the field as controlling vector similarity. Readers can search for a field that the UI does not expose or tune the wrong score. Rename the field and keep its description consistent.

Proposed fix
-4. Adjust **Similarity threshold**, **Keyword similarity weight**, and **Top N** as needed.
+4. Adjust **Similarity threshold**, **Vector similarity weight**, and **Top N** as needed.
...
-**Keyword similarity weight** is used to control the weight of vector similarity in the overall similarity score.
+**Vector similarity weight** is used to control the weight of vector similarity in the overall similarity score.
📝 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
Configuration steps:
Parameter Explanation:
- **Similarity threshold**: Filter low-relevance chunks. Higher values enforce stricter matching but may omit useful content.
- **Keyword similarity weight**: Control vector weight in comprehensive similarity. All knowledge bases used together must share the same embedding model.
- **Top N**: Number of chunks passed to downstream components. Too few leads to insufficient information; too many increases latency and token usage.
- **Rerank model**: Improve sorting of retrieved results, adds latency. Disable for latency-sensitive Agents.
Initial Configuration Reference:
| Parameter | Suggested Value | Scenario | Description |
| ---- | ---- | ---- | ---- |
| Top N | 3~5 | FAQ, short knowledge entries | Faster response for clear answers |
| Top N | 5~10 | Product documentation, help center | Default recommended range |
| Top N | 10~20 | Legal contracts, long document analysis | More context, higher token consumption |
| Similarity threshold | 0.2 | Loose recall | Questions with diverse expression patterns |
| Similarity threshold | 0.5 | General Q&A | Default starting value |
| Similarity threshold | 0.8 | Strict precise matching | Scenarios requiring exact terminology matching |
1. Click the knowledge retrieval component.
2. In **Query variable**, select the query source. `sys.query` is commonly used.
3. In **Retrieval source**, select one or more knowledge bases, or select **Memory**.
4. Adjust **Similarity threshold**, **Keyword similarity weight**, and **Top N** as needed.
5. For cross-language retrieval, select a **Cross-language search** language.
6. For graph multi-hop Q&A, enable **Use knowledge graph**.
7. Click **Run** to test the retrieval results.
![Knowledge Retrieval Component](https://raw.githubusercontent.com/infiniflow/ragflow-docs/main/images/knowledge_retrieval_component_1.jpg)
![Knowledge Retrieval Component](https://raw.githubusercontent.com/infiniflow/ragflow-docs/main/images/knowledge_retrieval_component_2.jpg)
### Parameter Description
**Similarity threshold** is used to filter low-relevance chunks. The higher the threshold, the stricter the returned content, but useful information may be missed.
**Keyword similarity weight** is used to control the weight of vector similarity in the overall similarity score. When retrieving from multiple knowledge bases together, make sure they use the same embedding model.
Configuration steps:
1. Click the knowledge retrieval component.
2. In **Query variable**, select the query source. `sys.query` is commonly used.
3. In **Retrieval source**, select one or more knowledge bases, or select **Memory**.
4. Adjust **Similarity threshold**, **Vector similarity weight**, and **Top N** as needed.
5. For cross-language retrieval, select a **Cross-language search** language.
6. For graph multi-hop Q&A, enable **Use knowledge graph**.
7. Click **Run** to test the retrieval results.
![Knowledge Retrieval Component](https://raw.githubusercontent.com/infiniflow/ragflow-docs/main/images/knowledge_retrieval_component_1.jpg)
![Knowledge Retrieval Component](https://raw.githubusercontent.com/infiniflow/ragflow-docs/main/images/knowledge_retrieval_component_2.jpg)
### Parameter Description
**Similarity threshold** is used to filter low-relevance chunks. The higher the threshold, the stricter the returned content, but useful information may be missed.
**Vector similarity weight** is used to control the weight of vector similarity in the overall similarity score. When retrieving from multiple knowledge bases together, make sure they use the same embedding model.
🤖 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 `@docs/guides/agent/agent_workflow/basic_component_configuration.md` around
lines 152 - 170, Rename the knowledge retrieval parameter from “Keyword
similarity weight” to “Vector similarity weight” in both the configuration steps
and the Parameter Description, keeping the description aligned with the UI field
and its vector-similarity behavior.

Comment on lines +168 to +176
**Similarity threshold** is used to filter low-relevance chunks. The higher the threshold, the stricter the returned content, but useful information may be missed.

**Keyword similarity weight** is used to control the weight of vector similarity in the overall similarity score. When retrieving from multiple knowledge bases together, make sure they use the same embedding model.

**Top N** specifies the number of chunks sent to subsequent components. Too few chunks may result in insufficient information, while too many chunks may increase response time and context pressure.

## Message Component
The Message component outputs static or dynamic content to users, usually as the final component of a workflow. It supports fixed text and variable insertion. Multiple message entries can be configured; the system randomly selects one to send.
Enabling a **Rerank model** usually improves the sorting of knowledge retrieval results, but also adds model call latency. For Agents that are sensitive to speed, you can leave reranking disabled at first.

When Begin uses Webhook mode with Final response as response method, the Message component can set HTTP status codes (200 ~ 399).
`Similarity threshold` is used to filter low-relevance chunks. The higher the threshold, the stricter the returned content, but useful information may be missed.

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Remove the duplicate retrieval paragraph.

Line 176 repeats the Similarity threshold definition at Line 168. Delete the duplicate or replace it with the missing parameter description.

As per coding guidelines, Markdown files must remove dead tests, commented-out code, stale documentation, and “move later” notes instead of preserving them.

🤖 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 `@docs/guides/agent/agent_workflow/basic_component_configuration.md` around
lines 168 - 176, Remove the duplicate `Similarity threshold` paragraph from the
retrieval configuration documentation, preserving the original definition and
the intervening `Keyword similarity weight`, `Top N`, and `Rerank model`
descriptions.

Source: Coding guidelines

Comment on lines 57 to 66
#### Configuration Example

```json
{
"query": "RAGFlow open source",
"topic": "general",
"search_depth": "basic"
}
```
| Configuration Item | Example Value |
| --- | --- |
| URLs | `["https://www.ragflow.io/docs/dev/"]` |
| Extract Depth | basic |
| Format | markdown |
| API Key | |
| Include Images | false |

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.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Use Tavily Search fields in the Tavily Search example.

The table lists URLs, Extract Depth, and Format. These fields belong to Tavily Extract at Line 73 onward, not Tavily Search. The Search parameters are documented at Lines 31-46. Replace the copied example.

Proposed fix
 | Configuration Item | Example Value |
-| URLs | `["https://www.ragflow.io/docs/dev/"]` |
-| Extract Depth | basic |
-| Format | markdown |
+| Query | RAGFlow official documentation |
+| Topic | general |
+| Search Depth | basic |
+| Max Results | 6 |
 | API Key |  |
 | Include Images | false |
📝 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
#### Configuration Example
```json
{
"query": "RAGFlow open source",
"topic": "general",
"search_depth": "basic"
}
```
| Configuration Item | Example Value |
| --- | --- |
| URLs | `["https://www.ragflow.io/docs/dev/"]` |
| Extract Depth | basic |
| Format | markdown |
| API Key | |
| Include Images | false |
#### Configuration Example
| Configuration Item | Example Value |
| --- | --- |
| Query | RAGFlow official documentation |
| Topic | general |
| Search Depth | basic |
| Max Results | 6 |
| API Key | |
| Include Images | false |
🤖 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 `@docs/guides/agent/agent_workflow/tool_components.md` around lines 57 - 66,
Update the Tavily Search configuration example table to use the Search fields
documented in the Tavily Search parameter section, removing the Tavily
Extract-specific entries such as URLs, Extract Depth, and Format. Keep the
example values aligned with the actual Tavily Search configuration options.

Comment on lines +254 to +274
### GitHub (GitHub)

The GitHub component searches repositories through the GitHub Repository Search API and sorts by popularity by default. It is suitable for finding open-source projects, reference implementations, and technology ecosystems.

#### Parameter Description

| Field | Type | Required | Default Value | Description |
| --- | --- | --- | --- | --- |
| query | string | Yes | `{sys.query}` | GitHub repository search syntax or keywords. |
| top_n | integer | Node configuration | 10 | Maximum number of returned repositories. |

#### Configuration Example

| Configuration Item | Example Value |
| --- | --- |
| Query | RAGFlow |
| Top N | 10 |

#### Output Result

The output contains repository, issue, code, or user search entries, usually including names, links, summaries, update times, and other information. The output includes repository names, links, descriptions, and stars.

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Align the GitHub output with the documented API.

Line 256 says the component uses the GitHub Repository Search API, and Line 262 documents repository search input. Line 274 claims issue, code, and user search entries. Remove those claims or document separate search modes and inputs.

🤖 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 `@docs/guides/agent/agent_workflow/tool_components.md` around lines 254 - 274,
Update the GitHub component’s “Output Result” section to describe only
repository search results, consistent with the Repository Search API and the
documented query input. Remove references to issue, code, and user search
entries unless separate search modes and their inputs are documented.

Comment on lines +452 to +465
| stock_code | string | Yes | `{sys.query}` | Stock code or company name. Use exchange-standard codes when possible. |
| info | boolean | Node configuration | true | Output company and quote information. |
| history | boolean | Node configuration | false | Output historical market data. |
| count | boolean | Node configuration | false | Share count switch defined by the code. |
| financials | boolean | Node configuration | false | The current implementation outputs calendar information. |
| income_stmt | boolean | Node configuration | false | Income statement switch defined by the code. |
| balance_sheet | boolean | Node configuration | false | Output balance sheet and quarterly balance sheet. |
| cash_flow_statement | boolean | Node configuration | false | Output cash flow statement and quarterly cash flow statement. |
| news | boolean | Node configuration | true | Output related news. |

#### Supported Values

Symbols and markets depend on Yahoo Finance data availability.
| Parameter | Supported Value | Description |
| --- | --- | --- |

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Complete or remove the Yahoo Finance support table.

The financials, count, and income_stmt rows do not describe user-visible output, and the Supported Values table at Lines 462-465 is empty. Document the actual effects or remove the undocumented rows and empty section.

As per coding guidelines, Markdown files must remove dead tests, commented-out code, stale documentation, and “move later” notes instead of preserving them.

🤖 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 `@docs/guides/agent/agent_workflow/tool_components.md` around lines 452 - 465,
Update the Yahoo Finance parameter documentation around the supported-values
section: document the actual user-visible effects of financials, count, and
income_stmt, or remove those undocumented rows if their behavior cannot be
described accurately. Remove the empty Supported Values heading and table rather
than leaving stale documentation.

Source: Coding guidelines

# Embed Agent Via Webpage
# Embed into Web Pages

## Embed Agent Via Webpage

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Remove the stale subsection title.

The metadata and H1 use “Embed into Web Pages”, but Line 13 retains “Embed Agent Via Webpage”. Rename the subsection or remove it if the H1 is sufficient.

As per coding guidelines, Markdown files must remove dead tests, commented-out code, stale documentation, and “move later” notes instead of preserving them.

🤖 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 `@docs/guides/agent/embed_into_web_pages.md` at line 13, Remove the stale
“Embed Agent Via Webpage” subsection title from the Markdown document, since the
metadata and H1 already provide the correct “Embed into Web Pages” heading. Do
not retain a duplicate or outdated heading.

Source: Coding guidelines

Comment on lines +25 to +30
| Variable | Description |
| ---- | ---- |
| `sys.query` | Current user input question |
| `formalized_content` | Sorted text results from Retrieval, SQL or tool components |
| `chunks` | Fragment set output by document parsing or chunking components |
| `content` | Main text output from Agent, Code or other components |

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Add blank lines around the affected Markdown tables.

The same MD058 formatting defect appears in both Agent workflow guides. Add a blank line between each heading or label and its following table.

  • docs/guides/agent/understand_the_canvas.md#L25-L30: add a blank line after Common variables:.
  • docs/guides/agent/agent_workflow/data_manipulation_components.md#L106-L132: add blank lines before the Parameter Description, Supported Operations, and Operation Configuration tables.
  • docs/guides/agent/agent_workflow/data_manipulation_components.md#L154-L174: add blank lines before the Parameter Description, Output Result, and Usage Instructions tables.
🧰 Tools
🪛 markdownlint-cli2 (0.23.2)

[warning] 25-25: Tables should be surrounded by blank lines

(MD058, blanks-around-tables)

📍 Affects 2 files
  • docs/guides/agent/understand_the_canvas.md#L25-L30 (this comment)
  • docs/guides/agent/agent_workflow/data_manipulation_components.md#L106-L132
  • docs/guides/agent/agent_workflow/data_manipulation_components.md#L154-L174
🤖 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 `@docs/guides/agent/understand_the_canvas.md` around lines 25 - 30, Add the
required blank line after “Common variables:” in
docs/guides/agent/understand_the_canvas.md (lines 25-30). In
docs/guides/agent/agent_workflow/data_manipulation_components.md, add blank
lines before the Parameter Description, Supported Operations, and Operation
Configuration tables at lines 106-132, and before the Parameter Description,
Output Result, and Usage Instructions tables at lines 154-174; no table content
changes are needed.

Source: Linters/SAST tools

Comment on lines +159 to +167
Parameters required by the `Webhook` method:

- **Name**: The channel name displayed in RAGFlow, used to distinguish different WeCom bots.
- **ConnectionType**: Select `Webhook`. After selecting it, you need to fill in `CorpID`, `AgentID`, `Secret`, `Token`, and `AESKey`.
- **Secret**: The WeCom application secret. Obtain it from **WeCom Admin Console > Application Management**. An incorrect value causes WeCom messages to fail to send.
- **CorpID**: The enterprise subject identifier. Obtain it from **WeCom Admin Console > Enterprise Information**. An incorrect value causes callback verification or API authentication to fail.
- **AgentID**: The WeCom application identifier. Obtain it from **WeCom Admin Console > Application Management**. An incorrect value causes application message sending to fail.
- **Token**: The callback signature verification credential. Obtain it from **WeCom Admin Console > Callback Configuration**. An incorrect value causes callback verification to fail.
- **AESKey**: The message encryption and decryption key. Obtain it from **WeCom Admin Console > Callback Configuration**. An incorrect value causes messages to fail to decrypt.

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- target implementation ---'
fd -i 'channel.py' . | while IFS= read -r f; do
  case "$f" in
    */wecom/*) printf '%s\n' "$f"; sed -n '500,570p' "$f" ;;
  esac
done

printf '%s\n' '--- related field handling and tests ---'
rg -n -C 3 'AgentID|AESKey|EncodingAESKey|Webhook' . -g '*.py' -g '*.md' | head -n 240

Repository: infiniflow/ragflow

Length of output: 23884


🏁 Script executed:

#!/bin/bash
set -eu

python3 - <<'PY'
samples = ["123", "0", "-1", " 123 ", "1.5", "", "123", "١٢٣"]
for value in samples:
    try:
        result = int(value)
        print(f"AgentID={value!r}: accepted -> {result}")
    except (TypeError, ValueError) as exc:
        print(f"AgentID={value!r}: rejected -> {type(exc).__name__}")

for value in ["a" * 42, "a" * 43, "a" * 44]:
    print(f"AESKey length={len(value)}: {'accepted' if len(value) == 43 else 'rejected'}")
PY

printf '%s\n' '--- surrounding documentation ---'
sed -n '155,180p' docs/guides/chatchannel/channel_access_and_configuration.md

Repository: infiniflow/ragflow

Length of output: 2959


Document the WeCom Webhook field constraints.

Describe AgentID as an integer. Describe AESKey as the 43-character EncodingAESKey used for message encryption and decryption.

🤖 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 `@docs/guides/chatchannel/channel_access_and_configuration.md` around lines 159
- 167, Update the Webhook parameter descriptions for AgentID and AESKey:
identify AgentID as an integer, and describe AESKey as the 43-character
EncodingAESKey used for message encryption and decryption. Preserve the existing
WeCom console locations and failure behavior details.

Source: MCP tools

Comment on lines +21 to +29
| Chat channel | Access method | Requires an open platform or developer backend | Use case |
| --- | --- | --- | --- |
| Discord | `BotToken` | Yes | Suitable for Discord community support, product Q&A, and user feedback collection. |
| DingTalk | `ClientID` + `ClientSecret` | Yes | Suitable for knowledge Q&A, process consultation, and collaboration support within DingTalk organizations. |
| Feishu / Lark | `AppID` + `AppSecret` | Yes | Suitable for enterprise knowledge assistants and internal business Q&A in Feishu or Lark. |
| QQ Bot | `AppID` + `ClientSecret` | Yes | Suitable for QQ user services, community Q&A, and channel interactions. |
| Telegram | `BotToken` | Yes | Suitable for overseas user services, community operations, and real-time bot conversations. |
| WeCom | `Webhook` or `WebSocket` | Yes | Suitable for employee services, knowledge Q&A, and business bots in WeCom. |
| WhatsApp | QR pairing | No | Log in to a WhatsApp account by scanning a QR code and forward messages to a Chat. |

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.

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

Clarify the WhatsApp backend requirement in the overview table.

The table marks WhatsApp as No for “Requires an open platform or developer backend”. docs/guides/chatchannel/channel_access_and_configuration.md, Lines 195 and 209, requires WhatsAppGateway to be running and reachable. Rename the column to describe external platform credentials, or qualify the WhatsApp cell with the required WhatsAppGateway. Otherwise, users can skip a required service.

Example clarification
-| WhatsApp | QR pairing | No | Log in to a WhatsApp account by scanning a QR code and forward messages to a Chat. |
+| WhatsApp | QR pairing | No external platform keys; `WhatsAppGateway` required | Log in to a WhatsApp account by scanning a QR code and forward messages to a Chat. |
📝 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
| Chat channel | Access method | Requires an open platform or developer backend | Use case |
| --- | --- | --- | --- |
| Discord | `BotToken` | Yes | Suitable for Discord community support, product Q&A, and user feedback collection. |
| DingTalk | `ClientID` + `ClientSecret` | Yes | Suitable for knowledge Q&A, process consultation, and collaboration support within DingTalk organizations. |
| Feishu / Lark | `AppID` + `AppSecret` | Yes | Suitable for enterprise knowledge assistants and internal business Q&A in Feishu or Lark. |
| QQ Bot | `AppID` + `ClientSecret` | Yes | Suitable for QQ user services, community Q&A, and channel interactions. |
| Telegram | `BotToken` | Yes | Suitable for overseas user services, community operations, and real-time bot conversations. |
| WeCom | `Webhook` or `WebSocket` | Yes | Suitable for employee services, knowledge Q&A, and business bots in WeCom. |
| WhatsApp | QR pairing | No | Log in to a WhatsApp account by scanning a QR code and forward messages to a Chat. |
| Chat channel | Access method | Requires an open platform or developer backend | Use case |
| --- | --- | --- | --- |
| Discord | `BotToken` | Yes | Suitable for Discord community support, product Q&A, and user feedback collection. |
| DingTalk | `ClientID` + `ClientSecret` | Yes | Suitable for knowledge Q&A, process consultation, and collaboration support within DingTalk organizations. |
| Feishu / Lark | `AppID` + `AppSecret` | Yes | Suitable for enterprise knowledge assistants and internal business Q&A in Feishu or Lark. |
| QQ Bot | `AppID` + `ClientSecret` | Yes | Suitable for QQ user services, community Q&A, and channel interactions. |
| Telegram | `BotToken` | Yes | Suitable for overseas user services, community operations, and real-time bot conversations. |
| WeCom | `Webhook` or `WebSocket` | Yes | Suitable for employee services, knowledge Q&A, and business bots in WeCom. |
| WhatsApp | QR pairing | No external platform keys; `WhatsAppGateway` required | Log in to a WhatsApp account by scanning a QR code and forward messages to a Chat. |
🤖 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 `@docs/guides/chatchannel/chat_channels_overview.md` around lines 21 - 29, The
chat channel overview table’s WhatsApp row understates its backend requirement.
Update the “Requires an open platform or developer backend” column or the
WhatsApp entry to explicitly state that WhatsApp requires a reachable, running
WhatsAppGateway, while preserving the credential requirements for the other
channels.

Comment on lines +21 to +23
## Messages Can Be Received but Replies Fail

Check whether the bot has permission to send messages, and confirm that the bound Chat can answer normally on the RAGFlow page. For `WeCom Webhook`, also confirm that `CorpID`, `AgentID`, and `Secret` can obtain `access_token` normally.

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -e
printf '%s\n' '--- candidate files ---'
git ls-files | rg -i '(^|/)(faq|wecom|chatchannel|chat.channel|webhook)'
printf '%s\n' '--- FAQ excerpt ---'
cat -n docs/guides/chatchannel/faq.md | sed -n '1,70p'
printf '%s\n' '--- WeCom references ---'
rg -n -i -C 3 'WeCom|CorpID|AgentID|corpsecret|access_token|access token' . --glob '!node_modules' --glob '!dist' --glob '!build' | head -n 300

Repository: infiniflow/ragflow

Length of output: 31359


🏁 Script executed:

#!/bin/bash
set -e
for f in api/channels/wecom/channel.py internal/channels/wecom.go internal/channels/wecom_webhook.go; do
  echo "--- outline: $f ---"
  ast-grep outline "$f" || true
  echo "--- size: $f ---"
  wc -l "$f"
done
echo '--- Python WeCom source ---'
cat -n api/channels/wecom/channel.py
echo '--- Go WeCom source ---'
cat -n internal/channels/wecom.go
echo '--- Go WeCom webhook source ---'
cat -n internal/channels/wecom_webhook.go
echo '--- focused docs/config/tests ---'
rg -n -i -C 5 'wecom|corpid|agentid|corpsecret|secret|access_token|access-token' docs api/channels internal/channels web/src/pages/user-setting/chat-channel test --glob '!*.lock' | head -n 400

Repository: infiniflow/ragflow

Length of output: 50374


🏁 Script executed:

#!/bin/bash
set -e
echo '--- Go token and send sections ---'
sed -n '535,615p' internal/channels/wecom.go
echo '--- WeCom tests focused on token/application fields ---'
rg -n -i -C 8 'getAccessToken|accessToken|agent.?id|corp.?id|corpsecret|message/send|access_token' internal/channels/*_test.go api --glob '*test*' --glob '*.py' | head -n 300
echo '--- channel documentation ---'
rg -n -i -C 8 'WeCom|corp_id|agent_id|secret|connection_type' docs/guides/chatchannel docs --glob '*.md' --glob '*.mdx' | head -n 300
echo '--- read-only behavioral verifier ---'
python3 - <<'PY'
from pathlib import Path
import re

py = Path("api/channels/wecom/channel.py").read_text()
go = Path("internal/channels/wecom.go").read_text()

py_token = re.search(r'params\s*=\s*\{\s*"corpid":\s*self\.account\.corp_id,\s*"corpsecret":\s*self\.account\.secret,\s*\}', py)
py_send = re.search(r'"agentid":\s*int\(self\.account\.agent_id\)', py)
go_token = re.search(r'url\.Values\{\s*"corpid":\s*\[\]string\{c\.account\.CorpID\},\s*"corpsecret":\s*\[\]string\{c\.account\.Secret\},\s*\}', go)
go_send = re.search(r'"agentid":\s*c\.account\.AgentID', go)

print({
    "python_token_uses_only_corp_id_and_secret": bool(py_token),
    "python_send_uses_agent_id": bool(py_send),
    "go_token_uses_only_corp_id_and_secret": bool(go_token),
    "go_send_uses_agent_id": bool(go_send),
})
if not (py_token and py_send and go_token and go_send):
    raise SystemExit("WeCom parameter separation invariant not found")
PY

Repository: infiniflow/ragflow

Length of output: 50374


🏁 Script executed:

#!/bin/bash
set -e
python3 - <<'PY'
from pathlib import Path

py = Path("api/channels/wecom/channel.py").read_text()
go = Path("internal/channels/wecom.go").read_text()

def section(text, start, end):
    a = text.index(start)
    b = text.index(end, a)
    return text[a:b]

py_token = section(py, "    async def _get_access_token", "    async def send")
py_send = section(py, "    async def send", "    async def _send_websocket_message")
go_token = section(go, "func (c *wecomChannel) getAccessToken", "func (c *wecomChannel) clearAccessToken")
go_send = section(go, "func (c *wecomChannel) sendApplicationMessage", "func (c *wecomChannel) getAccessToken")

checks = {
    "python_token_has_corp_id": '"corpid": self.account.corp_id' in py_token,
    "python_token_has_secret": '"corpsecret": self.account.secret' in py_token,
    "python_token_excludes_agent_id": "agent_id" not in py_token,
    "python_send_has_agent_id": '"agentid": int(self.account.agent_id)' in py_send,
    "go_token_has_corp_id": 'query.Set("corpid", c.account.CorpID)' in go_token,
    "go_token_has_secret": 'query.Set("corpsecret", c.account.Secret)' in go_token,
    "go_token_excludes_agent_id": "AgentID" not in go_token,
    "go_send_has_agent_id": '"agentid": c.account.AgentID' in go_send,
}
print(checks)
if not all(checks.values()):
    raise SystemExit("WeCom token/application parameter separation invariant failed")
PY

Repository: infiniflow/ragflow

Length of output: 423


Separate AgentID validation from access_token acquisition.

For WeCom Webhook, use CorpID and Secret to obtain access_token. Validate AgentID separately as the application identifier used for message sending.

🤖 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 `@docs/guides/chatchannel/faq.md` around lines 21 - 23, Update the WeCom
Webhook troubleshooting guidance to separate credential steps: use CorpID and
Secret only for access_token acquisition, then validate AgentID independently as
the application identifier required for sending messages.

Source: MCP tools

@JinHai-CN
JinHai-CN merged commit df60798 into infiniflow:main Aug 12, 2026
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:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants