Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/BrightPool/prompt-engineering-for-generative-ai-examples


https://github.com/BrightPool/prompt-engineering-for-generative-ai-examples

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

# Prompt Engineering for Generative AI

[Prompt Engineering for Generative AI](https://www.oreilly.com/library/view/prompt-engineering-for/9781098153427/) is a comprehensive guide co-authored for O'Reilly, focusing on the art of prompt engineering for GPT-4, Stable Diffusion and other generative AI models. Dive deep into the world of prompt engineering and LLMs (large language models) with our book, which is your ultimate resource for mastering the techniques and methodologies in this rapidly evolving field.

Purchase the book:
- [Amazon - Paperback](https://www.amazon.co.uk/Prompt-Engineering-Generative-Ai-Future-proof/dp/109815343X/ref=sr_1_1?crid=GCADXJG08RP5&dib=eyJ2IjoiMSJ9.ZSvcKTX5SFS6pDUHoM26zT1XOCBCU41uPWn3nIoQbatOL6E9vqTDCv25N19V8lVzC9F3_vO20dFDAnEmWJczBc4GC19QqU4pRNHOn2v7ITRwsonOn9Yfx9A6Ol_deDdxuhfvS0p11WVJGaVGslYm7veK6_O0UYat2UhfcRjxBWD3iP6jmP6vjit845PyGK0cxbWJEJbnDg-0IQNqfSzhu4v8_m2rQrCMUGK7WE6nsrU.98ZGTw98P7ogymFCeXBvWJzQkdq-4xD9AAViRAlvRkU&dib_tag=se&keywords=prompt+engineering+for+generative+ai&qid=1709301926&sprefix=prompt+engineering+%2Caps%2C82&sr=8-1)


Prompt Engineering for Generative AI

## Installation

In order to ensure compatibility and stability, this project uses specific versions of libraries, tailored for Python version `3.9.12`. Given the rapid advancements in Large Language Models (LLMs) and AI frameworks, this version locking helps maintain a consistent and error-free environment.

There is a [requirements.txt](requirements.txt) file that contains all of the dependencies for the project. To install them, run the following command:

```bash
pip install -r requirements.txt
```

If you would prefer to use a virtual environment, you can create one with the following command:

```bash
python -m venv venv
```

Then, activate the virtual environment:

```bash
source venv/bin/activate
```

Finally, install the dependencies:

```bash
pip install -r requirements.txt
```

## Content

Access all of the jupyter notebooks and python files within the [content](content) folder.

## Table of Contents

- _Chapter 1: Five Pillars of Prompting_
- Giving Direction
- Specifying Format
- Providing Examples
- Evaluating Quality
- Dividing Labor

- _Chapter 2: Intro to Text Generation Models_
- What are LLMs?
- OpenAI’s GPT-4
- Google’s Bard
- ... and more

- _Chapter 3: Standard Practices for Text Generation_
- List Generation
- Explain It Like I’m Five
- ... and more

- _Chapter 4: Advanced Techniques for Text Generation with Langchain_
- Introduction to Langchain
- Prompt Templates
- ... and more

- _Chapter 5: Vector Databases_
- What are Vector Databases?
- What are Embeddings?
- ... and more

- _Chapter 6: Autonomous Agents with Memory and Tools_
- Agents
- Callbacks
- ... and more

- _Chapter 7: Intro to Diffusion Models for Image Generation_
- What are Diffusion models?
- OpenAI’s DALL-E
- ... and more

- _Chapter 8: Standard Practices for Image Generation_
- Art Style Modifiers
- Meme Unbundling
- ... and more

- _Chapter 9: Advanced Techniques for Image Generation_
- Prompt Expansion
- Meme Mapping
- ... and more

- _Chapter 10: Building AI-powered Applications_
- Progressive Text Summarization with Langchain
- Blog Article Generation
- ... and more

## Features

- _Practical Examples_: Illustrative real-world examples to showcase prompt engineering techniques.
- _In-depth Analysis_: Comprehensive coverage of each topic, offering foundational knowledge and advanced insights.
- _Expert Guidance_: Insights from leading experts in AI and prompt engineering.

## Audience

Ideal for AI Researchers, Data Scientists, Software Developers, Tech Enthusiasts, and anyone interested in AI and prompt engineering.

## Feedback

Your feedback is valuable! Please share your thoughts and suggestions at [[email protected]](mailto:[email protected]) or [[email protected]](mailto:[email protected])