Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT Prompt Lab

A local prompt engineering sandbox powered by Ollama, Streamlit, and optional GPT comparisons built for testing, comparing, and improving prompt responses across multiple LLMs.

Features

  • Multi-Prompt Comparison
    Enter multiple prompts and compare LLM responses side by side.

  • Ollama Model Integration
    Works offline with models like Mistral, LLaMA, Gemma, etc.

  • Prompt Presets & Templates
    Load preset prompts for specific tasks like summarization, Q&A, code generation.

  • Light/Dark Mode
    Easily switch contrast and text styling from the sidebar.

  • Response History & Feedback
    View past results and prompt experiments.

  • “Make Prompt Better” Button
    Suggest improved prompt variants with an LLM.

  • AI Summary of Responses
    GPT-4 generates insights and summaries from responses.

  • Interactive Diff Viewer (Advanced Mode)
    Toggle a side-by-side diff to visually compare response differences.

Screenshots

image image image image image

Installation

git clone https://github.com/yourusername/gpt-prompt-lab.git
cd gpt-prompt-lab
python -m venv venv
.\venv\Scripts\activate
pip install -r requirements.txt
streamlit run app.py

Requires Python 3.9 or later. Ollama should be running while using local models.

About

GPT Prompt Lab is an interactive tool for crafting, testing, and comparing prompts across local and cloud-based language models. It helps you optimize prompt phrasing, visualize model responses side-by-side, and experiment with tone, style, and structure all in a clean, customizable interface.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages