Saved in:
Bibliographic Details
Main Authors: Darji, Harsh, Lutellier, Thibaud
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.21285
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909710007926784
author Darji, Harsh
Lutellier, Thibaud
author_facet Darji, Harsh
Lutellier, Thibaud
contents Large Language Models (LLMs) are increasingly used as coding assistants. However, the ambiguity of the developer's prompt often leads to incorrect code generation, as current models struggle to infer user intent without extensive prompt engineering or external context. This work aims to build an LLM-based coding assistant that mimics the human code review process by asking clarification questions when faced with ambiguous or under-specified queries. Our end-to-end system includes (1) a query classifier trained to detect unclear programming-related queries and (2) a fine-tuned LLM that generates clarification questions. Our evaluation shows that the fine-tuned LLM outperforms standard zero-shot prompting in generating useful clarification questions. Furthermore, our user study indicates that users find the clarification questions generated by our model to outperform the baseline, demonstrating that our coding assistant produces more accurate and helpful code responses compared to baseline coding assistants.
format Preprint
id arxiv_https___arxiv_org_abs_2507_21285
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Curiosity by Design: An LLM-based Coding Assistant Asking Clarification Questions
Darji, Harsh
Lutellier, Thibaud
Artificial Intelligence
Large Language Models (LLMs) are increasingly used as coding assistants. However, the ambiguity of the developer's prompt often leads to incorrect code generation, as current models struggle to infer user intent without extensive prompt engineering or external context. This work aims to build an LLM-based coding assistant that mimics the human code review process by asking clarification questions when faced with ambiguous or under-specified queries. Our end-to-end system includes (1) a query classifier trained to detect unclear programming-related queries and (2) a fine-tuned LLM that generates clarification questions. Our evaluation shows that the fine-tuned LLM outperforms standard zero-shot prompting in generating useful clarification questions. Furthermore, our user study indicates that users find the clarification questions generated by our model to outperform the baseline, demonstrating that our coding assistant produces more accurate and helpful code responses compared to baseline coding assistants.
title Curiosity by Design: An LLM-based Coding Assistant Asking Clarification Questions
topic Artificial Intelligence
url https://arxiv.org/abs/2507.21285