Skip to content

Port agent PRs to GO - 2 - #16565

Merged
JinHai-CN merged 1 commit into
infiniflow:mainfrom
qinling0210:port_to_go
Jul 2, 2026
Merged

JinHai-CN merged 1 commit into
infiniflow:mainfrom
qinling0210:port_to_go

Conversation

@qinling0210

Copy link
Copy Markdown
Contributor

Summary

Port the following PRs to GO in this PR

#16420
#13295

@qinling0210 qinling0210 self-assigned this Jul 2, 2026
@coderabbitai

coderabbitai Bot commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Adds per-run token usage tracking across model calls, tool loops, and agent SSE completion payloads, and adds Close() cleanup methods for canvas resources and the MCP tool adapter.

Changes

Token usage tracking and reporting

Layer / File(s) Summary
Per-run usage tracking primitives
internal/tokenizer/usage.go
New package with context-based RunUsage accumulator, RunAttrs, install/retrieve helpers, and UsageFromMap/getInt for parsing API usage responses.
Usage data types
internal/entity/models/types.go
Adds ChatUsage struct and Usage/UsageResult/LastUsage fields to ChatResponse, ChatConfig, ChatModel.
Extract usage from OpenAI responses
internal/entity/models/openai.go
Extracts token usage from non-streaming and streaming responses via extractUsageFromMap, enables stream_options.include_usage, and populates Usage/UsageResult.
Model Generate records last usage
internal/entity/models/llm.go
EinoChatModel.Generate resets and records LastUsage, calling recordUsageFromResponse.
Aggregate usage across tool-calling rounds
internal/entity/models/chat_tools.go
runToolLoop and runStreamToolLoop aggregate per-round token usage with fallback text estimation via recordUsageFromResponse, addRoundUsage, and commitRound.
Surface usage in agent run SSE payloads
internal/service/agent.go
Installs per-run usage sink/correlation attrs, adds usagePayload(), includes usage in workflow_finished events across completion paths, and defers Canvas.Close() after DSL decode.

Estimated code review effort: 4 (Complex) | ~60 minutes

Resource cleanup via Close()

Layer / File(s) Summary
Close() implementations and wiring
internal/agent/canvas/canvas.go, internal/agent/tool/mcp.go
Adds Canvas.Close() with recursive param traversal and panic-safe closing, plus MCPToolAdapter.Close() for idle connection cleanup.

Possibly related PRs

  • infiniflow/ragflow#16420 — Implements the same run-scoped token-usage aggregation and reporting pattern, including multi-round accumulation and per-run usage emission.

Suggested labels: 💞 feature

Suggested reviewers: yuzhichang

Poem

A rabbit hops through code so neat,
Counting tokens, round by round complete 🥕
Close() the doors when work is done,
No leaky sockets, no idle run.
Usage tallied, canvas swept clean —
The tidiest burrow you've ever seen! 🐇

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title is related to the change, but it is too generic to convey the main technical update. Use a more specific title that names the main change, such as token-usage propagation and canvas resource cleanup.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description includes the required Summary section and clearly states that the referenced PRs are being ported to Go.
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.

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.

@qinling0210
qinling0210 marked this pull request as ready for review July 2, 2026 07:37
@dosubot dosubot Bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jul 2, 2026

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

Caution

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

⚠️ Outside diff range comments (1)
internal/entity/models/chat_tools.go (1)

141-154: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Non-streaming tool loop's fallback token estimate never reaches the run-level usage sink.

Fallback: if the provider didn't return usage info, estimate from the answer text using tiktoken, but this only updates the local totalTokens return value — it never calls recordUsageFromResponse/tokenizer.RecordRunTokenUsage. The same gap exists in the exceeded-max-rounds final call. Compare with runStreamToolLoop's commitRound (lines 236-258), which always records either the authoritative usage or the roundTokens estimate into the sink. As written, workflow_finished.usage (agent.go) will under-report tokens for non-streaming tool-calling runs whenever the provider omits usage data, while the returned totalTokens from ChatWithTools is correct — an inconsistency between the two consumers of the same computation.

🐛 Proposed fix to keep both paths consistent
 		if resp.Usage == nil || resp.Usage.TotalTokens == 0 {
-			totalTokens += tokenizer.NumTokensFromString(answer)
+			estimated := tokenizer.NumTokensFromString(answer)
+			totalTokens += estimated
+			tokenizer.RecordRunTokenUsage(ctx, 0, 0, estimated)
 		}
 		return answer, totalTokens, nil
 	addRoundUsage(resp)
 	// Fallback: use text-based estimation if no authoritative usage.
 	if resp.Usage == nil || resp.Usage.TotalTokens == 0 {
-		totalTokens += tokenizer.NumTokensFromString(*resp.Answer)
+		estimated := tokenizer.NumTokensFromString(*resp.Answer)
+		totalTokens += estimated
+		tokenizer.RecordRunTokenUsage(ctx, 0, 0, estimated)
 	}
 	return *resp.Answer, totalTokens, nil

Also applies to: 160-178

🤖 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 `@internal/entity/models/chat_tools.go` around lines 141 - 154, The
non-streaming tool loop in ChatWithTools is estimating fallback tokens locally
but never writing that estimate to the run-level usage sink, so
workflow_finished.usage can under-report. Update the fallback paths in the
ChatWithTools tool loop (both the no-tool-calls return path and the
exceeded-max-rounds final response path) to call the same usage recording helper
used elsewhere, such as recordUsageFromResponse or
tokenizer.RecordRunTokenUsage, whenever resp.Usage is missing or zero. Keep the
returned totalTokens unchanged, but ensure the sink receives the authoritative
usage when present or the tiktoken estimate when not, matching
runStreamToolLoop’s commitRound behavior.
🧹 Nitpick comments (2)
internal/agent/canvas/canvas.go (1)

95-120: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Doc comment overstates recursion behavior.

The comment says "Maps, slices, and pointers are recursed into," but the switch only handles map[string]any and []any. Bare pointers to structs (e.g. *SomeWrapper{ Adapter *MCPToolAdapter }) that don't themselves implement Close() won't be recursed into — only values already satisfying interface{ Close() } are caught via the earlier type assertion. Since DSL-decoded params are typically map[string]any/[]any/primitives, this is unlikely to bite in practice today, but the comment is misleading for future maintainers who inject typed struct wrappers into Params.

✏️ Suggested comment fix
-// walkAndClose recursively walks a value and calls Close() on any
-// objects that implement a Close() method. Maps, slices, and pointers
-// are recursed into; other types are skipped. Already-seen objects
-// (by interface identity) are skipped to avoid double-close.
+// walkAndClose recursively walks a value and calls Close() on any
+// objects that implement a Close() method. Only map[string]any and
+// []any containers are recursed into (matching JSON-decoded DSL
+// shapes); other types, including bare struct pointers that don't
+// themselves implement Close(), are skipped. Already-seen objects
+// (by interface identity) are skipped to avoid double-close.
🤖 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 `@internal/agent/canvas/canvas.go` around lines 95 - 120, The doc comment on
walkAndClose overstates what the function actually traverses: the implementation
only recurses into map[string]any and []any, while pointers are only handled if
they directly satisfy Close(). Update the comment to match the real behavior in
walkAndClose and the interface{ Close() } check, so future maintainers are not
misled about support for bare pointer-wrapped structs in Params.
internal/entity/models/openai.go (1)

1061-1104: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duplicate usage-extraction logic vs. tokenizer.UsageFromMap.

extractUsageFromMap reimplements a raw API response map, and returns (prompt_tokens, completion_tokens, total_tokens) parsing already implemented as tokenizer.UsageFromMap in internal/tokenizer/usage.go (lines 144-163), including the identical fallback key names and total_tokens = pt+ct fallback. Since internal/entity/models already imports ragflow/internal/tokenizer elsewhere (e.g., chat_tools.go), consider replacing this private duplicate with a call to the shared helper to avoid maintaining two copies of the same parsing rules.

