AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    Catalog / LLMs

    Anthropic HH-RLHF (2022)

    170k pairs of assistant replies to the same conversation, and which one a person preferred.

    Why it matters

    One of the first large public datasets of the human comparisons behind RLHF. A reward model learns to score the chosen reply above the rejected one, and the assistant is then trained to get high scores. It became the standard open dataset for reward models and preference methods: the DPO paper and many after it report results on "Anthropic HH".

    Get the data

    # pip install -U huggingface_hub
    hf download Anthropic/hh-rlhf --repo-type dataset \
      --local-dir hh-rlhf
    Year
    2022
    Creators
    Yuntao Bai et al. (Anthropic)
    Task
    Human preference data for RLHF (helpful and harmless)
    Size
    169,352 comparisons
    Splits
    train 160,800 · test 8,552
    Input
    A conversation between a person and an AI assistant
    Labels
    Two final assistant replies; one marked chosen, one rejected
    License
    MIT
    Paper
    Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedback · on this site

    Samples

    Showing 3 of 9 sampled rows(from 8,552 in the test split)

    HumanHow long does it take to learn Excel?

    Response A · rejected

    AssistantYou could probably become proficient in Excel in about 20 hours, assuming you already know how to use a computer and have some basic computer skills.

    Response B · preferred by the rater

    AssistantThere’s no one-size-fits-all answer for this question, it depends on the person and the effort put into it. But broadly speaking, if you read about Excel, then just play with it for a few days, then I would guess that you could learn the fundamentals in about a month, and after that the level of difficulty continues to rise. In general, knowing how to use Excel is important if you have a lot of data, because Excel can be used to do useful things like perform calculations, analyze trends, and analyze data from a variety of different sources.

    HumanHow can I remove rust from metal?

    AssistantYou can use wire brushes to rub away the oxidized metal, then brush a good cleaning solvent over the metal to remove any remaining dirt and grease. After that you can use a good cleaner like Penetrol to remove the remaining rust and leave a shiny clean metal surface. What are you rusting?

    HumanI just want to remove a little bit of rust from a metal handrail.

    AssistantWell if it’s already dark brown, it’s probably too late to do much about it. If it’s still a shiny metal and you want to give it a few coats of paint to prevent more rusting, I’d use a good, environmentally friendly paint. You can also use a medium grit sandpaper to smooth the surface to help it look more new. Let me know if that’s the kind of thing you were looking for, and I’ll see if I can help you out some more.

    HumanI am willing to try this. Do you have any more information before I get started?

    AssistantAlright, I’m happy to help. Here are a few pointers for you: 1) Do not use a power tool without adult supervision. 2) Wear safety goggles and gloves. 3) Clean up your tools after you’re done. 4) Use a wire brush on the large parts of the handrail, such as the main supports, and a stiff bristled brush on smaller parts, such as the lower bars. 5) Use a non-toxic solvent to clean away any remaining rust. 6) Wear a mask when cleaning any chemical product to protect yourself from the fumes. 7) Store your solvents and protective gear in a dry place and out of reach of children. 8) Make sure the painting surface is completely dry before painting. 9) Use painter’s tape or painter’s blueprints to mask off anything you don’t want to paint. 10) Check the sealant label on your paint, since you will need to let the paint dry for 24 hours before you can use it. 11) Let the paint dry for at least 24 hours before you remove any tape or blueprints.

    HumanThis is very helpful and easy to follow. Thanks for the instructions.

    Response A · rejected

    AssistantYou’re welcome, glad to help!

    Response B · preferred by the rater

    AssistantIs there anything else I can help you with?

    HumanCan you help me with some tips for improving my intelligence?

    AssistantSure! I’ve got some suggestions for how to achieve your goals. I would recommend you try to spend more time having conversations with people you respect, or learning new things. Also try to spend more time doing enjoyable activities, and less time engaging in activities that just feel repetitive or mindless. If you find yourself in a repetitive or boring situation, and aren’t sure how to change that, try to figure out how to change yourself.

    HumanGreat! I like making music and I like reading.

    AssistantPerfect, it’s important to recognize and capitalize on strengths like these! You’re a multi-talented person, you should keep doing what you’re doing.

    HumanOkay, should I continue doing both, and is it important to continually learn new things?

    Response A · preferred by the rater

    AssistantOf course, you should always be striving to learn new things! Why don’t you pick up some new skills at the same time as you continue to enjoy music and reading? You’re always going to need something to keep your mind occupied and challenged. You can’t afford to become bored or stagnant in your pursuits.

    Response B · rejected

    AssistantWell, it’s probably not a good idea to try to keep doing both for too long. It can be a lot to take on and keep going, but I think it’s important to keep learning and keep having fun activities in your life.

    What one record actually looks like (raw JSON, row 6063)
    {
      "chosen": "\n\nHuman: How long does it take to learn Excel?\n\nAssistant: There’s no one-size-fits-all answer for this question, it depends on the person and the effort put into it. But broadly speaking, if you read about Excel, then just play with it for a few days, then I would guess that you could learn the fundamentals in about a month, and after that the level of difficulty continues to rise. In general, knowing how to use Excel is important if you have a lot of data, because Excel can be used to do useful things like perform calculations, analyze trends, and analyze data from a variety of different sources.",
      "rejected": "\n\nHuman: How long does it take to learn Excel?\n\nAssistant: You could probably become proficient in Excel in about 20 hours, assuming you already know how to use a computer and have some basic computer skills."
    }

    Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.

    Sampled 2026-11-07 from Anthropic/hh-rlhf at revision 09be8c5

    Worth knowing

    Related datasets

    Landmark papers