Add README
Browse files
README.md
CHANGED
|
@@ -1,20 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Web Agent Graph Dataset
|
| 2 |
|
| 3 |
-
This dataset contains web navigation tasks in graph format with single-step negatives.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
-
##
|
|
|
|
| 6 |
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
- `
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
- `negative_reason`: (Only for negatives) Explanation for why this action is negative
|
| 18 |
|
| 19 |
## Usage
|
| 20 |
|
|
@@ -25,19 +51,15 @@ import json
|
|
| 25 |
with open('graph_dataset.jsonl', 'r') as f:
|
| 26 |
for line in f:
|
| 27 |
entry = json.loads(line)
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
print(entry['step_data']['is_positive'])
|
| 32 |
```
|
| 33 |
|
| 34 |
## Statistics
|
| 35 |
|
| 36 |
-
See `conversion_stats.json` for
|
| 37 |
-
- Total tasks and entries
|
| 38 |
-
- Positive vs negative distribution
|
| 39 |
-
- Domain breakdown
|
| 40 |
|
| 41 |
-
##
|
| 42 |
|
| 43 |
-
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- reinforcement-learning
|
| 5 |
+
- question-answering
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- web-navigation
|
| 10 |
+
- preference-learning
|
| 11 |
+
- reward-modeling
|
| 12 |
+
size_categories:
|
| 13 |
+
- 10K<n<100K
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
# Web Agent Graph Dataset
|
| 17 |
|
| 18 |
+
This dataset contains web navigation tasks in graph format with single-step negatives for training reward models.
|
| 19 |
+
|
| 20 |
+
## Dataset Description
|
| 21 |
+
|
| 22 |
+
- **Format**: JSON Lines (JSONL)
|
| 23 |
+
- **Size**: ~18K entries from 2.8K tasks
|
| 24 |
+
- **Domains**: GitLab, OpenStreetMap, Reddit, Shopping, Shopping Admin
|
| 25 |
+
|
| 26 |
+
## Data Format
|
| 27 |
+
|
| 28 |
+
Each line in `graph_dataset.jsonl` is a JSON object with three main sections:
|
| 29 |
|
| 30 |
+
### graph_data
|
| 31 |
+
Task metadata including domain, root_url, and goal description.
|
| 32 |
|
| 33 |
+
### node_data
|
| 34 |
+
Current state information with URL, accessibility tree observation, and screenshot path.
|
| 35 |
|
| 36 |
+
### step_data
|
| 37 |
+
Action and outcome with:
|
| 38 |
+
- `action`: The action taken
|
| 39 |
+
- `obs`: Next state observation
|
| 40 |
+
- `step_number`: Step index
|
| 41 |
+
- `is_positive`: True for gold actions, False for negatives
|
| 42 |
+
- `negative_type`: Classification (easy_negative, hard_negative, detour_negative)
|
| 43 |
+
- `negative_reason`: Explanation for negative actions
|
|
|
|
| 44 |
|
| 45 |
## Usage
|
| 46 |
|
|
|
|
| 51 |
with open('graph_dataset.jsonl', 'r') as f:
|
| 52 |
for line in f:
|
| 53 |
entry = json.loads(line)
|
| 54 |
+
goal = entry['graph_data']['goal']
|
| 55 |
+
action = entry['step_data']['action']
|
| 56 |
+
is_positive = entry['step_data']['is_positive']
|
|
|
|
| 57 |
```
|
| 58 |
|
| 59 |
## Statistics
|
| 60 |
|
| 61 |
+
See `conversion_stats.json` for detailed statistics.
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
+
## License
|
| 64 |
|
| 65 |
+
MIT License
|