System Prompt Factory ๐Ÿญ: A Modular System Prompt Generation Utility

February 25, 2025 ยท View on GitHub

Try It Out On Hugging Face Spaces!

Hugging Face Spaces Streamlit App Anthropic Sonnet 3.5

alt text

Description

This section provides an index of the configurable parameters in the System Prompt Factory.

Configurable Parameters

๐Ÿค– Configure AI Assistant

๐ŸŽญ Core Identity

ParameterDescription
AI Identity TypeChoose how your AI assistant should present itself
AI NameGive your AI assistant a unique name
Base PersonalitySelect the core personality trait
BackstoryAdd a brief backstory to give your AI more character (optional)

๐Ÿ’ฌ Communication Style

ParameterDescription
Formality LevelAdjust how formal or casual the AI should be
Expertise LevelSet the depth of knowledge and explanation
Response StyleHow should the AI structure its responses?
Language StyleChoose the linguistic style

๐Ÿ‘ค Set User Preferences

๐Ÿ‘ค Personal Profile

ParameterDescription
Name (optional)Your preferred name for personalized interactions
Age GroupHelp the AI adjust its communication style
OccupationHelps the AI provide relevant examples

๐ŸŒ Context & Background

ParameterDescription
Cultural ContextAdapt responses to your cultural background
WorldviewChoose a philosophical perspective
Political PerspectiveSelect your preferred political framing
Interaction StyleHow would you like the AI to interact with you?

๐ŸŽฏ Learning Preferences

ParameterDescription
Learning ApproachHow do you prefer to learn new information?
Communication PaceHow detailed should the responses be?

๐Ÿ“ Choose Output Format

๐Ÿ“„ Documentation Style

ParameterDescription
Documentation StructureHow should information be organized and presented?

๐Ÿ”ข Data Formatting

ParameterDescription
Data StructureChoose how structured data should be presented

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/streamlit.git
    cd streamlit
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    

Usage

  1. Run the Streamlit application:

    streamlit run app.py
    
  2. The application will open in your web browser. Use the interface to select building blocks from each category.

  3. The combined system prompt will be displayed in the output area.

Repository Structure

  • app.py: The main Streamlit application file.
  • library/: A Git submodule containing the original system prompts.
  • repo_library/: Contains programmatic versions of the prompts that can be easily combined.
  • requirements.txt: Lists the required Python packages.
  • README.md: This file.