♻️ Proposed refactor
-func extractUsageFromMap(raw map[string]interface{}) (int, int, int) {
-	if raw == nil {
-		return 0, 0, 0
-	}
-	ru, ok := raw["usage"]
-	if !ok {
-		return 0, 0, 0
-	}
-	usage, ok := ru.(map[string]interface{})
-	if !ok {
-		return 0, 0, 0
-	}
-	get := func(keys ...string) int {
-		for _, k := range keys {
-			v, ok := usage[k]
-			if !ok {
-				continue
-			}
-			switch val := v.(type) {
-			case float64:
-				return int(val)
-			case int:
-				return val
-			case json.Number:
-				n, err := val.Int64()
-				if err == nil {
-					return int(n)
-				}
-			}
-		}
-		return 0
-	}
-	pt := get("prompt_tokens", "input_tokens")
-	ct := get("completion_tokens", "output_tokens")
-	tt := get("total_tokens")
-	if tt == 0 {
-		tt = pt + ct
-	}
-	return pt, ct, tt
-}
+func extractUsageFromMap(raw map[string]interface{}) (int, int, int) {
+	return tokenizer.UsageFromMap(raw)
+}
🤖 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 `@internal/entity/models/openai.go` around lines 1061 - 1104, The usage parsing
in extractUsageFromMap duplicates the shared logic already implemented in
tokenizer.UsageFromMap. Replace the private map-parsing and fallback handling in
extractUsageFromMap with a call to tokenizer.UsageFromMap so the
prompt/completion/total token rules live in one place and stay consistent across
internal/entity/models/openai.go.
🤖 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 `@internal/agent/canvas/canvas.go`:
- Around line 83-93: Add coverage for Canvas.Close() in canvas_test.go by
exercising the teardown path through Canvas.Close and its helper flow in
walkAndClose/safeClose. Include tests that verify duplicate references are only
closed once via the seen map, that panics from a closeable value are swallowed
by safeClose, and that nested map/slice structures are recursively traversed and
closed.

---

Outside diff comments:
In `@internal/entity/models/chat_tools.go`:
- Around line 141-154: The non-streaming tool loop in ChatWithTools is
estimating fallback tokens locally but never writing that estimate to the
run-level usage sink, so workflow_finished.usage can under-report. Update the
fallback paths in the ChatWithTools tool loop (both the no-tool-calls return
path and the exceeded-max-rounds final response path) to call the same usage
recording helper used elsewhere, such as recordUsageFromResponse or
tokenizer.RecordRunTokenUsage, whenever resp.Usage is missing or zero. Keep the
returned totalTokens unchanged, but ensure the sink receives the authoritative
usage when present or the tiktoken estimate when not, matching
runStreamToolLoop’s commitRound behavior.

---

Nitpick comments:
In `@internal/agent/canvas/canvas.go`:
- Around line 95-120: The doc comment on walkAndClose overstates what the
function actually traverses: the implementation only recurses into
map[string]any and []any, while pointers are only handled if they directly
satisfy Close(). Update the comment to match the real behavior in walkAndClose
and the interface{ Close() } check, so future maintainers are not misled about
support for bare pointer-wrapped structs in Params.

In `@internal/entity/models/openai.go`:
- Around line 1061-1104: The usage parsing in extractUsageFromMap duplicates the
shared logic already implemented in tokenizer.UsageFromMap. Replace the private
map-parsing and fallback handling in extractUsageFromMap with a call to
tokenizer.UsageFromMap so the prompt/completion/total token rules live in one
place and stay consistent across internal/entity/models/openai.go.
🪄 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: 528e3830-8209-4a6d-b395-3a5a55712c0e

📥 Commits

Reviewing files that changed from the base of the PR and between 404ef4c and fe84556.

📒 Files selected for processing (8)
  • internal/agent/canvas/canvas.go
  • internal/agent/tool/mcp.go
  • internal/entity/models/chat_tools.go
  • internal/entity/models/llm.go
  • internal/entity/models/openai.go
  • internal/entity/models/types.go
  • internal/service/agent.go
  • internal/tokenizer/usage.go

Comment on lines +83 to +93
func (c *Canvas) Close() {
if c == nil {
return
}
seen := make(map[any]bool)
for _, comp := range c.Components {
for _, v := range comp.Obj.Params {
walkAndClose(v, seen)
}
}
}

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
# Description: Check for existing test coverage of Canvas.Close / walkAndClose / safeClose.
rg -n 'Close|walkAndClose|safeClose' internal/agent/canvas/canvas_test.go

Repository: infiniflow/ragflow

Length of output: 156


🏁 Script executed:

#!/bin/bash
set -euo pipefail

