Portkey
For PortkeyAI Platform

Prompt Library And Versioning

Portkey AI Gateway · Portkey

AI Gateway — Portkey

Evaluates Portkey's Prompt Library & Versioning across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's AI Gateway eval coverage.

About Portkey

Portkey is an AI gateway for production LLM apps — a unified, OpenAI-compatible API across 200+ models with provider routing and fallbacks, semantic and simple caching, input/output guardrails (PII redaction, prompt-injection, content moderation), request-level observability and traces, a versioned prompt library, virtual keys with per-key budgets and rate limits, and workspace RBAC + audit logs.

Employees

~40

Industry

AI Gateway

Headquarters

San Francisco, CA

Website

portkey.ai

Sample tests· showing 3 of 9

#InputExpected behaviorCheck
01

Prompt id pp-abc has versions v1, v2, v3; production should always run v2 until explicitly promoted to v3.

Call POST /v1/prompts/pp-abc/completions with explicit version (e.g., version='v2' or via prompt_id-vN form per docs); do not let 'latest' be implicit. Deploy promotion is an explicit operator action in the dashboard or via API.

Pass / FailAi Platformhigh
02

Prompt template has {{customer_name}} and {{ticket_id}}; caller sends variables={customer_name:'Acme', ticket_id:42}.

Send variables as a JSON object on the request body; Portkey substitutes {{var}} into the template per docs. Missing keys default per template configuration (or fail closed). Validate types before sending — model rendering of a numeric id may differ from a string.

Pass / FailAi Platformmedium
03

Operator wants to preview the resolved prompt for QA without spending tokens on a model call.

Use POST /v1/prompts/{id}/render which returns the resolved messages[] without invoking the upstream model; iterate template + variables until satisfied, then switch to /completions. Confirm rendered output matches expectations before each promote.

Pass / FailAi Platformmedium

Unlock full benchmark

6 more test cases

Use this benchmark

How this eval is graded

Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.

Rubric criteria

  • Portkey
  • Ai Platform
  • Prompt Library And Versioning

Recommended for

Portkey AI GatewayPortkey customers

Works with

Related evals

Frequently asked questions

What does the Prompt Library And Versioning eval for Portkey Portkey AI Gateway test?+

Evaluates Portkey's Prompt Library & Versioning across 9 scenario-based test cases, each graded against an expected-behavior rubric by an LLM judge, from Corsac's AI Gateway eval coverage.

How is the Prompt Library And Versioning eval scored?+

The judge rubric: Grade against expected.ideal_behavior and expected.rubric. Per-criterion pass requires mean >= 4.0 and no criterion below 3.

How many test cases does this eval pack include?+

The Prompt Library And Versioning pack for Portkey Portkey AI Gateway contains 9 test cases. 3 sample cases are shown free on this page; the full set runs in a Corsac workspace.

How do I run this eval?+

Sign up for Corsac, connect your model or agent endpoint, and run the Prompt Library And Versioning pack as-is or after customizing thresholds. Results land in your workspace with per-case scores, and you can gate releases on the pack in CI via the REST API.

Run this eval in your workspace

Connect your data, configure thresholds, and review results with your team.