This is the adapted version of helpful test set of Anthropic HH dataset using the format of RLHFlow.
Below is the code to recreate this dataset.
import json
from datasets import Dataset
def convert_to_json(text):
# Split the text by lines and remove empty ones
lines = [line.strip() for line in text.strip().split('\n') if line.strip()]
formatted_data = []
current_role = None
current_content = []
for line in… See the full description on the dataset page: https://huggingface.co/datasets/transZ/anthropic_helpful_test.