2023-06-28 14:25:08 -07:00
2023-06-26 23:40:05 -07:00
2023-06-26 22:13:35 -07:00
2023-06-28 11:55:25 -07:00
2023-06-28 11:55:25 -07:00
2023-06-28 07:05:51 -07:00
2023-06-26 23:46:10 -07:00
2023-06-19 16:15:35 -07:00
2023-06-28 07:05:51 -07:00
2023-06-28 06:49:44 -07:00
2023-06-28 06:49:44 -07:00
2023-06-27 13:19:41 -07:00
2023-06-28 14:25:08 -07:00
2023-06-26 15:26:40 -07:00
2023-06-26 15:26:40 -07:00
2023-06-19 16:15:35 -07:00

🧪 Prompt Lab

Prompt Lab is a flexible playground for comparing and optimizing LLM prompts. It lets you quickly generate, test and compare candidate prompts with realistic sample data.

[]

Currently there's a public playground available at https://promptlab.corbt.com/, but the recommended approach is to run locally.

High-Level Features

  • Configure Multiple Prompts - Set up multiple prompt configurations and compare their output side-by-side. Each configuration can be configured independently.

  • Visualize Responses - Inspect prompt completions side-by-side.

  • Test Many Inputs - Prompt Lab lets you template a prompt. Use the templating feature to run the prompts you're testing against many potential inputs for broader coverage of your problem space than you'd get with manual testing.

  • 🪄 Auto-generate Test Scenarios - Prompt Lab includes a tool to generate new test scenarios based on your existing prompts and scenarios. Just click "Autogenerate Scenario" to try it out!

  • Prompt Validation and Typeahead - We use OpenAI's OpenAPI spec to automatically provide typeahead and validate prompts.

[]

[]

Supported Models

Prompt Lab currently supports GPT-3.5 and GPT-4. Wider model support is planned.

Running Locally

  1. Install Postgresql.
  2. Install NodeJS 20 (earlier versions will very likely work but aren't tested).
  3. Install pnpm: npm i -g pnpm
  4. Clone this repository: git clone https://github.com/prompt-lab/prompt-lab
  5. Install the dependencies: cd prompt-lab && pnpm install
  6. Create a .env file (cp .env.example .env) and enter your OPENAI_API_KEY.
  7. Start the app: pnpm dev
  8. Navigate to http://localhost:3000
Description
Turn expensive prompts into cheap fine-tuned models
Readme Apache-2.0 5 MiB
Languages
TypeScript 88.9%
Python 8.9%
JavaScript 1.3%
PLpgSQL 0.4%
Shell 0.3%
Other 0.2%