Skip to content

[app-builder] feat: optimize prompt#441

Merged
CodeCasterX merged 12 commits intoModelEngine-Group:1.2.xfrom
barret-yzh:1.2.x
Sep 18, 2025
Merged

[app-builder] feat: optimize prompt#441
CodeCasterX merged 12 commits intoModelEngine-Group:1.2.xfrom
barret-yzh:1.2.x

Conversation

@barret-yzh
Copy link
Copy Markdown
Contributor

@barret-yzh barret-yzh commented Sep 17, 2025

🔗 相关问题 / Related Issue

Issue 链接 / Issue Link: #428

  • 我已经创建了相关 Issue 并进行了讨论 / I have created and discussed the related issue
  • 这是一个微小的修改(如错别字),不需要 Issue / This is a trivial change (like typo fix) that doesn't need an issue

📋 变更类型 / Type of Change

  • 🐛 Bug 修复 / Bug fix (non-breaking change which fixes an issue)
  • ✨ 新功能 / New feature (non-breaking change which adds functionality)
  • 💥 破坏性变更 / Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 文档更新 / Documentation update
  • 🔧 重构 / Refactoring (no functional changes)
  • ⚡ 性能优化 / Performance improvement
  • 📦 依赖升级 / Dependency upgrade (update dependencies to newer versions)
  • 🚀 功能增强 / Feature enhancement (improve existing functionality without breaking changes)
  • 🧹 代码清理 / Code cleanup

📝 变更目的 / Purpose of the Change

提高问题分类工具、问题优化工具、文本提取工具输出的准确性

📋 主要变更 / Brief Changelog

  • 优化两个工具的prompt.txt文件

🧪 验证变更 / Verifying this Change

测试步骤 / Test Steps

  1. 本地启动项目,建立工作流,写入优化后的提示词
  2. 编写测试案例进行手动调试

测试覆盖 / Test Coverage

  • 我已经添加了单元测试 / I have added unit tests
  • 所有现有测试都通过 / All existing tests pass
  • 我已经进行了手动测试 / I have performed manual testing

📸 截图 / Screenshots

  • 问题分类工具:
  • 大模型配置:Qwen/Qwen2.5-72B-Instruct
  • 测试用例:
    问题分类列表:
    {"类型ID":"1", "问题类型":"技术支持"}
    {"类型ID":"2", "问题类型":"产品建议"}
    {"类型ID":"3", "问题类型":"其他"}
    历史对话:无
    测试问题:我是一个中小企业的IT管理员,最近我们公司在使用你们的产品时遇到了一系列问题,包括但不限于系统响应速度慢、偶尔出现数据同步错误、用户权限管理界面不够直观、移动端APP闪退、第三方集成API调用失败等等,我想知道这些问题是否有统一的解决方案,还是需要分别处理,另外希望你们的产品团队能考虑在下个版本中优化用户体验
  • 预期答案:返回ID=1(技术支持)
  • 现有提示词返回:其他问题(❌)
截屏2025-09-17 18 08 58 - 优化后的提示词返回:技术支持(✅) 截屏2025-09-17 18 09 40
  • 问题优化工具:
  • 大模型配置:Qwen/Qwen2.5-72B-Instruct
  • 测试用例:
    历史对话:
    Q: Spring Boot版本升级需要注意什么
    A: 从2.x升级到3.x需要注意依赖变化
    测试问题:有哪些不兼容的地方?
  • 预期答案:无
  • 现有提示词返回:
截屏2025-09-17 20 51 07
  • 优化后的提示词返回:
截屏2025-09-17 20 51 12
  • 结论:生成的检索词更加具体准确

✅ 贡献者检查清单 / Contributor Checklist

请确保你的 Pull Request 符合以下要求 / Please ensure your Pull Request meets the following requirements:

基本要求 / Basic Requirements:

  • 确保有 GitHub Issue 对应这个变更(微小变更如错别字除外)/ Make sure there is a Github issue filed for the change (trivial changes like typos excluded)
  • 你的 Pull Request 只解决一个 Issue,没有包含其他不相关的变更 / Your PR addresses just this issue, without pulling in other changes - one PR resolves one issue
  • PR 中的每个 commit 都有有意义的主题行和描述 / Each commit in the PR has a meaningful subject line and body

代码质量 / Code Quality:

  • 我的代码遵循项目的代码规范 / My code follows the project's coding standards
  • 我已经进行了自我代码审查 / I have performed a self-review of my code
  • 我已经为复杂的代码添加了必要的注释 / I have commented my code, particularly in hard-to-understand areas

测试要求 / Testing Requirements:

  • 我已经编写了必要的单元测试来验证逻辑正确性 / I have written necessary unit-tests to verify the logic correction
  • 当存在跨模块依赖时,我尽量使用了 mock / I have used mocks when cross-module dependencies exist
  • 基础检查通过:mvn -B clean package -Dmaven.test.skip=truenpm install --force && npm run build:pro / Basic checks pass
  • 单元测试通过:mvn clean install / Unit tests pass

文档和兼容性 / Documentation and Compatibility:

  • 我已经更新了相应的文档 / I have made corresponding changes to the documentation
  • 如果有破坏性变更,我已经在 PR 描述中详细说明 / If there are breaking changes, I have documented them in detail
  • 我已经考虑了向后兼容性 / I have considered backward compatibility

📋 附加信息 / Additional Notes

审查者注意事项 / Reviewer Notes:

@reeeborn33 reeeborn33 added in: builder Issues in app-builder modules type: enhancement A general enhancement labels Sep 17, 2025
@reeeborn33 reeeborn33 added this to the 1.2.3 milestone Sep 17, 2025
@reeeborn33 reeeborn33 linked an issue Sep 17, 2025 that may be closed by this pull request
4 tasks
reeeborn33
reeeborn33 previously approved these changes Sep 17, 2025
@loveTsong
Copy link
Copy Markdown
Contributor

是否有提示词优化前后对比效果的数据,比如可以针对典型的问题或数据对比前后的结果差异,能够体现出优化效果,然后放到截图中

@barret-yzh
Copy link
Copy Markdown
Contributor Author

是否有提示词优化前后对比效果的数据,比如可以针对典型的问题或数据对比前后的结果差异,能够体现出优化效果,然后放到截图中

好的老师,我后续完善一下

@CodeCasterX
Copy link
Copy Markdown
Member

是否有提示词优化前后对比效果的数据,比如可以针对典型的问题或数据对比前后的结果差异,能够体现出优化效果,然后放到截图中

好的老师,我后续完善一下

建议在当前PR中列出相关数据,然后再合入,否则,当前PR没有效果支撑

@CodeCasterX CodeCasterX merged commit 859a253 into ModelEngine-Group:1.2.x Sep 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in: builder Issues in app-builder modules type: enhancement A general enhancement

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

优化工具提示词

4 participants