Skip to main navigation Skip to search Skip to main content

Evaluation of Prompt Engineering for LLM-Based Construction Contract Risk Analysis

Research output: Contribution to journal › Article › peer-review

5 Downloads (Pure)

Abstract

Large Language Models (LLMs) show increasing potential for complex analytical tasks; however, their reliability in high-stakes domains such as construction contract interpretation remains insufficiently understood. This study presents a controlled, human-in-the-loop evaluation of how prompt-engineering strategies influence the quality and perceived reliability of LLM-generated risk analyses for New Engineering Contract NEC4-style clauses. Generative Pre-trained Transformer GPT-4.1 was applied in a deterministic configuration to identify contractor risks across six synthetic NEC4-style Z-clauses using five prompt strategies: baseline, direct, role-based, chain-of-thought, and guided prompting. Thirty outputs were evaluated under a blinded protocol against expert-derived reference risk lists by a mixed-expertise cohort, supporting exploratory comparison. Assessment combined descriptive quantitative analysis of Likert-scale ratings of accuracy, completeness, clarity, legal salience, and hallucination risk with qualitative thematic analysis.
Results indicate that guided, clause-anchored prompting produced more structured, legally grounded, and traceable outputs, whereas less constrained strategies exhibited narrative drift and weaker clause linkage. These findings suggest that structured prompting may support more consistent clause-level interpretation under controlled conditions, although conclusions remain bounded by the exploratory design, limited sample, and synthetic dataset.
The study contributes to understanding how prompt design shapes interpretability and verifiability in contract analysis. The Clause-Guided Human-in-the-Loop (CG-HITL) framework is presented as a conceptual approach to support structured use of LLMs in pre-award contract risk assessment.
Original languageEnglish
Article number04526066
JournalJournal of Legal Affairs and Dispute Resolution in Engineering and Construction
Volume19
Issue number1
DOIs
Publication statusPublished - 27 Sept 2026

Keywords

  • Large Language Models
  • Prompt Engineering
  • Contract Risk Detection

Cite this