---
pretty_name: Bathys-KTO
language:
- en
- zh
task_categories:
- question-answering
- text-generation
size_categories:
- 1K
Bathys-KTO
Preference data for training deep search agents with Kahneman–Tversky Optimization
348 questions · 3,016 labeled search trajectories
Bathys-KTO records how different search attempts answer the same question. Each row contains a complete conversation and a boolean preference label for that attempt. The training split has **1,482 desirable** and **1,534 undesirable** trajectories. Both labels are present for 345 of the 348 questions.
## Load the dataset
The `train` split is stored in `train.jsonl`. This example streams a record and reads its trajectory-level label.
```python
from datasets import load_dataset
train = load_dataset("Bathys/Bathys-KTO", split="train", streaming=True)
record = next(iter(train))
messages = record["messages"]
print(record["label"]) # True for the first trajectory
print(messages[1]["content"]) # The research question
```
## Record format
| Field | Type | Meaning |
| --- | --- | --- |
| `messages` | List of `{role, content}` objects | The full ordered conversation. Both fields in each message are strings. |
| `label` | Boolean | `true` for a desirable trajectory (source score 1), `false` for an undesirable trajectory (source score 0). |
The system turn contains the tool definitions. The first user turn contains the question. Assistant turns include reasoning, tool requests, and the final answer. Tool output appears in later user turns inside `` blocks. The label applies to the whole trajectory.
The companion supervised fine-tuning dataset provides one demonstration per question. [Bathys-SFT](https://huggingface.co/datasets/Bathys/Bathys-SFT)