Prompt Engineering is a technique used to interact effectively with an AI system, like ChatGPT, to get the best possible answers or outputs. Think of it as crafting the "perfect question" or instruction to guide the AI in giving you the right response.
What is an AI prompt?
An artificial intelligence (AI) prompt is a mode of interaction between a human and a large language model that lets the model generate the intended output. This interaction can be in the form of a question, text, code, snippets or examples.
Here are some tips on how to get started.
Imagine you're asking a friend for help. If ou give vague instructions, they might not know exactly what you need. For example:
Prompt engineering works the same way with AI. The way you phrase your question or instruction affects the AI's answer. Therefore, be specific!
Why is it important?
It is important to note the following:
Examples for students:
Let's say you're researching climate change. Compare these two prompts:
Simple: "Tell me about climate change."
Output: A generic overview.
Improved: "Explain how climate change affects marine life, focusing on corla reefs and fish populations."
Output: Detailed, focused, and relevant.
What are AI "hallucinations"?
AI hallucinations occur when a generative AI model produces outputs that are incorrect, fabricated, or non-sensical while appearing plausible or confident in the output. These outputs are not based on the training data or logical reasoning.
Causes:
It has been found that an AI tool can make up historical events or scientific facts. AI tools can fabricate details about a topic it was queried on.
Implications:
Example of a "hallucination":
If asked for sources on "neural networks", the AI might generate:
Smith, J., & Doe, A. (2015). Advances in Neural Networks. Journal of Computational Science, 45(7), 234-245.
Check the authors. Article title might exist. Journal title does exist. Reference completely incorrect and fabricated!
Correct reference:
Smith, JL. (2020). Advances in Neural Networks and potential for their application to steel metallurgy. Materials Science and Technology, 36(17): 1805-1819.