git ls-files 'internal/agent/canvas/*' | sort
echo '--- canvas.go ---'
wc -l internal/agent/canvas/canvas.go
cat -n internal/agent/canvas/canvas.go | sed -n '1,220p'
echo '--- canvas_test.go ---'
wc -l internal/agent/canvas/canvas_test.go
cat -n internal/agent/canvas/canvas_test.go | sed -n '1,260p'
echo '--- other canvas tests ---'
rg -n --hidden --glob '!**/node_modules/**' 'walkAndClose|safeClose|Canvas\.Close|Close\(' internal/agent/canvas

Repository: infiniflow/ragflow

Length of output: 14203


Add tests for Canvas.Close() canvas_test.go only has the smoke test, so this teardown path still lacks coverage for seen deduplication, safeClose panic-swallowing, and recursive traversal of nested maps/slices.

🤖 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 `@internal/agent/canvas/canvas.go` around lines 83 - 93, Add coverage for
Canvas.Close() in canvas_test.go by exercising the teardown path through
Canvas.Close and its helper flow in walkAndClose/safeClose. Include tests that
verify duplicate references are only closed once via the seen map, that panics
from a closeable value are swallowed by safeClose, and that nested map/slice
structures are recursively traversed and closed.

@qinling0210 qinling0210 added the ci Continue Integration label Jul 2, 2026

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

🤖 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 `@internal/entity/models/openai.go`:
- Around line 260-271: The streaming request body in OpenAI request construction
unconditionally adds stream_options.include_usage, which can break providers
that do not support it. Update the request-building path in the openai model
code so stream_options is only added for compatible providers or when explicitly
enabled, and ensure the relevant request builder (where reqBody is assembled)
can fall back to sending stream without stream_options after a 400/422 response.
🪄 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: fa78e932-2f68-4a80-9493-1241cf2d9f82

📥 Commits

Reviewing files that changed from the base of the PR and between fe84556 and 4891ea7.

📒 Files selected for processing (8)
  • internal/agent/canvas/canvas.go
  • internal/agent/tool/mcp.go
  • internal/entity/models/chat_tools.go
  • internal/entity/models/llm.go
  • internal/entity/models/openai.go
  • internal/entity/models/types.go
  • internal/service/agent.go
  • internal/tokenizer/usage.go
🚧 Files skipped from review as they are similar to previous changes (7)
  • internal/agent/tool/mcp.go
  • internal/agent/canvas/canvas.go
  • internal/entity/models/types.go
  • internal/service/agent.go
  • internal/tokenizer/usage.go
  • internal/entity/models/llm.go
  • internal/entity/models/chat_tools.go

Comment on lines +260 to 271
// Build request body with streaming on by default.
// stream_options.include_usage asks the provider to attach a
// usage block to the final streaming chunk (mirrors Python's
// chat_model.py _stream_options / stream_options.include_usage).
reqBody := map[string]interface{}{
"model": modelName,
"messages": apiMessages,
"stream": true,
"stream_options": map[string]interface{}{
"include_usage": true,
},
}

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.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

Do OpenAI-compatible LLM proxy servers commonly reject unknown request body fields like stream_options.include_usage?

💡 Result:

