{"id":13619200,"url":"https://github.com/anthropics/prompt-eng-interactive-tutorial","last_synced_at":"2025-05-15T05:05:29.858Z","repository":{"id":231143070,"uuid":"781022269","full_name":"anthropics/prompt-eng-interactive-tutorial","owner":"anthropics","description":"Anthropic's Interactive Prompt Engineering Tutorial","archived":false,"fork":false,"pushed_at":"2024-07-11T06:41:09.000Z","size":5863,"stargazers_count":2662,"open_issues_count":16,"forks_count":315,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-04-14T08:11:23.256Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthropics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-02T15:52:00.000Z","updated_at":"2025-04-14T03:55:48.000Z","dependencies_parsed_at":"2024-04-02T17:38:29.299Z","dependency_job_id":"87d9754a-5542-4e16-930a-1ae3e858266f","html_url":"https://github.com/anthropics/prompt-eng-interactive-tutorial","commit_stats":null,"previous_names":["anthropics/prompt-eng-interactive-tutorial"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fprompt-eng-interactive-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fprompt-eng-interactive-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fprompt-eng-interactive-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthropics%2Fprompt-eng-interactive-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthropics","download_url":"https://codeload.github.com/anthropics/prompt-eng-interactive-tutorial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254276446,"owners_count":22043866,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T21:00:36.116Z","updated_at":"2025-05-15T05:05:29.822Z","avatar_url":"https://github.com/anthropics.png","language":"Jupyter Notebook","funding_links":[],"categories":["Jupyter Notebook","Claude official prompt resource:","A01_文本生成_文本对话","📚 Learning \u0026 Resources","others","Building","HarmonyOS","Repos","Tutorials and Guides","📚 Learning Resources","AI \u0026 LLM"],"sub_categories":["大语言对话模型及数据","Prompt Engineering","Windows Manager","Community and Independent Guides","Guides \u0026 Tutorials","LLM Apps \u0026 Interfaces"],"readme":"# Welcome to Anthropic's Prompt Engineering Interactive Tutorial\n\n## Course introduction and goals\n\nThis course is intended to provide you with a comprehensive step-by-step understanding of how to engineer optimal prompts within Claude.\n\n**After completing this course, you will be able to**:\n- Master the basic structure of a good prompt \n- Recognize common failure modes and learn the '80/20' techniques to address them\n- Understand Claude's strengths and weaknesses\n- Build strong prompts from scratch for common use cases\n\n## Course structure and content\n\nThis course is structured to allow you many chances to practice writing and troubleshooting prompts yourself. The course is broken up into **9 chapters with accompanying exercises**, as well as an appendix of even more advanced methods. It is intended for you to **work through the course in chapter order**. \n\n**Each lesson has an \"Example Playground\" area** at the bottom where you are free to experiment with the examples in the lesson and see for yourself how changing prompts can change Claude's responses. There is also an [answer key](https://docs.google.com/spreadsheets/d/1jIxjzUWG-6xBVIa2ay6yDpLyeuOh_hR_ZB75a47KX_E/edit?usp=sharing).\n\nNote: This tutorial uses our smallest, fastest, and cheapest model, Claude 3 Haiku. Anthropic has [two other models](https://docs.anthropic.com/claude/docs/models-overview), Claude 3 Sonnet and Claude 3 Opus, which are more intelligent than Haiku, with Opus being the most intelligent.\n\n*This tutorial also exists on [Google Sheets using Anthropic's Claude for Sheets extension](https://docs.google.com/spreadsheets/d/19jzLgRruG9kjUQNKtCg1ZjdD6l6weA6qRXG5zLIAhC8/edit?usp=sharing). We recommend using that version as it is more user friendly.*\n\nWhen you are ready to begin, go to `01_Basic Prompt Structure` to proceed.\n\n## Table of Contents\n\nEach chapter consists of a lesson and a set of exercises.\n\n### Beginner\n- **Chapter 1:** Basic Prompt Structure\n\n- **Chapter 2:** Being Clear and Direct  \n\n- **Chapter 3:** Assigning Roles\n\n### Intermediate \n- **Chapter 4:** Separating Data from Instructions\n\n- **Chapter 5:** Formatting Output \u0026 Speaking for Claude\n\n- **Chapter 6:** Precognition (Thinking Step by Step)\n\n- **Chapter 7:** Using Examples\n\n### Advanced\n- **Chapter 8:** Avoiding Hallucinations\n\n- **Chapter 9:** Building Complex Prompts (Industry Use Cases)\n  - Complex Prompts from Scratch - Chatbot\n  - Complex Prompts for Legal Services\n  - **Exercise:** Complex Prompts for Financial Services\n  - **Exercise:** Complex Prompts for Coding\n  - Congratulations \u0026 Next Steps\n\n- **Appendix:** Beyond Standard Prompting\n  - Chaining Prompts\n  - Tool Use\n  - Search \u0026 Retrieval","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthropics%2Fprompt-eng-interactive-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthropics%2Fprompt-eng-interactive-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthropics%2Fprompt-eng-interactive-tutorial/lists"}