Skip to content

bug: eval metrics module silently imports all evaluators regardless of dependencies, causing import errors for missing optional deps to surface as zero scores #6262

Closed as not planned

Description

@tcconnally

Description

PR #6136 fixed ASCII-only tokenization in ROUGE-1 evaluation for non-English languages. However, the eval module structure has a broader issue: all evaluators are imported eagerly regardless of whether their optional dependencies are installed. Missing dependencies cause import-time failures that are caught and silently converted to zero scores.

Where

google/adk-python eval/ directory — metric registration and import system.

Impact

  • Users get zero evaluation scores without realizing an optional dependency is missing
  • No warning that rouge-score, bert-score, or other eval deps weren't installed
  • Makes evaluation results silently unreliable

Expected Behavior

  • Missing optional dependencies should raise clear errors at eval time, not silently return zero
  • Or: evaluators should be lazily imported with user-friendly error messages

Related

Activity

  1. added
    eval[Component] This issue is related to evaluation
    on Jul 1, 2026
  2. added theissue type on Jul 1, 2026
  3. llalitkumarrr commented on Jul 3, 2026

    @llalitkumarrr
    Collaborator

    Hello @tcconnally ,

    Thank you for your contribution. Your PR is currently under review and we will reach out if any additional information is required. In the meantime, we appreciate your patience.

  4. added
    needs review[Status] The PR/issue is awaiting review from the maintainer
    on Jul 3, 2026
  5. llalitkumarrr commented on Jul 27, 2026

    @llalitkumarrr
    Collaborator

    Hello @tcconnally ,

    We noticed that you closed your pull request. Could you please let us know if you plan to update your contribution to resolve this issue?

    Also, if possible, could you share any reproduction details (such as sample code or test files) so we can analyze the issue on our end as well?

  6. added
    request clarification[Status] The maintainer need clarification or more information from the author
    and removed
    needs review[Status] The PR/issue is awaiting review from the maintainer
    on Jul 27, 2026
  7. tcconnally commented on Aug 3, 2026

    @tcconnally
    Author

    Thanks for the follow-up. To answer directly: I am not planning to update/reopen my eval-related contributions at this time (the earlier ROUGE-1 PRs were closed and the scope here is broader than those). I will close this report as withdrawn on my side so it does not linger as an open item — the underlying observation (eager evaluator imports masking missing optional deps as zero scores) is still valid if the maintainers want to pick it up independently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

eval[Component] This issue is related to evaluationrequest clarification[Status] The maintainer need clarification or more information from the author

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions