Speaker Notes

Prompt engineering

Writing instructions and examples that get reliable output from a model.

6talks
56answers
2mainly about it
6new
DecJanFebMarAprMayJunJulAugSepOctNov

What your library answers 56

How do legacy prompt boosters affect frontier models?

Legacy techniques like step-by-step instructions and verification rituals are unnecessary for frontier models because they already reason effectively. Using these outdated boosters actually increases token costs and can degrade model performance. Therefore, developers should audit their prompts to remove these anti-patterns.

Thumbnail: Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic ▶ 1:43 Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic

How do AI power users avoid sycophancy when asking for feedback?

Power users ask neutral questions that do not hint at a preferred outcome or they provide a clear grading rubric. This forces the model to evaluate objectively rather than simply trying to please the user.

Thumbnail: Full AI Prompting Course with Andrew Ng ▶ 4:23 Full AI Prompting Course with Andrew Ng

Why is code considered only a fraction of an engineer's true value?

Writing code actually represents a minor part of a developer's daily work, accounting for only 10 to 20 percent of their overall professional value. The remaining 80 to 90 percent is spent on structured communication, such as talking to users, ideating, planning, and verifying whether goals were met. Consequently, knowing how to communicate effectively is the true bottleneck and skill in engineering.

Thumbnail: The New Code — Sean Grove, OpenAI ▶ 2:42 The New Code — Sean Grove, OpenAI

How do I stop AI agents from just agreeing with me?

Developers should configure explicit ground rules that instruct the AI to disagree and avoid trying to please the user. This override helps combat the default overly agreeable behavior of language models. You can place these rules in configuration files like CLAUDE.md to ensure the agent remains critical and honest.

Thumbnail: The Centrifuge Method: Spin the Stupid Out of AI ▶ 0:07 The Centrifuge Method: Spin the Stupid Out of AI

What is a language model fundamentally doing under the hood?

A language model is essentially a function that predicts the next likely word or token in a sentence based on its training. By predicting successive words, it constructs coherent continuations or fills in missing parts of text. During this process, it evaluates probabilities for various candidate words to determine the most fitting output.

Thumbnail: A Hackers' Guide to Language Models ▶ 1:33 A Hackers' Guide to Language Models

Why is prompt caching critical for multi-turn agent applications?

Multi-turn agents repeat a significant amount of context across turns, making prompt caching essential for controlling costs. Because prompt caches rely on a strict prefix match, even a tiny change will invalidate the cache and spike expenses. Developers can run automated checks to ensure their prompts are structured for high cache hit rates.

Thumbnail: Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic ▶ 5:47 Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic

Why is iterative outlining recommended over direct prompting for writing tasks?

Asking an AI to write directly often results in generic, low-quality text known as AI slop. Instead, power users first request an outline, iterate on it through back-and-forth feedback, and only then expand it into the final text.

Thumbnail: Full AI Prompting Course with Andrew Ng ▶ 5:48 Full AI Prompting Course with Andrew Ng

Why are written specifications superior to code as project artifacts?

Code is a lossy projection from a specification, much like a compiled binary where original intent and comments are lost. A written specification successfully encodes all necessary requirements and intentions, allowing you to target multiple outputs like code, docs, or podcasts. Therefore, specifications serve as the true source artifact to align humans and guide generation.

Thumbnail: The New Code — Sean Grove, OpenAI ▶ 6:50 The New Code — Sean Grove, OpenAI

How should I implement TDD with coding agents?

Instead of relying on a simple system prompt or one-liner, TDD should be implemented as a dedicated lightweight agent skill. You can record a successful manual TDD session with the agent to capture the exact workflow steps. This structured skill then allows the agent to automatically follow the correct development cycle.

Thumbnail: The Centrifuge Method: Spin the Stupid Out of AI ▶ 10:34 The Centrifuge Method: Spin the Stupid Out of AI

How do language models process text instead of whole words?

Language models tokenize text into sub-word units, whole words, punctuation, or numbers using specific tokenizers like tick token. These tokens are mapped to numeric IDs that act as lookups into the model's vocabulary. For instance, prefixes like spaces are often encoded directly into the token representation.

Thumbnail: A Hackers' Guide to Language Models ▶ 4:45 A Hackers' Guide to Language Models

How does autonomous hill climbing prevent overfitting on evaluation sets?

Automated hill climbing uses statistical principles by splitting evaluation data into separate test and train sets. During optimization, the model only reflects on failures within the train split while checking performance per round against both sets. If the training score improves while the test score stays flat, it signals potential overfitting.

Thumbnail: Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic ▶ 13:51 Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic

How does frequency bias affect an AI model's pre-trained knowledge?

Pre-trained knowledge reflects the patterns and frequency of data in the training set, meaning common topics have vast amounts of reliable data while niche topics or less common languages have sparse data. This frequency serves as a rule of thumb for predicting response reliability.

Thumbnail: Full AI Prompting Course with Andrew Ng ▶ 12:30 Full AI Prompting Course with Andrew Ng

How does OpenAI use markdown in its model specifications?

OpenAI open-sourced its model specification as a collection of human-readable markdown files versioned on GitHub. Because it uses natural language, technical and non-technical team members alike can read, discuss, and contribute to it. Each clause also includes specific IDs mapped to challenging test prompts to evaluate model behavior.

Thumbnail: The New Code — Sean Grove, OpenAI ▶ 9:57 The New Code — Sean Grove, OpenAI

What is the centrifuge method for refining AI outputs?

The centrifuge method involves iterative refinement loops where the AI takes a single step toward a goal and saves it to a file. The developer reviews this output, provides corrective feedback, and runs the loop multiple times. This repeated spinning removes low-quality output and aligns the final result with your voice.

Thumbnail: The Centrifuge Method: Spin the Stupid Out of AI ▶ 13:21 The Centrifuge Method: Spin the Stupid Out of AI

How does pre-training compress world knowledge into a neural network?

Pre-training forces a deep neural network to guess the next word across vast corpuses like Wikipedia, utilizing stochastic gradient descent to optimize its weights. To succeed at this task, the model must implicitly learn complex real-world concepts, entities, and relationships. This capability essentially acts as a form of information compression.

Thumbnail: A Hackers' Guide to Language Models ▶ 7:40 A Hackers' Guide to Language Models

How should I structure evals for subjective or open-ended tasks?

Use well-structured rubrics with crisp, simple binary classification rather than ambiguous arbitrary scales like zero to five. Test your rubric across multiple models and run replicates to ensure low variance and agreement. Pairwise comparisons are also highly effective because humans and models find comparing two artifacts easier than grading a single one.

Thumbnail: Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic ▶ 31:00 Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic

What causes an AI model to trigger a web search?

Models trigger a web search when a query involves events past their knowledge cutoff date, location-specific details, or niche information that requires updated or external facts. Users can also explicitly trigger web search through interface buttons or direct prompting instructions.

Thumbnail: Full AI Prompting Course with Andrew Ng ▶ 17:14 Full AI Prompting Course with Andrew Ng

How did the model spec help address model sycophancy?

Recent model updates unfortunately exhibited extreme sycophancy, praising user insights at the expense of impartial truth, which erodes trust. Because the model spec explicitly includes a section stating not to be sycophantic, this behavior could immediately be identified as a bug. This allowed the team to roll back, publish studies, and fix the issue using the spec as a trust anchor.

Thumbnail: The New Code — Sean Grove, OpenAI ▶ 12:42 The New Code — Sean Grove, OpenAI

What is a sketch prototype and when should I use it?

When you and your team do not fully understand a problem space yet, you should avoid coding directly to prevent overcommitting. Instead, use a markdown sketch prototype where you replace code with markdown files and an agent acts as a stand-in. This lets you experience the user journey and understand the actual problem before writing production code.

Thumbnail: The Centrifuge Method: Spin the Stupid Out of AI ▶ 22:51 The Centrifuge Method: Spin the Stupid Out of AI

Why are fine-tuning and instruction tuning necessary after pre-training?

While pre-training instills broad world knowledge, raw models are not inherently optimized for answering questions or solving tasks. Instruction tuning feeds the model targeted datasets of questions and responses to shape its behavior for problem-solving. Additional steps like reinforcement learning from human feedback further refine the outputs by aligning them with human preference.

Thumbnail: A Hackers' Guide to Language Models ▶ 15:40 A Hackers' Guide to Language Models

What should I do if my hill climbing loop gets stuck?

Hill climbing is not guaranteed to converge, and getting stuck often indicates poorly structured evals rather than model failure. Built-in fallbacks can automatically cluster remaining failure cases to find and rewrite ambiguous instructions or faulty grader examples. Ensuring your eval set is carefully constructed prevents wasting tokens on unresolvable problems.

Thumbnail: Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic ▶ 36:47 Your Old Prompts Are Making Claude Worse - Lance Martin, Anthropic

How does the underlying two-agent architecture handle web searches?

The user-facing AI model acts like a customer service agent and calls a second assistant AI model when a web search is needed. The assistant model searches the web, filters and downloads relevant web pages, and summarizes them for the primary model to generate the final answer.

Thumbnail: Full AI Prompting Course with Andrew Ng ▶ 25:10 Full AI Prompting Course with Andrew Ng

How does deliberative alignment work using specifications?

Deliberative alignment involves taking your specification and challenging input prompts to sample responses from a model under test. A grader model then scores how well the response aligns with the specification document. These scores reinforce model weights so policies become part of the model's muscle memory rather than requiring inference-time prompts.

Thumbnail: The New Code — Sean Grove, OpenAI ▶ 14:06 The New Code — Sean Grove, OpenAI

How can I prevent an AI from cheating on tests?

AI agents often cheat, lie, or even comment out tests when left unchecked. To keep them honest, you should enforce TDD-style tests and readable behavior-driven tests that serve as a reliable check against reality. This ensures your system actually works without letting the agent bypass validation.

Thumbnail: The Centrifuge Method: Spin the Stupid Out of AI ▶ 32:24 The Centrifuge Method: Spin the Stupid Out of AI

How can developers prime language models to provide higher-quality answers?

Developers can improve model outputs by supplying custom instructions that act as prepended text guiding the model's persona and reasoning quality. Explicitly instructing the model to think through background context helps combat its tendency to generate overly confident hallucinations. Additionally, because generation happens sequentially token by token, prompting the model to reason longer increases its computational thoroughness.

Thumbnail: A Hackers' Guide to Language Models ▶ 22:21 A Hackers' Guide to Language Models