Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
2K views4 pages

Prompt Engineering Overview - Anthropic

This document provides an overview of prompt engineering for Claude models, emphasizing the importance of having clear success criteria and a draft prompt before starting. It outlines effective techniques for prompt engineering, such as using a prompt generator, being clear and direct, and employing examples. Additionally, it offers resources for interactive learning through tutorials and suggests when prompt engineering is appropriate compared to other methods like fine-tuning.

Uploaded by

matting-nutty.0t
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2K views4 pages

Prompt Engineering Overview - Anthropic

This document provides an overview of prompt engineering for Claude models, emphasizing the importance of having clear success criteria and a draft prompt before starting. It outlines effective techniques for prompt engineering, such as using a prompt generator, being clear and direct, and employing examples. Additionally, it offers resources for interactive learning through tutorials and suggests when prompt engineering is appropriate compared to other methods like fine-tuning.

Uploaded by

matting-nutty.0t
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

English

Prompt engineering Prompt engineering overvi…

PROMPT ENGINEERING

Prompt engineering overview

While these tips apply broadly to all Claude models, you can find
prompting tips specific to extended thinking models here.

Before prompt engineering


This guide assumes that you have:

1. A clear definition of the success criteria for your use case

2. Some ways to empirically test against those criteria

3. A first draft prompt you want to improve

If not, we highly suggest you spend time establishing that first. Check out Define
your success criteria and Create strong empirical evaluations for tips and
guidance.

Ask AI

Prompt generator

https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview 5/12/25, 13 14
Page 1 of 4
:
Don’t have a first draft prompt? Try the prompt generator in the Anthropic
Console!

When to prompt engineer


This guide focuses on success criteria that are controllable through prompt
engineering. Not every success criteria or failing eval is best solved by prompt
engineering. For example, latency and cost can be sometimes more easily improved
by selecting a different model.

Prompting vs. finetuning

How to prompt engineer


The prompt engineering pages in this section have been organized from most
broadly effective techniques to more specialized techniques. When troubleshooting
performance, we suggest you try these techniques in order, although the actual
impact of each technique will depend on your use case.

1. Prompt generator

2. Be clear and direct

3. Use examples (multishot)

4. Let Claude think (chain of thought)

https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview 5/12/25, 13 14
Page 2 of 4
:
5. Use XML tags

6. Give Claude a role (system prompts)

7. Prefill Claude’s response

8. Chain complex prompts

9. Long context tips

Prompt engineering tutorial


If you’re an interactive learner, you can dive into our interactive tutorials instead!

GitHub prompting tutorial


An example-filled tutorial that covers the prompt engineering concepts
found in our docs.

Google Sheets prompting tutorial


A lighter weight version of our prompt engineering tutorial via an interactive
spreadsheet.

https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview 5/12/25, 13 14
Page 3 of 4
:
Was this page helpful? Yes No

Vision Prompt generator

https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview 5/12/25, 13 14
Page 4 of 4
:

You might also like