Practical AI
Practical AI

Prompting the future

Daniel & Chris explore the state of the art in prompt engineering with Jared Zoneraich, the founder of PromptLayer. PromptLayer is the first platform built specifically for prompt engineering. It can visually manage prompts, evaluate models, log LLM requests, search usage history, and help your

Topics Discussed

Episode Summary

Executive Summary: PromptLayer founder Jared explains prompt engineering as systematically tuning LLM inputs—including prompts, models, and parameters—and argues it requires distinct workflows because models are probabilistic and different people contribute than in traditional software development. The discussion covers model-specific prompting, prompt versioning, evaluation, logging, cost and latency monitoring, and the need to shorten feedback loops while adapting practices to each use case.

Main Topics: Defining prompt engineering: Jared describes prompt engineering as tuning what goes into an LLM—prompts, model selection, temperature, and other parameters—and tracking the outputs. He distinguishes it from traditional hyperparameter tuning and LLMOps. Different models and diverse practitioner skills: Prompting techniques do not transfer perfectly across models because they are built differently. Effective work combines clear communication and concise writing with algorithmic thinking and iterative experimentation; technical and domain experts may bring different strengths. New stakeholders and development workflows: LLM applications bring subject-matter experts and other non-engineers into prompt creation. Prompt changes may need to happen independently of code deployments, so teams need collaboration and version-control practices suited to this workflow. Prompt lifecycle, testing, and release practices: Teams may progress from prompts embedded in code and informal 'vibe-based' testing to centralized registries, staged releases, A/B tests, regression tests, and backtesting. The appropriate safeguards depend on product maturity and the impact of mistakes. Evaluation, logging, and monitoring: A small dataset with human-assessed ground truths can support repeatable prompt evaluation. Production feedback can expand that dataset, while logs help investigate failures and track prompt versions, latency, cost, and usage. Future of prompt engineering: Rather than predict a rapidly changing field, PromptLayer aims to build flexible tools based on enduring needs. Jared argues that even highly capable or multimodal models will still require people to specify the task and inputs.

Key Arguments: Prompt engineering should be treated as a black-box, input-to-output discipline: teams can make progress by testing and tracking results without needing to explain every model behavior mechanistically. Prompting differs across models because models are trained and constructed differently; model-specific techniques are likely to remain relevant even as short-lived tricks such as flattering or incentivizing a model fade. LLM development needs workflows beyond conventional code versioning because prompts change on a different cadence and may be authored by non-engineering stakeholders. A prompt registry can decouple prompt iteration from software deployments. Informal testing can be acceptable for an early MVP, but mature products need proportionate safeguards such as staged releases, A/B testing, regression tests, and backtesting. When ground truth is available, teams should create a representative evaluation set, potentially with human judgments. Production user feedback can then feed back into evaluation and improve the development loop. Logging is essential for debugging and for building evaluations. Latency and cost are readily measurable, while answer quality, safety, and correctness are harder to assess and depend on the application. There is no universal evaluation or release strategy: teams should choose methods according to the task, available ground truth, product maturity, and the consequences of a bad output.

Data Points: PromptLayer product launch: January 2023 - Jared says the product launched in January 2023, a few months after ChatGPT was released. Suggested evaluation-set size: 10, 15, or 100 examples - Jared offers these as illustrative dataset sizes, depending on the use case, for starting prompt evaluation with human-provided outputs. Illustrative response changes after a prompt update: 50% - Jared gives a hypothetical example: if half of old responses change after an update, a team may want to inspect those changes. Illustrative rate of changed responses: One in a thousand - Jared contrasts the 50% example with a hypothetical change rate that might be acceptable, depending on the application. Practical difficulty of analyzing model weights: 99.9% of use cases - Jared estimates that practically tracing behavior through model weights is too difficult for 99.9% of use cases. Illustrative annual product revenue: $10 million - Jared uses a hypothetical product at this revenue level to illustrate when teams are likely to care about every prompt change.

Pivotal Quotes: "the iterative cycle of prompt engineering is different than software engineering." — Jared, PromptLayer founder: He explains why prompt iteration often needs to be separated from conventional code deployment cycles. "our biggest goal with Prompt Layer, our MO, is to shorten the prompt engineering feedback loop." — Jared, PromptLayer founder: He summarizes the purpose behind the platform's logging, evaluation, and prompt-management capabilities. "Even with the most advanced LLM ever, let's say the LLM is as advanced as a human. You still have to tell a human what you want." — Jared, PromptLayer founder: He argues that specifying tasks and inputs will remain necessary even as models become far more capable.

Implications: Teams building with LLMs should treat prompts as versioned, testable product components, involve domain experts through accessible workflows, and build evaluation and production-feedback loops. Practices should match the application's risks, quality requirements, latency, and cost.

🔓 Sign Up for Unlimited Episode Search

About Practical AI

View all episodes from Practical AI