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

Release version 0.5.0: Major improvements and bug fixes #22

Merged
merged 4 commits into from
Sep 29, 2024

Conversation

skytin1004
Copy link
Collaborator

Purpose

Key updates:

  • Resolved problems where code blocks and inline code were split across chunks during translation, causing incomplete translations and broken markdown structures: Replaced code blocks (```) and inline code (``) with placeholders (e.g., @@CODE_BLOCK_x@@, @@INLINE_CODE_x@@) before translation, and restored them afterward to ensure no splitting occurs.
  • Sequential markdown processing: Improved translation logic to handle markdown files and their chunks sequentially, ensuring that every chunk is fully translated before moving to the next. This resolves issues with missing or skipped chunks during the process.
  • Enhanced line break consistency check: Added a mechanism to detect formatting issues by comparing line breaks between original and translated files. If the difference exceeds a predefined threshold (5 lines), the translation is flagged for review and retry.
  • Improve generative AI disclaimer: Updated the disclaimer message to better reflect that the translation is done by an AI model, ensuring users understand the limitations and context of the translation.
  • Performance improvements: Optimized the process for handling both markdown and image translations, and implemented retry logic for failed translations.

Important

All translation issues previously encountered in the Phi-3 CookBook, such as skipped chunks and incomplete translations, have been resolved in this version.

This release addresses several major issues related to markdown and image translation, providing more reliable and stable translation workflows. Due to the significance of these improvements, the version is upgraded to 0.5.0.

Does this introduce a breaking change?

When developers merge from main and run the server, azd up, or azd deploy, will this produce an error?
If you're not sure, try it out on an old environment.

[ ] Yes
[x] No

Type of change

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[x] Other... Please describe: Release version 0.5.0

skytin1004 and others added 4 commits September 29, 2024 17:41
Key updates:
- **Fix markdown translation issues**: Resolved problems where code blocks and inline code were split across chunks during translation, causing incomplete translations and broken markdown structures.
  - Replaced code blocks ( ` ) and inline code ( ` ) with placeholders (e.g., @@CODE_BLOCK_x@@, @@INLINE_CODE_x@@) before translation, and restored them afterward to ensure no splitting occurs.
- **Sequential markdown processing**: Improved translation logic to handle markdown files and their chunks sequentially, ensuring that every chunk is fully translated before moving to the next. This resolves issues with missing or skipped chunks during the process.
- **Enhanced line break consistency check**: Added a mechanism to detect formatting issues by comparing line breaks between original and translated files. If the difference exceeds a predefined threshold (5 lines), the translation is flagged for review and retry.
- **Improve generative AI disclaimer**: Updated the disclaimer message to better reflect that the translation is done by an AI model, ensuring users understand the limitations and context of the translation.
- **Performance improvements**: Optimized the process for handling both markdown and image translations, and implemented retry logic for failed translations.
@skytin1004 skytin1004 added the enhancement New feature or request label Sep 29, 2024
@skytin1004 skytin1004 self-assigned this Sep 29, 2024
@skytin1004 skytin1004 merged commit 16081f3 into Azure:main Sep 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant