Prompt-Engineering-Guide README

The project's README from github.com/dair-ai/Prompt-Engineering-Guide. As one markdown file: README.md.

Prompt Engineering Guide

Sponsored by    

Prompt engineering is a relatively new discipline for developing and optimizing prompts to efficiently use language models (LMs) for a wide variety of applications and research topics. Prompt engineering skills help to better understand the capabilities and limitations of large language models (LLMs). Researchers use prompt engineering to improve the capacity of LLMs on a wide range of common and complex tasks such as question answering and arithmetic reasoning. Developers use prompt engineering to design robust and effective prompting techniques that interface with LLMs and other tools.

Motivated by the high interest in developing with LLMs, we have created this new prompt engineering guide that contains all the latest papers, learning guides, lectures, references, and tools related to prompt engineering for LLMs.

🌐 Prompt Engineering Guide (Web Version)

🎉 We are excited to launch our new prompt engineering, RAG, and AI Agents courses under the DAIR.AI Academy. Join Now!

The courses are meant to compliment this guide and provide a more hands-on approach to learning about prompt engineering, context engineering, and AI Agents.

Use code PROMPTING20 to get an extra 20% off.

Happy Prompting!


Announcements / Updates

Join our Discord

Follow us on Twitter

Subscribe to our YouTube

Subscribe to our Newsletter


Guides

You can also find the most up-to-date guides on our new website https://www.promptingguide.ai/.


Lecture

We have published a 1 hour lecture that provides a comprehensive overview of prompting techniques, applications, and tools.


Running the guide locally

To run the guide locally, for example to check the correct implementation of a new translation, you will need to:

  1. Install Node >=18.0.0
  2. Install pnpm if not present in your system. Check here for detailed instructions.
  3. Install the dependencies: pnpm i next react react-dom nextra nextra-theme-docs
  4. Boot the guide with pnpm dev
  5. Browse the guide at http://localhost:3000/

Appearances

Some places where we have been featured:


If you are using the guide for your work or research, please cite us as follows:

@article{Saravia_Prompt_Engineering_Guide_2022,
author = {Saravia, Elvis},
journal = {https://github.com/dair-ai/Prompt-Engineering-Guide},
month = {12},
title = {{Prompt Engineering Guide}},
year = {2022}
}

License

MIT License

Feel free to open a PR if you think something is missing here. Always welcome feedback and suggestions. Just open an issue!

Prompt-Engineering-Guide (dair-ai/Prompt-Engineering-Guide)

Searching Database…

这是什么?这是 DAIR.AI 的《提示工程指南》:一个规模庞大、持续更新的合集,包含指南、论文、课程讲义和笔记本,涵盖提示工程技巧、上下文工程、检索增强生成(RAG),以及基于大语言模型(LLM)构建 AI 智能体。
这是一个软件工具,还是供阅读的指南和论文合集?它是一个参考文档网站,而不是软件库,是一组关于技巧、模型和论文的精选文章。该仓库还会把指南构建成基于 Next.js/Nextra 的网页应用,并以“Web Version”的名称在线发布。
初学者应该从指南的哪里开始?指南按编号分节组织。新手应先阅读“导论”和“LLM 设置”页面,然后再学习零样本、少样本和思维链(Chain-of-Thought)等提示技巧。
要在本地运行这份指南,需要准备什么特别的东西吗?只有想在本地运行网站时才需要,例如检查翻译。需要 Node >=18 和 pnpm,然后安装 Next.js/Nextra 依赖,并运行 pnpm dev。如果只是在线阅读指南,则无需任何准备。
内容会保持更新,并且有多种语言版本吗?项目仍在积极维护:学习者已超过 300 万人,新增了视频讲座,并支持 13 种语言,同时欢迎更多翻译,因此内容会持续扩充,而不会过时。
除了基础内容,指南还涵盖哪些主题?它深入介绍了零样本和少样本提示、思维链、思维树、ReAct、RAG 和函数调用等技巧,还包含针对 ChatGPT、GPT-4、LLaMA、Gemini、Mistral 和 Mixtral 的模型专项说明。
除了指南,是否还有视频讲座或付费课程?有。提供一节免费的 1 小时视频讲座,附带幻灯片和笔记本。另外,DAIR.AI Academy 还提供付费的提示工程、RAG 和 AI 智能体课程,可按自己的进度学习。
这份指南是否获得过外界的认可?它在 2023 年 2 月登上了 Hacker News 第一名,并获得了《华尔街日报》和《福布斯》的报道。
DAIR.AI 为什么要创建这份指南?由于开发者和研究人员都非常关注如何让大语言模型输出更可靠、能力更强的结果,DAIR.AI 创建了这份指南,将围绕提示的论文、技巧和工具整合在一起。
Creator
dair-ai
Size
80.8 MB
Stars
79.3K
Updated
CommitMar 11
Age
3y
Commits · 90 Days