A web application that simulates different thinking patterns and cognitive processes using large language models.
- Simulate various thought types: Decision Making, Ethical Reasoning, Creative Thinking, Hypothetical Scenarios
- Choose different prompt patterns: Hierarchical Structure, Multiple Perspective, Self-Reflective
- Adjust parameters like depth and detail level
- View thought processes in text and graph formats
- Interactive visualization of thought connections
-
Clone this repository: git clone cd thought_simulator
-
Create a virtual environment and install dependencies: python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt
-
Create a
.envfile with your OpenAI API key: OPENAI_API_KEY=your_api_key_here -
Run the application: streamlit run app.py
-
Open your browser and navigate to
http://localhost:8501
- Select the type of thinking you want to simulate
- Choose a prompt pattern that structures the thinking process
- Adjust parameters to control depth and detail
- Enter your scenario or question
- Click "Start Simulation" to generate the thought process
- View the results in text or graph format
- Modify
templates.yamlto create new prompt templates - Add new visualization options in
visualizer.py - Extend thought parsing logic in
thought_parser.py
- Python 3.7+
- OpenAI API key
- See requirements.txt for full dependencies