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" ], "title": "Weapon", "type": "string" } }, "properties": { "age": { "exclusiveMaximum": 3000, "exclusiveMinimum": 1, "title": "Age", "type": "integer" }, "armor": { "$ref": "#/$defs/Armor" }, "name": { "maxLength": 30, "title": "Name", "type": "string" }, "weapon": { "$ref": "#/$defs/Weapon" } }, "required": [ "name", "age", "armor", "weapon" ], "title": "Character", "type": "object" }
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" ], "title": "Weapon", "type": "string" } }, "properties": { "age": { "exclusiveMaximum": 3000, "exclusiveMinimum": 1, "title": "Age", "type": "integer" }, "armor": { "$ref": "#/$defs/Armor" }, "name": { "maxLength": 30, "title": "Name", "type": "string" }, "weapon": { "$ref": "#/$defs/Weapon" } }, "required": [ "name", "age", "armor", "weapon" ], "title": "Character", "type": "object" }
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" ], "title": "Weapon", "type": "string" } }, "properties": { "age": { "exclusiveMaximum": 3000, "exclusiveMinimum": 1, "title": "Age", "type": "integer" }, "armor": { "$ref": "#/$defs/Armor" }, "name": { "maxLength": 30, "title": "Name", "type": "string" }, "weapon": { "$ref": "#/$defs/Weapon" } }, "required": [ "name", "age", "armor", "weapon" ], "title": "Character", "type": "object" }
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" ], "title": "Weapon", "type": "string" } }, "properties": { "age": { "exclusiveMaximum": 3000, "exclusiveMinimum": 1, "title": "Age", "type": "integer" }, "armor": { "$ref": "#/$defs/Armor" }, "name": { "maxLength": 30, "title": "Name", "type": "string" }, "weapon": { "$ref": "#/$defs/Weapon" } }, "required": [ "name", "age", "armor", "weapon" ], "title": "Character", "type": "object" }

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
10
Edit dataset card