Skip to content

Eval fails for non-English languages #3111

Closed
Closed

Description

@lifnaja

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

Image

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.

Activity

  1. added theissue type on Oct 8, 2025
  2. self-assigned this
    on Oct 29, 2025
  3. hangfei commented on Nov 4, 2025

    @hangfei
    Collaborator

    Convert this to a feature request for more language support.

  4. reopened this on Nov 4, 2025
  5. changed the issue type fromtoon Nov 4, 2025
  6. added
    help wanted[Community] Extra attention is needed
    good first issue[Community] This issue is good for newcomers to participate
    on Nov 6, 2025
  7. G26karthik commented on Nov 12, 2025

    @G26karthik

    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.

  8. added
    needs review[Status] The PR/issue is awaiting review from the maintainer
    on Dec 5, 2025
  9. added a commit that references this issue on Dec 16, 2025
    fcf7dc4
  10. 6 remaining items

  11. Yashas1600 commented on Jul 22, 2026

    @Yashas1600

    Put together a fix in #6441.

  12. guptaishaan commented on Jul 22, 2026

    @guptaishaan
    Contributor

    Opened #6443 with a fix for this.

  13. guptaishaan commented on Jul 22, 2026

    @guptaishaan
    Contributor

    Put together a fix in #6444.

  14. guptaishaan commented on Jul 22, 2026

    @guptaishaan
    Contributor

    Put together a fix in #6446.

  15. guptaishaan commented on Jul 23, 2026

    @guptaishaan
    Contributor

    PR up at #6456.

  16. added a commit that references this issue on Jul 23, 2026
    7f0bb12
  17. guptaishaan commented on Jul 24, 2026

    @guptaishaan
    Contributor

    Took a look, #6463 should address it.

  18. self-assigned this
    on Jul 24, 2026
  19. guptaishaan commented on Jul 25, 2026

    @guptaishaan
    Contributor

    Put together a fix in #6476.

  20. guptaishaan commented on Jul 26, 2026

    @guptaishaan
    Contributor

    Put together a fix in #6483.

  21. ftnext commented on Jul 26, 2026

    @ftnext
    Contributor

    @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.

  22. guptaishaan commented on Jul 27, 2026

    @guptaishaan
    Contributor

    Took a look, #6494 should address it.

  23. added a commit that references this issue on Jul 27, 2026
    8200fae
  24. added a commit that references this issue on Aug 11, 2026
    fa86046
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

eval[Component] This issue is related to evaluationgood first issue[Community] This issue is good for newcomers to participatehelp wanted[Community] Extra attention is neededneeds review[Status] The PR/issue is awaiting review from the maintainer

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions