The role of prompt engineering in enhancing LLMs: a systematic review of applications and ethical implications
Abstract
Large language models (LLMs) have transformed natural language processing (NLP), demonstrating exceptional proficiency in tasks such as text generation, translation, and summarization. However, LLMs are prone to generating biased, inaccurate, or contextually irrelevant outputs, posing significant risks in high-stakes domains such as healthcare, legal reasoning, and engineering. This paper systematically investigates the role of prompt engineering as a solution to these challenges. By strategically designing inputs, prompt engineering enhances LLM performance, yielding more accurate, contextually relevant, and ethically aligned outputs. Advanced techniques, including chain-of-thought (CoT) prompting and retrieval augmented generation (RAG), are examined for their ability to improve reasoning capabilities, reduce errors, and mitigate bias. CoT prompting facilitates structured, stepwise reasoning, while RAG incorporates real-time data, ensuring output accuracy in rapidly evolving fields. In addition, we present a novel comparative perspective on these techniques, highlighting their distinct strengths and limitations across specialized applications such as healthcare diagnostics and scientific data extraction. The findings demonstrate that sophisticated prompt engineering significantly elevates the reliability and precision of LLM outputs, while addressing critical ethical concerns such as data privacy, bias, and hallucination. These insights underscore the necessity of advanced prompt design in optimizing LLMs for high-impact applications, ensuring both performance and ethical integrity.
Keywords
Bias mitigation; Chain-of-thought prompting; Data privacy; Ethical artificial intelligence; Large language models; Prompt engineering; Retrieval-augmented generation
Full Text:
PDFDOI: http://doi.org/10.11591/ijai.v15.i2.pp1071-1086
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 Izzul Fatawi, Muhammad Roil Bilad, Muhammad Asy’ari

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
IAES International Journal of Artificial Intelligence (IJ-AI)
ISSN/e-ISSN 2089-4872/2252-8938
This journal is published by the Institute of Advanced Engineering and Science (IAES).