Agenticaa commited on
Commit
0285595
·
verified ·
1 Parent(s): 0c1f60e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +117 -40
README.md CHANGED
@@ -1,42 +1,119 @@
1
  ---
2
- license: apache-2.0
3
- dataset_info:
4
- features:
5
- - name: task_id
6
- dtype: string
7
- - name: suite_type
8
- dtype: string
9
- - name: category
10
- dtype: string
11
- - name: prompt_explicitness
12
- dtype: string
13
- - name: acceptable_ui_archetypes
14
- dtype: string
15
- - name: user_prompt
16
- dtype: string
17
- - name: mock_tool_context
18
- dtype: string
19
- - name: expected_tool_trigger
20
- dtype: bool
21
- - name: outcome_dom_assertions
22
- dtype: string
23
- - name: outcome_interaction_steps
24
- dtype: string
25
- - name: expected_callback_schema
26
- dtype: string
27
- - name: model_grader_rubrics
28
- dtype: string
29
- - name: reference_solution
30
- dtype: string
31
- splits:
32
- - name: train
33
- num_bytes: 26713
34
- num_examples: 20
35
- download_size: 24801
36
- dataset_size: 26713
37
- configs:
38
- - config_name: default
39
- data_files:
40
- - split: train
41
- path: data/train-*
42
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ - question-answering
6
+ language:
7
+ - en
8
+ tags:
9
+ - hermes-agent
10
+ - nous-research
11
+ - generative-ui
12
+ - agent-evals
13
+ - interactive-micro-apps
14
+ - human-in-the-loop
15
+ - active-learning
16
+ pretty_name: Agent Generative UI Evaluation Suite
17
+ size_categories:
18
+ - n<1K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ---
20
+
21
+ # Hermes Agent — Generative UI (Interactive Micro-Apps) Evaluation Suite
22
+
23
+ ## Dataset Summary
24
+
25
+ **`hermes-genui-evals`** is an **Eval-Driven Development (EDD)** benchmark designed to evaluate **Bidirectional Generative UI (Interactive Micro-Apps)** plugins for [**Hermes Agent**](https://github.com/NousResearch/hermes-agent) by **Nous Research**.
26
+
27
+ While Hermes Agent excels at backend execution, persistent memory (`MEMORY.md`), cron scheduling, and multi-channel messaging, complex cognitive workflows—such as **studying a technical topic in depth**, **what-if parameter simulations**, and **Human-in-the-Loop (HITL) batch triage**—suffer when constrained to static walls of Markdown text.
28
+
29
+ This evaluation suite tests an agent's ability to:
30
+ 1. **Recognize when to trigger (or abstain from triggering) an interactive micro-app** across varying levels of prompt explicitness (`explicit_ui`, `semi_guided`, and `implicit_intent`).
31
+ 2. **Ground the generated UI** in real tool outputs (`read_file`, `web_search`, `execute_command`, `memory_read`) without hallucinating data.
32
+ 3. **Generate self-contained, error-free HTML/JS micro-apps** that execute cleanly in a headless browser (Playwright).
33
+ 4. **Maintain a bidirectional state contract** via `window.hermes.sendAction(payload)`, feeding user interactions (e.g., quiz diagnostic weak spots, confirmed file deletions, cron schedules) back into Hermes Agent's execution loop.
34
+
35
+ ---
36
+
37
+ ## Evaluation Methodology (Anthropic Agent Evals Framework)
38
+
39
+ This dataset is structured following the nomenclature and best practices from Anthropic's paper [*"Demystifying evals for AI agents"*](https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents):
40
+
41
+ * **Agent Harness:** Hermes Agent equipped with the Generative UI plugin (`render_micro_app` tool + `SKILL.md`).
42
+ * **Evaluation Harness:** An automated Python + Playwright runner that executes $k$ **Trials** per **Task**, captures the **Transcript** (tool call trace) and the **Outcome** (rendered DOM state + bidirectional callback payload), and runs three tiers of **Graders**:
43
+ 1. **Code-Based Graders (Deterministic):**
44
+ * *Transcript Check:* Verifies `render_micro_app` invocation (`expected_tool_trigger`) to measure both **undertriggering** and **overtriggering**.
45
+ * *Outcome DOM Check:* Loads the generated micro-app in headless Chromium, asserts zero runtime console/page errors (`zero_js_errors`), verifies data grounding (`must_contain_strings`), and checks interactive controls (`required_selectors`).
46
+ * *Outcome Callback Check:* Executes `outcome_interaction_steps` in Playwright and validates the resulting `window.hermes.sendAction(...)` payload against `expected_callback_schema` (JSON Schema).
47
+ 2. **Model-Based Graders (Binary `PASS`/`FAIL` Rubrics):**
48
+ * Instead of noisy 1–5 Likert scales, an LLM judge evaluates the rendered UI and code against strict **binary (`PASS`/`FAIL`) rubrics** (`model_grader_rubrics`) assessing pedagogical scaffolding, active recall enforcement, and autonomous UI selection.
49
+ 3. **Reference Solutions:**
50
+ * Every task includes a verified `reference_solution` that passes 100% of the deterministic and model-based graders to guarantee task solvability and grader calibration.
51
+
52
+ ### Target Metrics: `pass@k` vs `pass^k`
53
+ * **`pass@k`** ($1 - (1 - p)^k$): Measures the agent's capability ceiling (at least 1 successful trial out of $k$).
54
+ * **`pass^k`** ($p^k$): Measures production reliability and consistency ($k$ out of $k$ consecutive trials succeeding without a single JS error or broken callback).
55
+
56
+ ---
57
+
58
+ ## Dataset Taxonomy & Distribution (v1 — 20 Tasks)
59
+
60
+ ### 1. By Suite Type (`suite_type`)
61
+ * **`capability` (10 tasks):** Challenging tasks testing multi-step interactive simulations, literature contradiction matrices, and autonomous pedagogical UI initiative (`implicit_intent`).
62
+ * **`regression` (10 tasks):** Core functional tasks (6 positive `explicit_ui` tasks + 4 `negative_control` tasks) that must maintain a ~100% pass rate across plugin iterations.
63
+
64
+ ### 2. By Functional Category (`category`)
65
+ * **`topic_study` (11 tasks — Core Focus):** Interactive learning environments coupled with Hermes's long-term memory and cron scheduler:
66
+ * *Explorable Explanations & Mathematical Simulators* (e.g., `pass@k` vs `pass^k`, Softmax Temperature, Neural Network Backpropagation).
67
+ * *Active Recall & Gap Diagnostics* (e.g., Flashcards & quizzes with hidden answers that send `weak_concepts` back to `MEMORY.md`).
68
+ * *Concept Graph Explorers* (e.g., Distributed consensus Raft state & Pre-Vote exploration).
69
+ * *Literature Comparison Matrices* (e.g., Cross-examining RAG evaluation papers like RAGAS vs ARES).
70
+ * *Spaced Repetition Planners* (e.g., Turning memory weak spots into automated Telegram review crons).
71
+ * **`human_in_the_loop` (2 tasks):** Safe destructive file cleanup (`~/Downloads`) and batch email triage with editable draft replies.
72
+ * **`what_if_simulation` (1 task):** Cloud GPU (RunPod A100) vs Local Hardware (Mac Studio) break-even calculator.
73
+ * **`ops_monitoring` (1 task):** Visual process manager (`ps aux`) isolating runaway processes while protecting production databases.
74
+ * **`workflow_builder` (1 task):** Visual Cron & delivery channel configurator for automated ArXiv digests.
75
+ * **`negative_control` (4 tasks):** Simple factual questions, CLI lookups, and unambiguous single-step commands where spawning a micro-app is over-engineering (`expected_tool_trigger: false`).
76
+
77
+ ### 3. By Prompt Explicitness (`prompt_explicitness`)
78
+ A critical dimension of this benchmark is evaluating whether the agent only builds UIs when explicitly told which widgets to render, or whether it can diagnose a user's cognitive bottleneck on its own:
79
+ * **`explicit_ui` (7 tasks):** The user explicitly requests an interactive component (tests pure code & callback implementation).
80
+ * **`semi_guided` (6 tasks):** The user expresses an intent to practice, compare, or triage without naming specific UI widgets (tests archetype mapping).
81
+ * **`implicit_intent` (3 positive tasks + 4 negative controls):** The user states a raw problem or learning bottleneck with **zero mention of UI** (e.g., *"I have my midterm tomorrow and I still get confused about Raft split votes..."*). Tests true agentic initiative vs. overtriggering.
82
+
83
+ ---
84
+
85
+ ## Schema & Column Definitions (13 Columns)
86
+
87
+ | Column | Type | Description |
88
+ | :--- | :--- | :--- |
89
+ | **`task_id`** | `string` | Unique identifier for the task (e.g., `study_cap_06`, `hitl_reg_01`, `neg_reg_01`). |
90
+ | **`suite_type`** | `string` | Evaluation suite classification: `"capability"` or `"regression"`. |
91
+ | **`category`** | `string` | Functional domain (`"topic_study"`, `"human_in_the_loop"`, `"what_if_simulation"`, `"ops_monitoring"`, `"workflow_builder"`, `"negative_control"`). |
92
+ | **`prompt_explicitness`** | `string` | Level of UI guidance in the prompt: `"explicit_ui"`, `"semi_guided"`, or `"implicit_intent"`. |
93
+ | **`acceptable_ui_archetypes`** | `string` (JSON list) | List of valid UI patterns for the task (allows flexibility on `implicit_intent` prompts, or `["none"]` for negative controls). |
94
+ | **`user_prompt`** | `string` | The natural language prompt sent to Hermes Agent. |
95
+ | **`mock_tool_context`** | `string` (JSON list) | Simulated outputs from prior Hermes tools (`read_file`, `web_search`, `execute_command`, `memory_read`) that must ground the micro-app. |
96
+ | **`expected_tool_trigger`** | `bool` | **Transcript Grader:** `true` if the agent should invoke `render_micro_app`, `false` for negative controls. |
97
+ | **`outcome_dom_assertions`** | `string` (JSON dict) | **Outcome Grader (Playwright):** Deterministic checks (`zero_js_errors`, `must_contain_strings`, `required_selectors`, `min_interactive_elements`). |
98
+ | **`outcome_interaction_steps`** | `string` (JSON list) | Sequential Playwright actions (`click`, `set_range`) executed to test reactivity and trigger the callback. |
99
+ | **`expected_callback_schema`** | `string` (JSON Schema) | **Bidirectional Outcome Grader:** JSON Schema validating the payload sent via `window.hermes.sendAction(payload)`. |
100
+ | **`model_grader_rubrics`** | `string` (JSON list) | **Model-Based Grader:** Strict binary (`PASS`/`FAIL`) rubrics evaluated by an LLM judge. |
101
+ | **`reference_solution`** | `string` | Verified self-contained HTML/JS micro-app (or plain text response for negative controls) that passes 100% of the task's graders. |
102
+
103
+ ---
104
+
105
+ ## Quick Usage
106
+
107
+ ```python
108
+ import json
109
+ from datasets import load_dataset
110
+
111
+ # Load the dataset from Hugging Face Hub
112
+ dataset = load_dataset("your-username/hermes-genui-evals", split="train")
113
+
114
+ for task in dataset:
115
+ print(f"[{task['task_id']}] ({task['suite_type']} | {task['prompt_explicitness']})")
116
+ print(f"Prompt: {task['user_prompt']}")
117
+ dom_checks = json.loads(task["outcome_dom_assertions"])
118
+ rubrics = json.loads(task["model_grader_rubrics"])
119
+ print(f"Expected Trigger: {task['expected_tool_trigger']} | Rubrics: {[r['id'] for r in rubrics]}\n")