Democratizing Prompt Engineering Through Platform Architecture and Employee Empowerment

pinterest · Tech · 2023 · source Agentic: yes · promotional bias: low · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Enterprise prompt platform and employee enablement

Pinterest needed to turn prompt experimentation into production capability across the company, letting employees and teams use multiple LLM vendors safely while scaling labeling, prompt evaluation, and prompt optimization.

Constraints:

Architecture

Pinterest built a layered LLMOps platform: multimodal/multi-vendor model onboarding, centralized proxy services for vendor integration, logging, rate limiting, and access control, common employee-facing tools, centralized guardrails, batch labeling, prompt leaderboards, and AutoPrompter-style prompt generation and critique. The organizational layer included Prompt Doctors, company-wide classes, hackathons, bounties, and no-code tools.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  multi-vendor-model-layer["Multi-vendor model layer"] --> central-proxy["Central proxy"]
  central-proxy --> employee-tools["Employee tools"]
  central-proxy --> central-guardrails["Central guardrails"]
  employee-tools --> batch-labeling-system["Batch labeling system"]
  batch-labeling-system --> prompt-leaderboard["Prompt leaderboard"]
  employee-tools --> prompt-leaderboard
  prompt-leaderboard --> autoprompter["AutoPrompter"]
  prompt-doctors["Prompt Doctors"] --> employee-tools
  central-guardrails --> batch-labeling-system
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Multi-vendor model layer Allows Pinterest to onboard and expose multiple models quickly. Central proxy
Central proxy Handles vendor integration, logging, rate limiting, and access control. Multi-vendor model layer, Employee tools, Central guardrails
Employee tools Developer environments, prompt tools, internal APIs, bots, assistants, and no-code notebooks. Central proxy, Batch labeling system, Prompt leaderboard
Central guardrails Empathetic AI, safety, and content-quality checks. Central proxy, Batch labeling system
Batch labeling system Scales prompt-driven labeling over tables and large item sets. Employee tools, Prompt leaderboard
Prompt leaderboard Centralized evaluation surface with test sets, costs, and competing prompts. Employee tools, Batch labeling system, AutoPrompter
AutoPrompter Uses LLMs to generate, critique, and refine prompts. Prompt leaderboard
Prompt Doctors Human enablement program teaching employees prompt skills and limitations. Employee tools

Data flow

A team chooses a model through the multi-vendor layer. Requests pass through the proxy for rate limits, logging, vendor integration, and access policy. Employees use prompt tools, notebooks, or prompt hub/leaderboards to develop and test prompts. Batch labeling scales successful prompts to large data tables, and AutoPrompter generates, critiques, and refines prompts for candidate tasks before production use.

“we have a centralized proxy layer where we then decide uh do things like rate limiting integration with the vendors properly logging”transcript, stated
“we built a batch labeling system where again you don't have to do anything other than bring a table and a prompt”transcript, stated

Why this architecture

Pinterest separated model access, proxy controls, employee tools, and guardrails so teams could move quickly while centralizing operational controls. The education/hackathon layer made prompt engineering a company-wide capability instead of a single specialist team's bottleneck.

“we have built it in different layers to take care of different tasks.”transcript, stated
“enabling your employees to be the ones building and thinking about next to build instead of one team doing that.”transcript, stated

Models used: Multiple vendor LLMs · Open-source models · LLMs used for AutoPrompter

Scale

Alternatives considered (roads not taken)

Let one central team build all GenAI use cases

Rejected because: The talk's operating principle is to enable employees across the company to build and discover use cases.

“enabling your employees to be the ones building and thinking about next to build instead of one team doing that.”transcript, stated

Expose models directly without a proxy

Rejected because: The proxy centralizes rate limiting, vendor integration, logging, and access control.

“centralized proxy layer where we then decide uh do things like rate limiting integration with the vendors properly logging”transcript, stated

Require engineering work for every labeling task

Rejected because: No-code notebooks and batch labeling let teams bring a table and prompt instead.

“you don't have to do anything other than bring a table and a prompt and it starts to at high throughput start labeling data”transcript, stated

Patterns

model-routing (platform)

The platform exposes multiple models through a central layer so teams can onboard or access different vendors/models.

“whenever someone says hey I want X model or Y model we're able to bring them quickly and onboard them quickly.”transcript, stated

prompt-versioning (prompting)

Prompt leaderboards, secret test sets, starter prompts, and cost/accuracy comparisons make prompt iteration measurable.

“we had a secret test set. Uh we have a starter prompt uh a hello world problem to solve that.”transcript, stated

batch-offline-processing (data)

The batch labeling platform scales prompts over large datasets at high throughput.

“we built a batch labeling system where again you don't have to do anything other than bring a table and a prompt”transcript, stated

guardrails-io-filtering (safety)

Central guardrails include empathetic AI, safety, content quality, and toxicity-style checks.

“we also want some centralized guardrails. So that's the other layer where we have empathetic AI checks, safety checks, content quality checks”transcript, stated

llm-as-judge (optimization)

AutoPrompter uses LLM critique/refinement loops to generate better prompts.

“LLMs are good writers obviously we got our assignments written with them but they're also really good prompt writers.”transcript, stated

Tradeoffs

Centralize model access through a proxy

Chose shared controls for vendors, logging, rate limits, and access over direct team-by-team model integrations.

Rationale: Central controls let Pinterest expose models broadly while administering unreleased and general models differently.

“if some employees need a new unreleased model available versus like there are general models that should be available to everyone we can really administer that”transcript, stated

Open prompt contests to all employees

Chose company-wide leaderboard participation over only professional prompt engineers.

Rationale: Non-engineering employees produced competitive solutions and increased ownership.

“the rank one or rank two is like from a finance team. It's not from engineering product anything. So people are getting like I have ownership in this.”transcript, stated

Gotchas (what bit them)

Employee adoption requires enablement, not just infrastructure.

Root cause: Many employees did not yet know what GenAI is good or bad at.

Resolution: Use approachable teaching, prompt doctors, hackathons, and no-code tools.

“you take them through both prompt engineering skills what it does when it makes mistakes hallucinates. You show them the goods and the bads”transcript, stated

Jupyter notebooks are useful for discovery but not production scale.

Root cause: A self-serve notebook can prove use cases but cannot handle large-scale labeling needs.

Resolution: Use initial meetings/notebooks to gather use cases, then fund a production batch labeling system.

“But this is Jupiter. This is not scalable, right? But those 40 use cases that we got started using this which got us enough ammunition to then get a team funded”transcript, stated

Evaluation

Pinterest evaluates prompts and labeling through leaderboards, secret test sets, cost per million labels, accuracy, sample review, trust/safety toxicity checks, and production-readiness buttons.

Metrics: Accuracy · Cost per million labels · Secret test set score · Toxicity score · Prompt leaderboard rank · Label throughput · Adoption

“the cost of that prompt uh you know in cost per million uh labels we would get in 24 hours.”transcript, stated

Outcomes

Pinterest's platform supported a 570-million-user product and company-wide prompt enablement.

“the accuracy was beaten but the cost on this particular problem was beaten.”transcript, stated