Skip to content

add front end code - #27

Merged
KevinHuSh merged 1 commit into
infiniflow:mainfrom
KevinHuSh:main
Jan 17, 2024
Merged

KevinHuSh merged 1 commit into
infiniflow:mainfrom
KevinHuSh:main

Conversation

@KevinHuSh

Copy link
Copy Markdown
Contributor

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

  • Has Code change
  • Has CI related scripts change

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Note for reviewer

@KevinHuSh
KevinHuSh merged commit 3aa4699 into infiniflow:main Jan 17, 2024
yingfeng pushed a commit that referenced this pull request Feb 5, 2024
yingfeng pushed a commit that referenced this pull request Feb 21, 2024
yuzhichang added a commit to yuzhichang/ragflow that referenced this pull request Sep 29, 2026
…nstraints

The scan floor could be satisfied literally: infiniflow#27 q1005 shipped a bare
phrase to grep_chunks ('Cancer zodiac scientist born 1905 bachelor
1930s') - a grep call in the Searched lines, but no co-occurrence test,
and infiniflow#27 q875's regex ('three founders.*named after|named after.*
birthplace') draws every term from ONE constraint, which is a
rephrasing of that constraint rather than a pairing. Both properties
are now required: the pattern carries .* or |, and it joins a
distinctive term of one constraint with one of a DIFFERENT constraint,
each with its own fail string.
yuzhichang added a commit to yuzhichang/ragflow that referenced this pull request Sep 29, 2026
The planner is the only component that still holds the question when the
plan is written: check_decomposition is mechanical and gets no copy of
the question, and the explorer, the auditor and the delivery gate all
work from the plan as written. infiniflow#27 q875 dropped two of the question's
discriminating clauses (one of the pair born/raised in the USA; both
residing there before 2024) and nothing downstream could see it.

A plan that passes the mechanical check now gets one review round: a
user message pointing the planner at 'The review round' checklist in its
own instructions - clause coverage first, then root richness, per-block
duty, the question's own words, and fewer blocks. The pre-review plan is
the fallback on every failure path (unreadable, unparseable, or a
revision that breaks the mechanical check), so the round can only
improve the plan.
yuzhichang added a commit to yuzhichang/ragflow that referenced this pull request Sep 29, 2026
Two fixes for the review round, from the infiniflow#28 decomposition review. The
writing doctrine never taught where a cross-variable clause goes ('from
different industries', 'their mothers share the same first name'): no
single variable owns it, so the planner kept dropping it (infiniflow#27 carried
it, infiniflow#28 lost it) and the review checklist that names it rubber-stamped
the plan (6 rounds, revised=false). The doctrine now says pair clauses
belong on the block whose From edges reach both variables or on the
later sibling as a comparison, and symmetric 'one ... the other ...'
clauses may be assigned to either variable as long as no clause is left
homeless. The review itself is now auditable: each round outputs one
verdict line per checklist item, parsed in Go - a round with missing
verdicts is sent back, a FAIL buys a rewrite re-checked by
checkDecomposition, and the loop runs to three rounds or until all items
pass, always falling back to the last mechanically valid plan.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant