Generative AI: What is a Prompt
What is a prompt
The definition of prompt is “to cause someone to say or do something”.
Similarly, in Generative AI, prompts are simply instructions given to artificial intelligence. They are in the form of input commands (text). And these commands request specific actions from Generative AI. In other words, prompts are the way humans and Gen AI interact and communicate.
Let’s simplify all this.
- AI refers to artificial intelligence
- Artificial intelligence gives machines intelligence through algorithms, data, and computing power.
- Generative AI is a type of AI, dealing with the generation of data types (e.g. text, images, video, etc.).
- Powerful Large Language Models (LLMs) enable Gen AI to function.
- These models use deep learning (DNNs) algorithms and natural language processing (NLP)
- Prompts are requests between the user and the LLM model.
A prompt can be text, questions, examples, instructions, code, and data.
Some examples of prompts:
- “Write a love poem”
- “What are the benefits of blueberries and how often do I need to consume them”
- “Generate an image of London 50 years ago”
- One of our customers complains about the quality of our products. Respond politely and offer solutions to the problem.
- “Create a short story about humans and aliens in 1 paragraph.”
- “How to calculate the profit and loss from the statement below.”
- “Write a basic calculator code in Python.
What is prompt engineering
The term prompt engineering refers to the process of effective interacting with the Generative AI application. This means that the prompt engineer needs to apply knowledge and creative skills in order to increase the quality and relevancy of the generated output.
The concept of prompt engineering is extremely important, as the right implementation and optimisation can create a huge difference in the application’s performance. Prompt engineers design, test, and refine prompts. They also analyse and monitor prompt performance, in order to identify potential improvements.
Next: Explainable AI (XAI)