Answering Questions in Stages: Prompt Chaining for Contract QA

Adam Roegiest, Radha Chitta
10/9/2024
cs.CLcs.CVcs.LG

No confident code implementation found for this paper.

Abstract

Finding answers to legal questions about clauses in contracts is an important form of analysis in many legal workflows (e.g., understanding market trends, due diligence, risk mitigation) but more important is being able to do this at scale. Prior work showed that it is possible to use large language models with simple zero-shot prompts to generate structured answers to questions, which can later be incorporated into legal workflows. Such prompts, while effective on simple and straightforward clauses, fail to perform when the clauses are long and contain information not relevant to the question. In this paper, we propose two-stage prompt chaining to produce structured answers to multiple-choice and multiple-select questions and show that they are more effective than simple prompts on more nuanced legal text. We analyze situations where this technique works well and areas where further refinement is needed, especially when the underlying linguistic variations are more than can be captured by simply specifying possible answers. Finally, we discuss future research that seeks to refine this work by improving stage one results by making them more question-specific.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{roegiest2024answering,
  title  = {Answering Questions in Stages: Prompt Chaining for Contract QA},
  author = {Adam Roegiest and Radha Chitta},
  year   = {2024},
  eprint = {2410.12840},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.12840v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.12840.svg)](https://codeofpaper.com/paper/2410.12840)

Discussion