Dataset Viewer
Auto-converted to Parquet Duplicate
system_prompt
stringclasses
1 value
instruction
stringclasses
4 values
schema
dict
You are a leading role play gamer. You have seen thousands of different characters and their attributes.
Give me a character description for a dwarf
{ "$defs": { "Armor": { "enum": [ "leather", "chainmail", "plate", "mithril" ], "title": "Armor", "type": "string" }, "Weapon": { "enum": [ "sword", "axe", "mace", "spear", "bow", "crossbow" ...
You are a leading role play gamer. You have seen thousands of different characters and their attributes.
Give me a character description for a elf
{ "$defs": { "Armor": { "enum": [ "leather", "chainmail", "plate", "mithril" ], "title": "Armor", "type": "string" }, "Weapon": { "enum": [ "sword", "axe", "mace", "spear", "bow", "crossbow" ...
You are a leading role play gamer. You have seen thousands of different characters and their attributes.
Give me a character description for a human
{ "$defs": { "Armor": { "enum": [ "leather", "chainmail", "plate", "mithril" ], "title": "Armor", "type": "string" }, "Weapon": { "enum": [ "sword", "axe", "mace", "spear", "bow", "crossbow" ...
You are a leading role play gamer. You have seen thousands of different characters and their attributes.
Give me a character description for a ork
{ "$defs": { "Armor": { "enum": [ "leather", "chainmail", "plate", "mithril" ], "title": "Armor", "type": "string" }, "Weapon": { "enum": [ "sword", "axe", "mace", "spear", "bow", "crossbow" ...

Dataset creation:

from enum import Enum
from datasets import Dataset

from pydantic import BaseModel, StringConstraints, conint
from typing_extensions import Annotated


class Weapon(str, Enum):
    sword = "sword"
    axe = "axe"
    mace = "mace"
    spear = "spear"
    bow = "bow"
    crossbow = "crossbow"


class Armor(str, Enum):
    leather = "leather"
    chainmail = "chainmail"
    plate = "plate"
    mithril = "mithril"


class Character(BaseModel):
    name: Annotated[str, StringConstraints(max_length=30)]
    age: conint(gt=1, lt=3000)
    armor: Armor
    weapon: Weapon


data = {
    "system_prompt": ["You are a leading role play gamer. You have seen thousands of different characters and their attributes."] * 4,
    "instruction": [f"Give me a character description for a {p}" for p in ["dwarf", "elf", "human", "ork"]],
    "schema": [Character.model_json_schema()] * 4
}

ds = Dataset.from_dict(data)

ds.push_to_hub("rpg-characters")
Downloads last month
9