Category

Prompt Engineering

Techniques for creating, structuring, testing, and refining prompts for different AI tasks and models.

5articles
Robô diante de um notebook entre três cartões organizados de exemplos à esquerda e muitos cartões dispersos e marcados em vermelho à direita.
Prompt Engineering26/09/20266 min read

Prompts with examples: when few-shot helps and when it only adds noise

Learn when examples genuinely improve a prompt, when they only add unnecessary context, and how to compare zero-shot and few-shot with a representative test set.

Read article
Ilustração dividida entre zero-shot e few-shot, com cartões de instruções e exemplos, respostas simuladas e medidores de uso da janela de contexto.
Prompt Engineering22/09/20265 min read

Zero-shot vs. few-shot: when examples improve a prompt and when they waste context

Compare instructions without examples and prompts with demonstrations on the same test cases to measure format, accuracy, and token cost.

Read article
Infográfico tecnológico em fundo escuro compara OpenAI, Claude e Gemini em três colunas, com camadas de instrução e setas indicando prioridades entre regras e pedidos.
Prompt Engineering24/08/202613 min read

System prompt, developer message, and user prompt: how instruction hierarchy changes across OpenAI, Claude, and Gemini

OpenAI, Claude, and Gemini separate high-level instructions from the user's request, but their APIs use different roles, fields, and precedence rules.

Read article
Banner tecnológico em fundo azul-escuro compara OpenAI, Claude e Gemini em três colunas, com exemplos de JSON livre e JSON com schema, ícones de erro e validação e um fluxo da instrução ao consumo pelo código.
Prompt Engineering17/08/202613 min read

Structured Outputs or “respond in JSON”? When to use JSON Schema in OpenAI, Claude and Gemini

Requesting JSON, enabling an output mode and imposing a schema solve different problems. See when each approach is sufficient and where it is still necessary to validate content.

Read article
Ilustração dividida entre um grande bloco de prompt monolítico à esquerda e uma sequência de etapas conectadas com checkpoints à direita, com um ponto de decisão ao centro.
Prompt Engineering17/08/202611 min read

Mega-prompt or prompt chaining? When to split a task into steps and when to keep it to a single call

A practical guide to deciding between a single call and a staged flow, comparing dependencies, validation, failures, state, latency, cost, and testing.

Read article