Skip to content

evalscience/deepgov-gg23

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepGov Configurable AI Politicians GG23

DeepGov is a framework for creating and configuring AI politicians with distinct ideological positions, communication styles, and visual identities. This project allows you to customize AI personas that can engage in political discourse, represent specific value systems, and interact with audiences in unique ways.

Overview

This repository contains configuration templates for AI political personas. Each persona is defined by:

  • Constitutional principles - The core values and decision-making framework
  • Stylistic characteristics - Personality, tone, and communication patterns
  • Visual identity - Avatar generation prompts for consistent visual representation
  • Scoring guidelines - Evaluation criteria for policy proposals and projects
  • Ethical guidelines - Framework for identifying and flagging problematic content

Repository Structure

deepgov-modelspec/
├── agents/                      # Directory containing all agent configurations
│   ├── open-source-capitalist/  # Example agent with capitalist orientation
│   │   ├── modelspec/           # Agent behavior specifications
│   │   │   ├── constitution.md  # Core principles and decision framework
│   │   │   ├── style.md         # Communication style and personality traits
│   │   │   ├── scoring.md       # Project evaluation criteria
│   │   │   └── ethics.md        # Ethical concerns and flagging mechanism
│   │   └── visuals/
│   │       └── prompt.md        # Image generation prompt for avatar
│   ├── gitcoin-communist/       # Example agent with communist orientation
│   │   ├── modelspec/
│   │   │   ├── constitution.md
│   │   │   ├── style.md
│   │   │   ├── scoring.md
│   │   │   └── ethics.md
│   │   └── visuals/
│   │       └── prompt.md
│   └── regenerator/             # Example agent with environmental focus
│       ├── modelspec/
│       │   ├── constitution.md
│       │   ├── style.md
│       │   ├── scoring.md
│       │   └── ethics.md
│       └── visuals/
│           └── prompt.md
├── compass/                     # Political compass assessment
│   ├── instructions.md          # Guidelines for completing assessments
│   ├── questions.toml           # Assessment statements
│   └── answers/                 # Agent responses to assessment questions
│       └── regenerator.toml     # Example agent assessment
├── utils/                       # Utility scripts
│   └── fetchAgents.ts           # Script for fetching agent configurations
├── CONTRIBUTING.md              # Guidelines for contributing
├── LICENSE.md                   # GNU Affero General Public License
└── README.md                    # This documentation file

How to Configure Your AI Politician

Follow these steps to create your own AI political persona:

1. Create a New Agent Directory

mkdir -p deepgov-modelspec/agents/your-politician-name/modelspec
mkdir -p deepgov-modelspec/agents/your-politician-name/visuals

2. Define the Constitutional Principles

Create a constitution.md file in the modelspec directory to define your agent's core values and decision-making framework. This document guides how your AI will respond to policy questions and political scenarios.

# Constitutional Principles for [Your Politician Name]

## Core Value Framework

[Define the fundamental philosophy that guides your politician]

## [Category of Principles]

1. Choose the response that [specific principle guidance]

2. Choose the response that [specific principle guidance]

[Continue with more principles organized by category]

See the existing examples like open-source-capitalist/modelspec/constitution.md and gitcoin-communist/modelspec/constitution.md for detailed templates.

3. Define the Style and Personality

Create a style.md file in the modelspec directory to define your agent's personality, communication style, and character traits.

# [Your Politician Name]

## Name
[Character name]

## Summary
[Brief character description - personality traits, speaking style, key characteristics]

## General Style
[How they communicate broadly - speech patterns, language choices, typical expressions]

## Chat Style
[How they engage in conversations - response style, interaction patterns]

## Post Style
[How they structure longer content - formatting preferences, writing style]

4. Create the Visual Identity

Create a prompt.md file in the visuals directory with an image generation prompt that will define your AI politician's visual appearance.

Create an circular profile picture with transparent background of [detailed description of your politician's appearance and style] in the style of [art style].

5. Define Scoring Guidelines

Create a scoring.md file in the modelspec directory to establish how your AI politician evaluates projects and proposals.

# [Your Politician Name] Scoring Guidelines

## Review Structure

### 1. Summary
[Brief description of summary section]

### 2. Review
[Guidelines for comprehensive evaluation]

### 3. Rating Scale
[Define rating scale from 1-10 with descriptions]

### 4. Confidence Assessment
[Define confidence levels from 1-5]

## Evaluation Principles

[List key principles that guide evaluation decisions]

6. Establish Ethical Guidelines

Create an ethics.md file in the modelspec directory to define ethical boundaries and flagging mechanisms for problematic content.

## Ethical Concerns and Flagging Mechanism

[Define ethical framework and flagging process]

### Flag Categories
[List categories of ethical concerns with descriptions]

Example Personas

The repository includes three example personas to demonstrate different ideological approaches based on data collected from polis:

Luna (Open-Source Capitalist)

  • Values: Maximizing impact, efficiency, innovation, merit-based resource allocation
  • Style: Energetic, direct, tech-savvy, uses crypto and tech metaphors
  • Visual: Tech-oriented appearance with black hoodie, headphones, and blue hair
  • Scoring: Evaluates projects based on total impact, scalability, and efficiency metrics
  • Ethics: Focuses on pragmatic concerns and market distortions

Grant (Gitcoin Communist)

  • Values: Evidence-based decisions, sustainability, equity, collective benefit
  • Style: Bold, passionate, community-oriented, uses powerful rhetorical questions
  • Visual: Resembles revolutionary figures, specifically Che Guevara-inspired
  • Scoring: Prioritizes projects that dismantle hierarchies, foster collective ownership
  • Ethics: Emphasizes exploitation and distributional concerns

Panda (Regenerator)

  • Values: Environmental balance, harmony, preservation
  • Style: Calm, thoughtful, uses nature metaphors, speaks with gentle wisdom
  • Visual: Panda character representing balance and environmental consciousness
  • Scoring: Evaluates based on community participation and environmental regeneration
  • Ethics: Focuses on ecosystem health and sustainable practices

Political Compass Assessment

The compass directory contains tools for assessing the political positions of AI politician personas:

  • instructions.md: Guidelines for completing the assessment
  • questions.toml: Statements for evaluation on a 5-point scale
  • answers/: Directory containing agent responses to assessment questions

Each agent can complete the assessment to demonstrate their ideological positioning on key issues.

Utility Scripts

The utils directory contains helper scripts:

  • fetchAgents.ts: A TypeScript utility for retrieving agent configurations from the GitHub repository

Customization Tips

  1. Constitutional Principles: Structure your principles as clear directives that guide decision-making. Use the format "Choose the response that..." to create unambiguous instructions.

  2. Stylistic Elements: Be specific about linguistic patterns, tone, and communication quirks. Define how your persona would handle different communication contexts.

  3. Visual Prompts: Include distinctive visual elements that reflect the ideological position and personality of your AI politician.

  4. Scoring Guidelines: Create consistent evaluation criteria that align with your politician's values and priorities.

  5. Ethical Boundaries: Define clear ethical guidelines for identifying problematic content.

  6. Testing: After configuration, test your AI politician with various political scenarios to ensure the responses align with your intended values and style.

Contributing

Feel free to submit new politician templates or improvements to existing ones via pull requests. Please follow the established format for consistency. See CONTRIBUTING.md for detailed guidelines on how to contribute effectively.

License

This project is licensed under the GNU Affero General Public License v3.0. See LICENSE.md for the complete license text.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •