https://github.com/makstyle119/prompt-engineering
https://github.com/makstyle119/prompt-engineering
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/makstyle119/prompt-engineering
- Owner: makstyle119
- Created: 2025-01-31T21:49:25.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-02-02T14:26:27.000Z (4 months ago)
- Last Synced: 2025-02-09T07:23:41.778Z (3 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prompt Engineering
this is my journey to learn and understand Prompt Engineering
# Question & Answer
**Q1- what is Prompt Engineering ?**
**A1- Prompt Engineering** is a new to writing, refining and optimizing prompts in a structured way.
- **Responsibilities:**
- write, refine and optimize prompts
- perfect the interaction between humans and AI
- continuous monitor those prompts
- maintain an up to date prompt library**Q2- what is AI - (Artificial Intelligence) ?**
**A2- AI - (Artificial Intelligence)** is the simulation of human intelligence processes by a machine.**Q3- what is ML - (Machine Learning) ?**
**A3- ML - (Machine Learning)** is the process AI uses to learn and improve from experience without being explicitly programmed.**Q4- what is Linguistics ?**
**A4- Linguistics** is the study of language (it's the key of prompt engineering).
- consist of 10 things:
1. Phonetics
- The study of how speech sounds are produced and perceived
2. Phonology
- The study of sound patterns and changes
3. Morphology
- The study of word structure
4. Syntax
- The study of sentence structure
5. Semantics
- The study of linguistic meaning
6. Pragmatics
- The study of how language is used in context
7. historical
- The study of language change
8. Sociolinguistics
- The study of the relation between language and society
9. Computational
- The study of how computers can process human language
10. Psycholinguistics
- The study of how humans acquire and use language**Q5- what is a Language Model ?**
**A5- Language Model** is a smart program which train on books, articles and other source of texts to generate human like conversation/text/story.
It work something like this:
- you give a sentence as input
- it will analyze the sentence as per grammar rules, order of words and other things
- and it will generate a continuation of the sentence as per it's training**Q6- what is a Prompt ?**
**A6- Prompt** is a string of text that is used as input to a language model. It is used to guide the language model's output.**Q7- what is a Prompt Library ?**
**A7- Prompt Library** is a collection of prompts that are used to guide the language model's output.
- it is a collection of prompts that are used to guide the language model's output.**Q8- what is Zero Shot Prompt ?**
**A8- Zero Shot Prompt** is asked to solve a task or problem without any specific instruction/preparation.**Q9- what is Few Shot Prompt ?**
**A9- Prompt Library** is a collection of prompts that are used to guide the language model's output.**Q10- what is AL Hallucination ?**
**A10- AL Hallucination** is a type of hallucination that is caused by the language model.
- it happens when the language model generates a response that is not related to the input prompt.
- it happens because the language model is not trained on the input prompt.# Steps
1. Clear Instructions
- make sure you provide clear instruction about what you need and what you don't need
2. Adopt a persona
- give AI a persona that is relevant to the task/project/person you are working on
3. Specify the format
- specify the format of the output
4. Avoid leading the Answer
5. Limit the scope# History
## Eliza
- An early natural language processor (1964 to 1966)
- by Joseph Weizenbaum at MIT## SHRDLU
- Another early natural language processor (1968 to 1969)
- by Terry Winograd at MIT## GPT (Generative Pre-trained Transformer)
- A large language model (2018 to present)
- by OpenAI## Resources
I start my journey using this cool stuff so shout to them:
- Prompt Engineering Tutorial - Master ChatGPT and LLM Responses by
freeCodeCamp.org
from **Q1** to **010**