DoctorJia's picture
Release AnswerReuse-Arena benchmark, frozen inputs and construction vectors
6b5c608 verified
|
Raw History Blame Contribute Delete
2.05 kB
# LM Arena Human Preference 140K — QA pairs
This directory contains a cleaned QA-pair version of
`data/lmarena_arena_human_preference_140k`.
## Files
- `train.parquet`: cleaned QA pairs.
- `cleaning_report.json`: transformation rules and all skipped empty-answer
records.
## Selection rules
| `winner` | Emitted side(s) | `quality` |
| --- | --- | --- |
| `model_a` | a | `good` |
| `model_b` | b | `good` |
| `tie` | a | `good` |
| `both_bad` | a and b (two rows) | `bad` |
For multi-turn conversations, `question` is the final non-empty user message
before the last assistant response and `answer` is that final assistant
response. This avoids relabeling earlier turns with a preference that applies
to the current response.
Rows whose selected response has no text cannot form a QA pair and are omitted;
their IDs and reasons are recorded in `cleaning_report.json`.
## Columns
The original identifying, preference, session, category, language, code, token,
and timestamp metadata are preserved. The nested conversation columns are
replaced by flat `question` and `answer` strings. `selected_side` and
`selected_model` identify the emitted answer, which is necessary for the two
rows emitted from `both_bad`. The requested `quality` column contains only
`good` or `bad`.
Recreate the dataset from the repository root with:
```bash
python scripts/clean_lmarena_qa.py
```
## Qwen3 embeddings in local Qdrant
Generate normalized `qwen3-embedding:8b` vectors for every question and
answer and persist them in a local Qdrant store:
```bash
pip install -e '.[vector_store]'
python scripts/embed_lmarena_qdrant.py
```
The default output directory is `qdrant_qwen3_embedding_8b/` beside this
README. Questions and answers are stored in separate collections with the
parquet row number as their shared point ID. The importer writes an atomic
manifest and resumes automatically after interruption. For production-scale
Qdrant, pass `--qdrant-url http://localhost:6333` to use a running local
Qdrant server instead of the embedded client.