A Search for Prompts: Generating Structured Answers from Contracts

Adam Roegiest, Radha Chitta, Jonathan Donnelly, Maya Lash, Alexandra Vtyurina +1 more
10/16/2023
cs.CV

No confident code implementation found for this paper.

Abstract

In many legal processes being able to action on the concrete implication of a legal question can be valuable to automating human review or signalling certain conditions (e.g., alerts around automatic renewal). To support such tasks, we present a form of legal question answering that seeks to return one (or more) fixed answers for a question about a contract clause. After showing that unstructured generative question answering can have questionable outcomes for such a task, we discuss our exploration methodology for legal question answering prompts using OpenAI's \textit{GPT-3.5-Turbo} and provide a summary of insights. Using insights gleaned from our qualitative experiences, we compare our proposed template prompts against a common semantic matching approach and find that our prompt templates are far more accurate despite being less reliable in the exact response return. With some additional tweaks to prompts and the use of in-context learning, we are able to further improve the performance of our proposed strategy while maximizing the reliability of responses as best we can.

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{roegiest2023search,
  title  = {A Search for Prompts: Generating Structured Answers from Contracts},
  author = {Adam Roegiest and Radha Chitta and Jonathan Donnelly and Maya Lash and Alexandra Vtyurina and François Longtin},
  year   = {2023},
  eprint = {2310.10141},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.10141v1}
}

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/2310.10141.svg)](https://codeofpaper.com/paper/2310.10141)

Discussion