Design a Prompt Playground

AI ProductsStreaming Anthropic

Design a collaborative prompt playground for an AI company's developer console. A user writes a prompt (system message, user message, and variables), picks a model and its settings, runs it, and compares outputs across prompt versions and models. Teammates can work on the same prompt.

Functional:

  • Create and edit prompts with variables. Every save makes a new immutable version with an author.
  • Run a version against one or more models and settings, and stream the output into the page.
  • Compare runs side by side with token counts, latency, and cost.
  • Share a prompt with a team. Two people editing at once must not overwrite each other without knowing.
  • Run a version over a test set of up to 200 rows and see the results as a table.

Non-functional:

  • First token on screen in under 1 second for interactive runs, model permitting.
  • Runs bill to the team's API key and respect its rate limits and spend caps.
  • Prompt contents stay private to the team and never show up in logs.
  • 2 million monthly users, 150,000 daily.
  • 3 million interactive runs a day, peaking at 120 per second. Test-set runs add 20 million model calls a day.
  • Prompts average 3 KB, outputs 2 KB. Version history is kept forever.

The models, the billing system, and exporting prompts as code.

Accepted 0/5
Acceptance 0%
System design
Loading editor...