Prompt Engineering in Large Language Models
Main Article Content
Abstract
Large language models enable task adaptation through contextual instructions rather than task-specific parameter updates. Proposes a unified taxonomy spanning contextual conditioning, reasoning elicitation, structural constraints, and interactive augmentation. Mathematical formulations describe inference, decoding, demonstration selection, reasoning aggregation, and resource-aware orchestration. A comparative evaluation protocol uses MMLU, GSM8K, and HumanEval to distinguish task correctness from computational cost and robustness. Published reasoning results are consolidated with a prospective cross-benchmark protocol designed for autoregressive foundation models. A multilayer enterprise architecture introduces deterministic validation, evidence verification, authorization, and bounded execution to address instruction manipulation, hallucination, bias, and uncontrolled external actions. The framework identifies research opportunities in automated prompt optimization, context compression, multimodal interfaces, and reproducible evaluation. A deterministic guardrail prototype is evaluated on 100 constructed mock action proposals; this component-level test does not measure language-model attack resistance. The survey further connects everyday instruction design with reusable engineering patterns for software development, education, and knowledge-intensive work. It establishes a common vocabulary for comparing prompt configurations across models and application domains. A prospective research agenda emphasizes transferable templates, controlled evaluation, and independently verifiable outputs.