---
title: Prompt Engineering
description: Page on Vedang Vatsa's site: https://veda.ng/glossary/prompt-engineering
canonical: https://veda.ng/glossary/prompt-engineering
last_updated: 2026-09-22
type: text/markdown
---
# Prompt Engineering

Source: https://veda.ng/glossary/prompt-engineering
Author: Vedang Vatsa (https://veda.ng/about)

Prompt engineering is the craft of designing inputs to AI systems to produce desired outputs. It became required for working with Large Language Models because LLMs are statistical machines that respond to the structure, context, and framing of your input. An effective prompt specifies context, format requirements, constraints, and sometimes examples of what you want.

Ask an LLM "Analyze this text" and you get a vague dump. Ask "Analyze this text and identify three main arguments, format as bullet points, assume the reader is a technical expert" and you get a usable answer. The difference is the prompt, not a new model. LLMs learn patterns about how language typically flows. When you structure a prompt like a template or example, you prime the model to follow that pattern.

Chain-of-thought prompting, where you ask the model to explain its reasoning step by step, produces more accurate results than direct answers. Zero-shot prompting asks the model to perform tasks it wasn't explicitly trained on, yet it succeeds because of learned patterns. Few-shot prompting provides examples before the actual task, greatly improving performance. Prompt engineering is a temporary skill. As models improve, raw capability increases and the need for clever prompting decreases. For now, it is the difference between mediocre results and exceptional ones from LLMs. OpenAI's own prompt guide says to be specific about format, constraints, and examples. Chain-of-thought and few-shot prompting are documented there as standard methods.

Glossary index: https://veda.ng/glossary