Skip to content

[docs] Add Google-style docstrings for dspy/evaluate/metrics.py #8953

@eramis73

Description

@eramis73

This issue tracks adding Google-style docstrings to public APIs in dspy/evaluate/metrics.py.

Scope:

  • Add/complete function docstrings for public metrics (e.g., answer_exact_match, answer_passage_match).
  • Follow the Google Python Style Guide.
  • Include a short usage example where helpful.
  • Ensure correctness (no speculative behavior).

Context: refs #8926 (docstrings help-wanted)
I’m claiming this file and will open a PR that resolves this issue.

Reviewer: @chenmoneygithub

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions