Prompt-Engineering-Guide  by dair-ai

Prompt engineering resource for language model (LLM) applications

Created 2 years ago
61,987 stars

Top 0.4% on SourcePulse

GitHubView on GitHub
Project Summary

This repository provides a comprehensive, community-driven guide to prompt engineering for Large Language Models (LLMs). It targets researchers and developers seeking to understand and leverage LLMs effectively, offering a curated collection of papers, guides, lectures, and tools to improve LLM performance across various tasks.

How It Works

The guide is structured as a collection of markdown files, organized into logical sections covering fundamental concepts, advanced techniques, applications, model specifics, and risks. It emphasizes practical application through examples, code notebooks, and case studies, aiming to demystify LLM interaction and unlock their full potential.

Quick Start & Requirements

To run the guide locally for development or translation checks:

  • Install Node.js >= 18.0.0.
  • Install pnpm (package manager).
  • Run pnpm i to install dependencies.
  • Start the local server with pnpm dev.
  • Access the guide at http://localhost:3000/.

Highlighted Details

  • Extensive coverage of prompt engineering techniques, including Chain-of-Thought, Tree of Thoughts, and Retrieval Augmented Generation.
  • Detailed sections on specific LLMs like GPT-4, LLaMA, and Gemini.
  • Includes a video lecture, code notebooks, and a web version of the guide.
  • Features a "Prompt Hub" for classification, coding, creativity, and more.

Maintenance & Community

The project is actively maintained by Elvis Saravia and welcomes community contributions via pull requests and issues. It has a Discord server, Twitter presence, and a YouTube channel for updates and engagement.

Licensing & Compatibility

The project is licensed under the MIT License, permitting commercial use and integration into closed-source projects.

Limitations & Caveats

While comprehensive, the guide is a rapidly evolving field. Some techniques or model information may become outdated as LLM research progresses. The "Prompt Engineering for LLMs" courses are paid offerings.

Health Check
Last Commit

2 weeks ago

Responsiveness

1+ week

Pull Requests (30d)
4
Issues (30d)
4
Star History
1,228 stars in the last 30 days

Explore Similar Projects

Starred by Peter Norvig Peter Norvig(Author of "Artificial Intelligence: A Modern Approach"; Research Director at Google), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
2 more.

Hands-On-Large-Language-Models by HandsOnLLM

1.4%
16k
Code examples for "Hands-On Large Language Models" book
Created 1 year ago
Updated 1 month ago
Feedback? Help us improve.