Skip to content

Conversation

@escattone
Copy link
Contributor

@escattone escattone commented Sep 4, 2025

mozilla/sumo#2513
mozilla/sumo#2514
mozilla/sumo#2516

Notes

Locally, I made 20 translation runs using the old prompt, and 20 runs using the new prompt, using the same content as this KB article revision.

  • Using the old prompt, I discovered that the LLM sometimes ignored the rules forbidding the translation of menu/button/pref tags and Wiki article link titles (e.g., [[Some Article Title]]). In fact, in my series of runs, the rule forbidding the translation of menu/button/pref tags and their content was commonly ignored (~30-40% of the time)

  • After carefully reading the LLM's explanations from all of the runs, it seems that one of the sources of its "mistakes" in following the instructions -- maybe even the primary source -- is that it sometimes thinks its role as an expert translator supersedes the explicit instructions that we've provided in the prompt.

  • Using the prompt changes/additions included in this PR -- the most important being the addition that informs the LLM that the rules/instructions within the prompt take precedence over its role as an expert translator -- all 20 runs completed without any mistakes in following the rules/instructions.

@escattone escattone changed the title new L10N prompt that provides significantly better outcomes modified L10N prompt that provides significantly better outcomes Sep 4, 2025
@escattone escattone requested a review from akatsoulas September 4, 2025 23:08
@akatsoulas akatsoulas merged commit fbac770 into mozilla:main Sep 5, 2025
2 checks passed
@escattone escattone deleted the l10n-prompt-improvements branch September 5, 2025 14:20
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