mirror of
https://github.com/harivansh-afk/evaluclaude-harness.git
synced 2026-04-17 11:04:57 +00:00
improvements and promptfoo
This commit is contained in:
parent
6698c12e5b
commit
ff5300f4e0
13 changed files with 1082 additions and 117 deletions
32
rubrics/documentation.yaml
Normal file
32
rubrics/documentation.yaml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: documentation
|
||||
description: Evaluates quality of code documentation and docstrings
|
||||
passingThreshold: 0.65
|
||||
|
||||
criteria:
|
||||
- name: completeness
|
||||
weight: 0.35
|
||||
description: Documentation covers all parameters, return values, and exceptions
|
||||
examples:
|
||||
good: "Fully documents args, returns, raises, and includes usage example"
|
||||
bad: "Missing parameter descriptions or return type"
|
||||
|
||||
- name: accuracy
|
||||
weight: 0.35
|
||||
description: Documentation accurately describes the function's behavior
|
||||
examples:
|
||||
good: "Description matches implementation, types are correct"
|
||||
bad: "Outdated docs that don't match current behavior"
|
||||
|
||||
- name: examples
|
||||
weight: 0.2
|
||||
description: Includes helpful usage examples
|
||||
examples:
|
||||
good: "Shows common use cases with expected outputs"
|
||||
bad: "No examples or only trivial ones"
|
||||
|
||||
- name: style
|
||||
weight: 0.1
|
||||
description: Follows project/language documentation conventions
|
||||
examples:
|
||||
good: "Uses standard docstring format (Google, NumPy, or reStructuredText)"
|
||||
bad: "Inconsistent or non-standard format"
|
||||
Loading…
Add table
Add a link
Reference in a new issue