Repository navigation
format code - #14
Merged
Merged
format code#14
Conversation
4 tasks done
yuzhichang
added a commit
to yuzhichang/ragflow
that referenced
this pull request
Jun 16, 2026
The v3.5 commit closed 5 items in the gap analysis (§11.5.1) but
the closing tests were 'test passes, production not wired' false
positives. Post-commit review caught all 5. v3.5.1 wires them
end-to-end + 4 incidental false-positive closures that surfaced
while re-running the full suite.
Wired end-to-end (production-level):
- service.AgentService.RunAgent: new signature
(ctx, userID, canvasID, sessionID, version, userInput)
<-chan orchestrator.RunEvent
builds a RunFunc from the version DSL, drives
orchestrator.Driver.Run. Replaces the 'Phase 5 wiring
pending' string-channel stub.
- handler.RunAgent: reads ?session_id= and ?user_input= (plus
JSON body), emits one SSE frame per RunEvent.Type with a
data: [DONE] tail on 'done'. Drops the event-clobbering
'event: message' wrapper.
- fixture_stubs.go:init() now registers
newRetrievalComponent for Retrieval AND SearchMyDataset
(OQ infiniflow#14 Python-typo alias) and newExeSQLComponent for
ExeSQL. Replaces the stub-only path that v3.5 left in place.
- newRetrievalComponent(params) parses the v1 DSL param
surface (kb_ids, top_n, top_k, similarity_threshold,
keywords_similarity_weight, rerank_id, empty_response) and
folds them as defaults over per-call inputs in
applyDefaults, matching Python's RetrievalParam semantics.
- orchestrator Driver.Run: extracts the surfaceable answer
from state.Snapshot() (answer > result > content precedence)
instead of emitting a hardcoded 'hello' V1 placeholder.
- LLMComponent.Invoke: re-wraps the default invoker in a
fresh newRetryInvoker when MaxRetries or DelayAfterError is
set on LLMParam. Honors literal MaxRetries=0 (1 attempt)
when paired with non-zero DelayAfterError.
Incidental false-positive closures:
- switch.go evaluateClause: added >=, <=, not contains, start
with, end with, not empty operators + case-insensitive ==
via equalFoldValues. The 7 TestSwitch_Operators_* tests
were failing on v3.5.1 audit entry.
- message.go splitSentences: changed text[prev:m[1]] to
text[prev:m[0]+1] to stop BEFORE trailing whitespace.
TestSplitSentences_DotBoundary / MixedPunctuation were
failing because out[0] was 'first. ' with trailing space.
Gap analysis:
- .claude/plans/agent-go-port-gap-analysis.md: new §11.6
records the v3.5 false-positive audit and the v3.5.1
production-wiring fix. v3.5.2 follow-ups (real canvas
Compile/Invoke in RunFunc, TTS boot wiring, OQ infiniflow#6
integration test, Phase 5d CodeExec) listed separately.
Test count delta: 1113 passed / 27 failed -> 1361 passed /
26 failed. The 26 remaining failures are pre-existing
TestDSLExamples_* fixture path errors that predate v3.5.
Co-Authored-By: Claude <[email protected]>
yuzhichang
added a commit
to yuzhichang/ragflow
that referenced
this pull request
Sep 29, 2026
… and the measured query forms are named Measured on q875/q25 (infiniflow#14 vs the successful runs): the planner's clue ran grep and vector but never the plain bm25 keyword query that had hit the answer document before; a bare-OR grep (Grammy|expelled|military) drowned the answer document that a co-occurrence pattern (Grammy.*expelled) surfaced; and an under-determined clue profile (several real people fit the constraints) was answered by anchoring one world-knowledge candidate instead of testing several side by side in one query. The locate section now says the legs are complementary over one clue (two misses still owe the third), names the conjunction form for grep against the bare-OR form, and adds the multi-hypothesis keyword query for under-determined profiles. Also repairs a duplicated sentence fragment in the Pattern Search entry.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Add corresponding issue link with summary if exists -->
Issue link:
What is changed and how it works?
Code changes
Check List
Tests
Side effects
Note for reviewer