Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(improvement)(chat) 优化提示工程、重试机制 #1658

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

whyuds
Copy link
Contributor

@whyuds whyuds commented Sep 12, 2024

  1. 默认及用户设置temperature一般为0,LLM生成格式问题重试时仍然保持一致问题。
  2. 目前生成语义SQL不稳定,幻觉导致部分跟随性弱的本地模型经常添加注释导致解析sql失败,使用langchain的json格式化输出并提供thought占位符供大模型发挥。

本地模型llama-3-70b测试40+case未发现sql、json解析报错

@jerryjzhang
Copy link
Collaborator

看起来不错,感谢贡献

@jerryjzhang jerryjzhang merged commit 0ff31dd into tencentmusic:master Sep 13, 2024
12 checks passed
@jerryjzhang jerryjzhang added this to the 0.9.8 milestone Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants