Add README
Browse files
README.md
CHANGED
|
@@ -1,15 +1,43 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
-
|
| 12 |
-
|
| 13 |
-
-
|
| 14 |
-
|
| 15 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Web Agent Graph Dataset
|
| 2 |
+
|
| 3 |
+
This dataset contains web navigation tasks in graph format with single-step negatives.
|
| 4 |
+
|
| 5 |
+
## Format
|
| 6 |
+
|
| 7 |
+
Each line in `graph_dataset.jsonl` is a JSON object with:
|
| 8 |
+
|
| 9 |
+
- `graph_data`: Task metadata (domain, root_url, goal)
|
| 10 |
+
- `node_data`: Current state information (url, observation, screenshot path)
|
| 11 |
+
- `step_data`: Action and outcome
|
| 12 |
+
- `action`: The action taken
|
| 13 |
+
- `obs`: Next state observation (axtree_txt, url)
|
| 14 |
+
- `step_number`: Step index in the trajectory
|
| 15 |
+
- `is_positive`: Boolean indicating if this is a positive (gold) or negative action
|
| 16 |
+
- `negative_type`: (Only for negatives) Type of negative: "easy_negative", "hard_negative", or "detour_negative"
|
| 17 |
+
- `negative_reason`: (Only for negatives) Explanation for why this action is negative
|
| 18 |
+
|
| 19 |
+
## Usage
|
| 20 |
+
|
| 21 |
+
```python
|
| 22 |
+
import json
|
| 23 |
+
|
| 24 |
+
# Load dataset
|
| 25 |
+
with open('graph_dataset.jsonl', 'r') as f:
|
| 26 |
+
for line in f:
|
| 27 |
+
entry = json.loads(line)
|
| 28 |
+
# Process entry
|
| 29 |
+
print(entry['graph_data']['goal'])
|
| 30 |
+
print(entry['step_data']['action'])
|
| 31 |
+
print(entry['step_data']['is_positive'])
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Statistics
|
| 35 |
+
|
| 36 |
+
See `conversion_stats.json` for dataset statistics including:
|
| 37 |
+
- Total tasks and entries
|
| 38 |
+
- Positive vs negative distribution
|
| 39 |
+
- Domain breakdown
|
| 40 |
+
|
| 41 |
+
## Citation
|
| 42 |
+
|
| 43 |
+
If you use this dataset, please cite the original work.
|