[Paper Review] Exploring Prompt Engineering Practices in the Enterprise
The study analyzes 57 enterprise prompt-editing sessions to understand how practitioners iteratively refine prompts and which components and edits are most common, with implications for tooling and design.
Interaction with Large Language Models (LLMs) is primarily carried out via prompting. A prompt is a natural language instruction designed to elicit certain behaviour or output from a model. In theory, natural language prompts enable non-experts to interact with and leverage LLMs. However, for complex tasks and tasks with specific requirements, prompt design is not trivial. Creating effective prompts requires skill and knowledge, as well as significant iteration in order to determine model behavior, and guide the model to accomplish a particular goal. We hypothesize that the way in which users iterate on their prompts can provide insight into how they think prompting and models work, as well as the kinds of support needed for more efficient prompt engineering. To better understand prompt engineering practices, we analyzed sessions of prompt editing behavior, categorizing the parts of prompts users iterated on and the types of changes they made. We discuss design implications and future directions based on these prompt engineering practices.
Motivation & Objective
- Understand how practitioners in an enterprise context iteratively edit prompts during LLM prompting sessions.
- Identify which prompt components are most frequently edited and what types of edits are applied.
- Analyze how prompt editing behavior relates to model switching, context usage, and task instructions to inform tooling design.
Proposed method
- Collect and anonymize data from an internal enterprise LLM prompting platform used by 1,712 users over a ~3-week period.
- Segment prompt edits into sessions using breaks of at least 20 minutes between records.
- Conduct qualitative analysis on 57 sessions (1,523 edits) to label edits by prompt component and edit type, with inter-rater reliability checks.
- Develop a codebook for prompt components (e.g., instruction, context, labels) and edit types (e.g., modified, added, changed, removed, formatted).
- Assess rollbacks (undo/redo) and session use cases to understand durability and outcomes of edits.
Experimental results
Research questions
- RQ1What prompt components do enterprise practitioners most frequently edit during prompting sessions?
- RQ2What types of edits (e.g., modification, addition) do users apply, and how do these edits affect prompt meaning?
- RQ3How do editing patterns relate to model switching and parameter changes in enterprise prompting environments?
- RQ4What implications do editing practices have for designing tooling to support prompt engineering in organizations?
Key findings
- Prompt editing sessions tend to be lengthy, with a mean of 43.4 minutes per session and a median of 39 minutes.
- The mean time spent editing a prompt between submissions was 47 seconds (median 32 seconds).
- 93% of sessions involved one or more inference parameter changes, with the target language model being the most commonly changed parameter.
- On average, sessions used 3.6 models (SD=2.7; median=3), indicating frequent model switching within prompts.
- The most common edit type was modification (maintaining meaning) followed by additions and changes in meaning; context and task instructions were the most edited components.
- 22% of edits were multi-edits applied before resubmission, with 68% of multi-edits including at least one context edit and 45% including both context and instruction edits.
- 11% of edits were rollbacks (undo/redo), with higher rollback rates for certain components such as handle-unknown and output-length.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.