kth8/jokes
Based on jokes from v2.jokeapi.dev. Teach your assistant better jokes. Each instance follows this format: { "messages": [ { "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "what's a good joke?" }, { "role": "assistant", "content": "What do Santa's little helpers learn at school? The elf-abet!" } ], "safe": true, "category": "Christmas", "nsfw": false, "religious": false… See the full description on the dataset page: https://huggingface.co/datasets/kth8/jokes.
08
Based on jokes from v2.jokeapi.dev. Teach your assistant better jokes.
Each instance follows this format:
{
"messages": [
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "what's a good joke?"
},
{
"role": "assistant",
"content": "What do Santa's little helpers learn at school? The elf-abet!"
}
],
"safe": true,
"category": "Christmas",
"nsfw": false,
"religious": false,
"racist": false,
"sexist": false,
"explicit": false
}Use:
import json
import random
from datasets import load_dataset
dataset = load_dataset("kth8/jokes", split="train")
print(dataset)
print(json.dumps(dataset[random.randint(0, dataset.num_rows - 1)], indent=2))