This article explores the concept of using Interrogatory LLMs to gather detailed context and requirements for complex tasks, including system design. It discusses how an LLM can interview a human to build a comprehensive context document or validate an existing specification, streamlining the initial phases of architectural planning and documentation.
Read original on Martin FowlerThe initial phases of system design often require a significant amount of context gathering. This includes understanding user requirements, implementation guidelines, and interactions with external systems. Traditionally, this is a human-intensive process, involving writing detailed specifications and conducting interviews. Martin Fowler's 'Interrogatory LLM' concept proposes an alternative where an LLM acts as an interviewer to extract this crucial information.
An Interrogatory LLM can be prompted to ask a human user a series of questions to build a comprehensive context report. This report can then serve as input for subsequent design stages, potentially fed to another LLM for further processing or used directly by human designers. A key insight from Harper Reed's approach, cited in the article, is to instruct the LLM to ask only one question at a time, which can improve the quality and structure of the gathered information.
Beyond generating new context, Interrogatory LLMs can also be used to validate existing documentation, such as software specifications. Instead of asking a human expert to passively read and review a document, the LLM can interview the expert, prompting them with questions derived from the document to assess its accuracy and completeness. This interactive approach can be more effective, especially for poorly written or complex specifications, as it leverages conversation to clarify ambiguities.
Architectural Implications
Integrating Interrogatory LLMs into a software development lifecycle can significantly improve the efficiency and quality of requirements gathering and documentation. This can lead to more robust system designs by ensuring a clearer understanding of the problem space and reducing misinterpretations early in the process.
The article suggests that while some may find the 'AI-writing' style unappealing, the ability to extract critical information from individuals who struggle with traditional writing methods outweighs the stylistic concerns. This technique has broad applicability beyond LLM-specific workflows, offering a novel method for knowledge transfer within engineering teams and for initial system conceptualization.