Skip to content

[Feature] Schema召回失败的兜底回复 #463

@dawdadsd

Description

@dawdadsd

Feature Request

当表召回=0时,返回可用的表或者建议问题和下一步操作,而不是只报失败

Image

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

考虑在SchemaRecallNode中返回:

  1. 可用的表
  2. 建议提问
  3. 下一步操作

召回逻辑成功走原流程,失败的时候,把静态的fail方案改成动态文案构建
动态文案构成:

  • 当前可用表
  • 建议提问
  • 下一步操作

具体设计细节为:让AI产出可点击的操作动作 -> 前端点击动作后发操作请求到后端,后端做ActionRouter,每一个Step都可以做继续执行下一步或修改后在执行
闭环实现 : 建议 -> 点击 -> 拆解 -> 执行 -> 反馈
这部分考虑是使用状态机做状态流转,因为分析的业务其实比较单一,比较好管理,当然也可以使用SpringAi自带的工具方法实现,创建Tool,但是状态会比较难管理

修改后:

Image

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions