Skip to content

feat: Intent recognition node, configurable to not output reasons to improve performance#5257

Open
wangliang181230 wants to merge 1 commit into
1Panel-dev:v2from
wangliang181230:PR/13-feat-intentNode-outputReasonConfig
Open

feat: Intent recognition node, configurable to not output reasons to improve performance#5257
wangliang181230 wants to merge 1 commit into
1Panel-dev:v2from
wangliang181230:PR/13-feat-intentNode-outputReasonConfig

Conversation

@wangliang181230
Copy link
Copy Markdown
Contributor

@wangliang181230 wangliang181230 commented May 14, 2026

What this PR does / why we need it?

feat: Intent recognition node, configurable to not output reasons to improve performance

Summary of your change

新特性:意图识别 节点,可配置为不输出 理由,以此来提升性能。

说明:

  1. 在生产环境中,让大模型输出理由没有太大的意义,理由内容并不是判断意图的依据,可以直接不输出。
  2. 在联调测试阶段,可以设置输出理由来排查意图识别不正确的原因。
  3. 不输出理由可以大大的提升意图识别节点的响应速度,视大模型的速度不同,响应时间可降低 0.5 秒 以上,大模型速度越慢,响应时间降低越大。

效果截图:

  1. 意图识别节点,新增的配置功能界面截图:
    图片

  2. 输出理由时:
    图片

  3. 不输出理由时:
    图片

Please indicate you've done the following:

  • Made sure tests are passing and test coverage is added if needed.
  • Made sure commit message follow the rule of Conventional Commits specification.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot Bot commented May 14, 2026

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot Bot commented May 14, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@wangliang181230 wangliang181230 force-pushed the PR/13-feat-intentNode-outputReasonConfig branch from b39adbe to 108abb1 Compare May 14, 2026 08:41
</h5>
<div class="p-8-12 border-t-dashed lighter pre-wrap">
{{ data.question || '-' }}
{{ data.question || data.user_input || '-' }}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

意图识别的用户输入属性名是 user_input

@wangliang181230 wangliang181230 changed the title feat: Configurable output of reason for Intent recognition feat: Intent recognition node, configurable to not output reasons to improve performance May 14, 2026
@wangliang181230 wangliang181230 force-pushed the PR/13-feat-intentNode-outputReasonConfig branch from f102940 to b87b5bf Compare May 14, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant