Defined bias catalog (#166)

This commit is contained in:
Thorsten Sommer 2024-10-20 12:35:03 +02:00 committed by GitHub
parent 0d6ccbd237
commit 46a7e98141
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5832 additions and 0 deletions

View File

@ -0,0 +1,29 @@
namespace AIStudio.Settings.DataModel;
public sealed class Bias
{
/// <summary>
/// The unique identifier of the bias.
/// </summary>
public Guid Id { get; init; } = Guid.Empty;
/// <summary>
/// In which category the bias is located.
/// </summary>
public BiasCategory Category { get; set; } = BiasCategory.NONE;
/// <summary>
/// The bias description.
/// </summary>
public string Description { get; init; } = string.Empty;
/// <summary>
/// Related bias.
/// </summary>
public IReadOnlyList<Guid> Related { get; init; } = [];
/// <summary>
/// Related links.
/// </summary>
public IReadOnlyList<string> Links { get; init; } = [];
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
namespace AIStudio.Settings.DataModel;
public enum BiasCategory
{
NONE,
WHAT_SHOULD_WE_REMEMBER,
TOO_MUCH_INFORMATION,
NOT_ENOUGH_MEANING,
NEED_TO_ACT_FAST,
}

View File

@ -0,0 +1,55 @@
namespace AIStudio.Settings.DataModel;
public static class BiasCategoryExtensions
{
public static string ToName(this BiasCategory biasCategory) => biasCategory switch
{
BiasCategory.WHAT_SHOULD_WE_REMEMBER => "What should we remember?",
BiasCategory.TOO_MUCH_INFORMATION => "Too much information",
BiasCategory.NOT_ENOUGH_MEANING => "Not enough meaning",
BiasCategory.NEED_TO_ACT_FAST => "Need to act fast",
_ => "Unknown category",
};
public static string GetThoughts(this BiasCategory biasCategory) => biasCategory switch
{
BiasCategory.WHAT_SHOULD_WE_REMEMBER =>
"""
- We store memories differently based on how they were experienced
- We reduce events and lists to their key elements
- We discard specifics to form generalities
- We edit and reinforce some memories after the fact
""",
BiasCategory.TOO_MUCH_INFORMATION =>
"""
- We notice things already primed in memory or repeated often
- Bizarre, funny, visually-striking, or anthropomorphic things stick out more than non-bizarre/unfunny things
- We notice when something has changed
- We are drawn to details that confirm our own existing beliefs
- We notice flaws in others more easily than we notice flaws in ourselves
""",
BiasCategory.NOT_ENOUGH_MEANING =>
"""
- We tend to find stories and patterns even when looking at sparse data
- We fill in characteristics from stereotypes, generalities, and prior histories
- We imagine things and people were familiar with or fond of as better
- We simplify probabilities and numbers to make them easier to think about
- We project our current mindset and assumptions onto the past and future
- We think we know what other people are thinking
""",
BiasCategory.NEED_TO_ACT_FAST =>
"""
- We favor simple-looking options and complete information over complex, ambiguous options
- To avoid mistakes, we aim to preserve autonomy and group status, and avoid irreversible decisions
- To get things done, we tend to complete things weve invested time & energy in
- To stay focused, we favor the immediate, relatable thing in front of us
- To act, we must be confident we can make an impact and feel what we do is important
""",
_ => string.Empty,
};
}