Eval fails for non-English languages
Describe the bug When evaluating text in other languages (e.g., Thai, etc.), the eval logic incorrectly returns mismatches (Match score: 0)— even when the evaluated expression should be valid or identical in meaning.
To Reproduce
root_agent = Agent(
name="sample_agent",
model="gemini-2.5-flash",
description="Greeting agent",
instruction="""
You are an assistant that will reply to the user with only the word 'สวัสดี'
""",
)
Expected behavior Eval should correctly handle input in other languages.
Screenshots
Desktop (please complete the following information):
- OS: macOS
- Python : 3.12.8
- ADK version: 1.15.1
Model Information:
- Are you using LiteLLM: No
- Which model is being used : gemini-2.5-flash
Additional context Add any other context about the problem here.
Convert this to a feature request for more language support.
I've submitted a PR to fix this issue: #3503
The fix enhances the FinalResponseMatchV2Evaluator prompt to explicitly instruct the LLM judge to handle non-English languages including Thai, Chinese, Japanese, Korean, Arabic, and other non-Latin scripts.
Changes:
- Added clear i18n guidance to the evaluation prompt
- Instructed the evaluator to treat identical strings in ANY language as valid
- Added recognition for language-specific punctuation (。vs ., ؟ vs ?, etc.)
This also addresses #3162 (Chinese string evaluation issue) with the same fix.
Testing can be done by reproducing the original Thai "สวัสดี" test case - it should now return score=1.0 instead of score=0.0.
I wrote the same issue https://github.com/google/adk-python/issues/4122 and maru0804-san proposed https://github.com/google/adk-python/pull/4143
Put together a fix in https://github.com/google/adk-python/pull/6401.
Put together a fix in https://github.com/google/adk-python/pull/6441.
Opened https://github.com/google/adk-python/pull/6443 with a fix for this.
Put together a fix in https://github.com/google/adk-python/pull/6444.
Put together a fix in https://github.com/google/adk-python/pull/6446.
PR up at https://github.com/google/adk-python/pull/6456.
Took a look, https://github.com/google/adk-python/pull/6463 should address it.
Put together a fix in https://github.com/google/adk-python/pull/6476.
Put together a fix in https://github.com/google/adk-python/pull/6483.
@guptaishaan It looks like the maintainers(@i-yliu) have decided to consolidate the fix in #6292, and several alternative PRs have already been closed in its favor. To avoid further duplication, it would be best to focus follow-up work and review on #6292.
Took a look, https://github.com/google/adk-python/pull/6494 should address it.