Why Puzzlet’s Prompt Mangement?

Puzzlet provides some unique benefits compared to alternatives platforms. Primarily, we support:

  • Save all prompt versions in your GitHub repo
  • Access prompts via our secure CDN
  • Local development of prompts via our CLI
  • Collaborate with Subject Matters Experts (SME’s) within your git repository
  • Decouple prompts from code with our SDK
  • Non-technical users don’t need a git account to collaborate
  • Serialize all prompts to readable Markdown
  • Create complex prompt chain/graph based workflows
  • Unlimited environments through app deployments (and preview branches for Enterprise)

Getting Started

Core Concepts

Some of the core concepts to understand about our prompt management:

  • Prompt Templates are a JSON structure which can store multiple prompts
  • Prompts can be stored as inline strings within templates, or separate markdown files
  • We use the {{ handlebars }} syntax to specify variables
  • Each prompt within the template requires a name
  • Prompts can be chained by referencing other prompts {{ prompt1.output }}
  • You can reference the output or input of other prompts
  • Prompts can be developed locally with our CLI or writing markdown
  • Prompt Templates can be fetched from our secure CDN

Quick start

It takes just a few minutes to create, publish, and run your first prompt

1

Create your first Prompt Template and publish it

2

Run your first Prompt Template

Run
import { Puzzlet } from "@puzzlet/sdk";
import { PromptTemplateRuntime } from "@puzzlet/prompt-template";
// Initializes the puzzlet client.
const client = new Puzzlet({ apiKey, appId });

async function run () { 
  // Fetches the template from our CDN
  const json = await client.fetchTemplate("prompt_template_2.json");
  const promptTemplate = PromptTemplateRuntime.load(json);
  // Runs the specified prompt
  await promptTemplate.runSingle("my_prompt");
}
await run();

Questions or Feedback?

Have any questions or feature requests? Reach out to us at hello@puzzlet.ai