opendcai/dataflow-webui/unified-bench-dataset-evaluator
Claude Code and agent skill by opendcai/dataflow-webui
- community
- ext:[{"type":"template","description":"Custom templates for code generation"}]
Checking that the SKILL.md file is still in the repository.
Reference documentation for the UnifiedBenchDatasetEvaluator operator. Use when: evaluating model answers on benchmark datasets.
Install
npx vskill@latest install opendcai/dataflow-webui/unified-bench-dataset-evaluatorSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
UnifiedBenchDatasetEvaluator Operator Reference
UnifiedBenchDatasetEvaluator supports 6 evaluation types (eval_type), scores generated answers, and writes 4 output columns.
1. Import
2. Constructor
IMPORTANT: Always pass prompt_template=None explicitly. The default value is AnswerJudgePrompt (the class itself), which triggers a TypeError.
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
eval_type | No | "key2_qa" | Evaluation type | |
llm_serving | Conditional | None | Required when use_semantic_judge=True | |
prompt_template | No | AnswerJudgePrompt | Pass None to use built-in fallback | |
eval_result_path | No | Auto-generated | Statistics JSON file path | |
metric_type | No | None | Evaluation metric, auto-selected if not provided | |
use_semantic_judge | No | False | Use LLM for semantic judgment | |
system_prompt | No | "You are a helpful assistant..." | System prompt for LLM (used when use_semantic_judge=True) |
eval_type and Required input_xxx_key
| eval_type | Required input_xxx_key | |
|---|---|---|
key1_text_score | input_text_key | |
key2_qa | input_question_key, input_target_key | |
key2_q_ma | input_question_key, input_targets_key | |
key3_q_choices_a | input_question_key, input_choices_key, input_label_key | |
key3_q_choices_as | input_question_key, input_choices_key, input_labels_key | |
key3_q_a_rejected | input_question_key, input_better_key, input_rejected_key |
3. run() Signature
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
storage | Yes | None | Storage step object | |
input_pred_key | No | "generated_ans" | Model generated answer column | |
input_question_key | Conditional | None | Question column | |
input_target_key | Conditional | None | Single target answer column | |
input_targets_key | Conditional | None | Multiple target answers column | |
input_choices_key | Conditional | None | Choices column | |
input_label_key | Conditional | None | Single label column | |
input_labels_key | Conditional | None | Multiple labels column | |
input_better_key | Conditional | None | Preferred answer column | |
input_rejected_key | Conditional | None | Rejected answer column | |
input_context_key | No | None | Optional context column for additional information |
4. Output Columns (4 columns)
eval_valid: Boolean column indicating if evaluation is valideval_error: Error message columneval_pred: Parsed prediction columneval_score: Numeric score column
5. Usage Example
6. Important Notes
eval_typemust matchBenchAnswerGenerator'seval_type- Statistics saved to
eval_result_pathJSON file use_semantic_judge=Truerequiresllm_serving
5. Runtime Logic
- Read DataFrame from storage.
- Validate required
input_xxx_keycolumns exist based oneval_type. - Create 4 output columns:
eval_valid,eval_error,eval_pred,eval_score. - For each row:
- Extract prediction from
input_pred_key - Extract ground truth based on
eval_type - If
use_semantic_judge=True: call LLM to judge correctness - If
use_semantic_judge=False: use rule-based comparison - Parse and score the result
- Write results to 4 output columns.
- Save statistics to
eval_result_pathJSON file. - Return list of column names.
6. prompt_template Usage
Important Notes
- Default value is
AnswerJudgePrompt(class, not instance) → causesTypeError - Always pass `prompt_template=None` to use built-in fallback
- Only used when
use_semantic_judge=True
Recommended Usage
Custom Template Usage
Fields Passed to build_prompt(...)
When using custom AnswerJudgePrompt instance, the operator passes:
answer: The predicted answerreference_answer: The ground truth answer
LLM response must contain:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/canonical/core_text/eval/unified-bench-dataset-evaluator/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
templateCustom templates for code generation
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/opendcai/dataflow-webui/unified-bench-dataset-evaluator)