feat(storage): add auto language detection for semantic summary generation#1076
Open
likzn wants to merge 2 commits intovolcengine:mainfrom
Open
feat(storage): add auto language detection for semantic summary generation#1076likzn wants to merge 2 commits intovolcengine:mainfrom
likzn wants to merge 2 commits intovolcengine:mainfrom
Conversation
… generation - Integrate language detection into SemanticProcessor for automatic output language - Update 5 prompt templates (code_ast_summary, code_summary, document_summary, file_summary, overview_generation) - Add output_language parameter injection via Output Language: directive - Fix language_fallback config field documentation
|
Failed to generate code suggestions for PR |
Author
|
@qin-ctx Hi 我看这个issue指定给你了,我尝试优化下了这个逻辑,这个PR主要是实现了 Issue #934 - 多语言语义摘要生成功能。有空可以看下 背景当前上传文件后生成的 summary 和 overview 统一为英文,对其他语言用户不够友好 优化方案本次优化复用了已有的 _detect_language_from_text 函数,实现了一个更通用的方案:
变更内容
测试结果
|
Collaborator
|
@likzn 哈喽,感谢贡献。可以提供一些摘要结果截图吗,比如配置了语言选项后,摘要等信息和语言配置保持一致 |
Author
晚点我补充下人工测试结果 |
Collaborator
|
fixed #1067 |
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
实现多语言摘要生成功能。当前的 summary 和 overview 统一生成英文内容,现在根据文档内容自动检测语言并生成对应语言的摘要,提升实用性。
Type of Change
Testing
Related Issues
Checklist
Changes
SemanticProcessor集成_detect_language_from_text自动检测内容语言code_ast_summary.yaml,code_summary.yaml,document_summary.yaml,file_summary.yaml,overview_generation.yamlOutput Language: {{ output_language }}指令引导 LLM 生成对应语言摘要