mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 01:39:00 +08:00
refine the warning message for rewrite component (#2429)
### What problem does this PR solve? ### Type of change - [x] Performance Improvement
This commit is contained in:
parent
99a7c0fb97
commit
d3262ca378
@ -54,7 +54,7 @@ class RewriteQuestion(Generate, ABC):
|
|||||||
setattr(self, "_loop", 0)
|
setattr(self, "_loop", 0)
|
||||||
if self._loop >= self._param.loop:
|
if self._loop >= self._param.loop:
|
||||||
self._loop = 0
|
self._loop = 0
|
||||||
raise Exception("Maximum loop time exceeds. Can't find relevant information.")
|
raise Exception("Sorry! Nothing relevant found.")
|
||||||
self._loop += 1
|
self._loop += 1
|
||||||
q = "Question: "
|
q = "Question: "
|
||||||
for r, c in self._canvas.history[::-1]:
|
for r, c in self._canvas.history[::-1]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user