- A lot of material on the internet for prompting has been focused on the chatGPT
web user interface
, which many people are using to do specific and often one-off tasks - The power of LLMs (Large Language Models), as a developer tool, that is using
API
calls - LLM APIs can enable developers to very quickly build software applications
- Prompting best practices for software development
- Some common
use cases
:- summarizing
- inferring
- transforming
- expanding
- Build a chatbot using an LLM
Base LLMs
: predicts next words, based on text training data (huge amount of text data from internet and another sources) to figure it out most likely word to follow- Ex :
what is the capital of France?
- What is France's largest city?
- What is France's population?
- What is the currency of France?
- Ex :
Instruction Tuned LLMs
:-
Tries to follow instructions.
-
Fine-tune on instructions(input/outputs) and good attempts at following those instructions
-
Uses Reinforcement Learning with Human Feedback (RLHF) technique
-
Trained to be : Helpful, Honest , Harmless, safe*
- Ex:
what is the capital of France?
- The capital of France is Paris
- Ex:
-
The 6 Prompt engineering strategies to get the best results from Large Language Models (LLMs):
- Write clear instructions
- Provide reference text
- Split complex tasks into simpler subtasks
- Give the model time to "think”
- Use external tools
- Test changes systematically
Main Course :
Model index for researchers - openai:
Generative Pre-trained Transformer Models :
-
GPT-1 : https://en.wikipedia.org/wiki/Generative_pre-trained_transformer
-
Codex :
-
InstructGPT (ChatGPT ancestor) :
GPT Best Practices - openai :
What are Generative AI models? - IBM
Cohere - Transform your products with LLMs : https://cohere.com/
Langchains : https://python.langchain.com/docs/get_started/introduction.html
huggingface - The AI community building the future - https://huggingface.co/
anthropic - AI research and products that put safety at the frontier https://www.anthropic.com/