Whether OpenAI-compatible LLM proxy servers reject unknown request body fields, such as stream_options.include_usage, depends entirely on the specific implementation of the proxy [1][2]. There is no industry-wide standard requiring proxies to either accept or reject these fields, and behavior varies significantly between different software projects [1][3]. Some proxies enforce strict schema validation for security or compatibility reasons and will return a 400 Bad Request error if they encounter unknown fields [4][5][2]. Others are designed with a passthrough philosophy, intended to forward all incoming parameters to the backend inference server regardless of whether the proxy recognizes them, effectively allowing the upstream model or API to decide how to handle the data [1][6][3]. Specific issues regarding stream_options.include_usage include: - Strict Rejection: Certain gateways and proxies (e.g., Databricks AI Gateway, specific legacy API endpoints like Codex) implement strict JSON validation and will reject requests containing unknown parameters, including stream_options [5][7][8]. - Automated Injection: Many modern proxies automatically inject stream_options.include_usage to enable token usage tracking for downstream analytics [9][7][10]. If this injection is applied to an endpoint that does not support the parameter, it can cause the request to fail [5][11][7]. - Configurable Behavior: Recognizing the conflict between strict backends and feature-rich proxies, developers often add configuration flags to opt out of such injections or to toggle strict validation [1][12][7]. Best practices for proxy development, particularly those following vLLM or OpenAI-compatibility guidelines, generally recommend that proxies should preserve and forward all request parameters, including unrecognized ones, to ensure maximum compatibility with future API updates and model-specific features [3]. However, as evidenced by common bug reports, many implementations still struggle with this when strict backend validation is involved [4][12][5][8].

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Map the relevant file and inspect the surrounding streaming code.
ast-grep outline internal/entity/models/openai.go --view expanded > /tmp/openai_outline.txt
sed -n '200,320p' internal/entity/models/openai.go | cat -n
printf '\n---\n'
sed -n '320,480p' internal/entity/models/openai.go | cat -n
printf '\n---\n'
sed -n '1040,1125p' internal/entity/models/openai.go | cat -n
printf '\n---\n'
# Find provider-specific config or mentions of OpenAI-compatible providers.
rg -n "OpenAI-compat|OpenAI compatible|stream_options|include_usage|base_url|provider" internal/entity/models internal -g '!**/*_test.go'

Repository: infiniflow/ragflow

Length of output: 50375


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Check whether the codebase has any provider-specific opt-in/feature detection around usage streaming.
rg -n "include_usage|stream_options|usage.*stream|stream.*usage|OpenAI-compatible|compat" . -g '!**/*_test.go' | sed -n '1,220p'

Repository: infiniflow/ragflow

Length of output: 26612


Guard stream_options.include_usage for incompatible providers.
Sending this on every streaming request can break strict OpenAI-compatible backends that reject unknown fields. Make it opt-in per provider, or retry without stream_options on 400/422.

🧰 Tools
🪛 golangci-lint (2.12.2)

[error] 270-270: : # ragflow/internal/ingestion/compilation/extractor [ragflow/internal/ingestion/compilation/extractor.test]
internal/ingestion/compilation/extractor/dep_relation.go:270:9: undefined: Entity
internal/ingestion/compilation/extractor/dep_relation.go:281:69: undefined: Entity
internal/ingestion/compilation/extractor/dep_relation.go:281:109: undefined: Relation
internal/ingestion/compilation/extractor/dep_relation.go:353:27: undefined: Relation
internal/ingestion/compilation/extractor/dep_relation.go:401:37: undefined: Entity
internal/ingestion/compilation/extractor/dep_relation.go:416:56: undefined: Entity
internal/ingestion/compilation/extractor/dep_relation.go:430:97: undefined: Entity
internal/ingestion/compilation/extractor/dep_relation.go:505:90: undefined: Entity
internal/ingestion/compilation/extractor/dep_relation.go:505:113: undefined: Relation
internal/ingestion/compilation/extractor/dep_relation.go:604:88: undefined: Entity
internal/ingestion/compilation/extractor/dep_relation.go:604:88: too many errors

(typecheck)

🤖 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 `@internal/entity/models/openai.go` around lines 260 - 271, The streaming
request body in OpenAI request construction unconditionally adds
stream_options.include_usage, which can break providers that do not support it.
Update the request-building path in the openai model code so stream_options is
only added for compatible providers or when explicitly enabled, and ensure the
relevant request builder (where reqBody is assembled) can fall back to sending
stream without stream_options after a 400/422 response.

@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.16%. Comparing base (404ef4c) to head (4891ea7).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #16565   +/-   ##
=======================================
  Coverage   93.16%   93.16%           
=======================================
  Files          10       10           
  Lines         717      717           
  Branches      118      118           
=======================================
  Hits          668      668           
  Misses         29       29           
  Partials       20       20           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JinHai-CN
JinHai-CN merged commit dcbd0d2 into infiniflow:main Jul 2, 2026
6 checks passed
xugangqiang pushed a commit to xugangqiang/ragflow that referenced this pull request Jul 3, 2026
### Summary

Port the following PRs to GO in this PR

infiniflow#16420
infiniflow#13295
xugangqiang pushed a commit to xugangqiang/ragflow that referenced this pull request Jul 6, 2026
### Summary

Port the following PRs to GO in this PR

infiniflow#16420
infiniflow#13295
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants