👩‍⚖️
LegalPromptGuide.com
  • Your FREE Guide to Mastering Legal Prompt Engineering with ChatGPT
  • 1. Introduction to Legal Prompt Engineering (LPE)
  • 2. Practical Prompt Engineering Strategies & Techniques
    • 2.1. Prompt Templates
      • 2.1.1. Summarization
      • 2.1.2. Classification
      • 2.1.3. Extraction
    • 2.2. Few-Example Prompting
  • 3. Real-world Applications of Prompt Engineering in Law
  • 4. Advanced Prompt Engineering
    • 4.1. Prompt Chaining
    • 4.2. Output Parsers
      • 4.2.1. Markdown
      • 4.2.2. HTML
      • 4.2.3. Graphviz (Dot Language)
    • 4.3. ChatGPT Plugins
    • 4.4. ChatGPT Code Interpreter
  • 5. AI Model Selection and Optimization for Legal Practice
  • 6. Implementing Responsible AI Usage at Your Law Firm
  • 7. Research Corner
    • 6.1. LLMs as Tax Attorneys
    • 6.2. Prompt Engineering for Legal Judgement Prediction
  • Appendix
    • Pro Tips!
      • Pro Tip #1
    • References
    • Change Log
Powered by GitBook
On this page
  1. 4. Advanced Prompt Engineering

4.4. ChatGPT Code Interpreter

Previous4.3. ChatGPT PluginsNext5. AI Model Selection and Optimization for Legal Practice

Last updated 1 year ago

Some folks on the internet (ourselves included) are calling OpenAI's Code Interpreter a "game changer" and "the next evolution of ChatGPT capabilities." ChatGPT, besides being able to write code like an experienced computer programmer, can now execute that code for you thanks to Code Interpreter. This paves the wave for you to complete more advanced use-cases for using ChatGPT. For example, an estate planning attorney can upload a template of a Trust contract and have ChatGPT fill it out using the clients information. Or, a tax attorney can upload a spreadsheet of a client's stock trades and have Code Interpreter calculate capital gains and other relevant figures and export the results. A paralegal can have a client intake form generated as a PDF in seconds. There are countless scenarios where legal professionals might find the capabilities of Code Interpreter useful in accomplishing different tasks.

For the more technical reader, here is how OpenAI described it in their announcement in July 2023...

An experimental ChatGPT model that can use , handle uploads and downloads.

We provide our models with a working , along with some ephemeral disk space. Code run by our interpreter plugin is evaluated in a persistent session that is alive for the duration of a chat conversation (with an upper-bound timeout) and subsequent calls can build on top of each other.

We support uploading files to the current conversation workspace and downloading the results of your work.

Let's go over one of the example use-cases we mentioned above using Code Interpreter. We previously used ChatGPT plugins to be able to upload a PDF and have ChatGPT answer questions and extract information from the document.

In this example we'll have Code Interpreter generate a downloadable PDF of a client intake form commonly sent to new clients of law firms.