mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-30 15:16:45 +08:00
Component debugging funcionality. (#4012)
### What problem does this PR solve? #3993 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -87,4 +87,8 @@ class Categorize(Generate, ABC):
|
||||
|
||||
return Categorize.be_output(list(self._param.category_description.items())[-1][1]["to"])
|
||||
|
||||
def debug(self, **kwargs):
|
||||
df = self._run([], **kwargs)
|
||||
cpn_id = df.iloc[0, 0]
|
||||
return Categorize.be_output(self._canvas.get_compnent_name(cpn_id))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user