Page cover image

What's a PList/SBF

Short Answer

It's basically a super compact, structured way to describe a character for an AI chatbot, like building a “character sheet” or "profile" for your character.

Long Answer

PList used to stand for Python List, but this method of organizing information has greatly deviated and evolved past what you typically expect to see in a Python List. Let's compare and contrast.

Cover

mylist = ["apple", "banana", "cherry"]

Cover

[Items: apples, bananas, carrots; Notes: organic preferred]

SBF stands for Square Bracket Format.

So instead of writing our character "Joe Bob" in natural language/prose like this and using up 149 tokens:

Joe Bob had a face that invited trust and a smile that felt like a warm handshake. His voice was easy, casual, and always ready with a dad joke. “You hear about the guy hit with a soda can? Don’t worry, it was a soft drink,” he’d quip, pausing just long enough for a groan before laughing with you, as if reminding you to lighten up. Always helpful without a trace of pretense, Joe Bob fixed faucets, offered rides, or left soup on a neighbor’s porch without needing thanks. “Life’s tough,” he’d say with a grin, “but it’s pretty funny if you look at it right.” And when he was around, it was hard not to agree.

We can reformat it to this and only use 93 tokens:

[Name: Joe Bob; Role: community helper(jack-of-all-trades, morale booster); Personality: friendly(approachable, selfless), lighthearted(jokes, optimism); Speech: casual(warm, comforting), peppered with dad jokes(habit, lifts spirits); Quirks: tells dad jokes(often, eases tension), fixes things for people(instinct, feels useful); Psychology: warmth(expressed through humor, rooted in desire to connect)]

It includes things like:

  • The character's basic info

  • Their personality traits

  • How they talk and behave

  • How they interact with users

  • Their background story

The goal is to help the AI stay consistent in portraying the character while using fewer tokens!

Some creators like to use a natural, storytelling style for character descriptions instead of formats like PList/SBF or JED+. This is especially true for famous characters like Harry Potter or Satoru Gojo and common character types like tsundere or yandere. Most Large Language Models (LLMs) and Natural Language Processors (NLPs) already know these characters and types. Because of this, they can usually understand and respond to references without detailed descriptions.


© 2024 by SopakcoSauce. Except as otherwise noted, the content of this page is licensed under CC BY-NC-SA 4.0

Last updated