This repository contains a starter python notebook to get one started with basic Prompt engineering using OpenAI's GPT3 models. This accompanies the medium blog: An Introduction to Prompt Engineering for OpenAI GPT LLMs
-
Create a new environment using conda
conda create -n genai python=3.10
-
intall required packages
pip install -r requirements.txt
You also need to create couple of api keys
- OpenAI Api Key - signup and generate one here - https://platform.openai.com/signup
- SerpApi Key - Setup Search capability to be able to search using Google and various other services. Visit this link and follow instructions to create an api key - https://serpapi.com/
One of the example uses Sqlite database - chinook, a database representing a digital media store, including tables for artists, albums, media tracks, invoices and customers.
- Chain of Thoughts Prompting - https://arxiv.org/pdf/2201.11903.pdf
- Self Consistency Prompting - https://arxiv.org/pdf/2203.11171.pdf
- ReAct - Reason and Act prompting - https://arxiv.org/pdf/2210.03629.pdf
- PAL - Program aided Language Models - https://arxiv.org/pdf/2211.10435.pdf
- MRKL Systems - Modular Reasoning, Knowledge and Language - https://arxiv.org/pdf/2205.00445.pdf
- Self Ask with Search - https://arxiv.org/pdf/2210.03350.pdf