A Few Prompt Patterns I Use in Practice

I often use AI tools for document summarization and code review assistance, and after some trial and error I’ve settled on a few patterns, so I’m sharing them.

1. Nail down the role and output format first. Putting “Answer in the following format: ...” at the very beginning makes it less likely to waver when you add conditions later.

2. Include one example. Even if few-shot feels like a hassle, it drastically reduces variance in the output.

3. Don’t ask for everything at once. Splitting it into draft → verification → rewrite feels much better in practice.

The last item especially stands out. If you ask it to “summarize, find errors, and polish” all at once, something gets missed.

by 취준생김씨37

0 answers