[Something Cool]

Not a Well-Known Member
Joined
May 6, 2012
Messages
888
Reputation
250
Daps
2,926
Reppin
exorbitant legal fees
I was curious and took a look at it and Chat GPT is only good for busy work in its current iteration. Think basic templates for Wills & Trust Agreements or Operating Agreements for LLCs. It can give you a template to work off of, but you still HAVE to do most of the heavy lifting to tailor it to your client.

You’re a fukking fool if you use it for briefing and submitting anything to the court or opposing counsel to scrutinize though. It’s not going to give you a properly nuanced argument or do anything useful for litigation strategy. To me that shyt is malpractice.
 

Wargames

One Of The Last Real Ones To Do It
Joined
Apr 1, 2013
Messages
23,378
Reputation
4,010
Daps
87,038
Reppin
New York City
I was curious and took a look at it and Chat GPT is only good for busy work in its current iteration. Think basic templates for Wills & Trust Agreements or Operating Agreements for LLCs. It can give you a template to work off of, but you still HAVE to do most of the heavy lifting to tailor it to your client.

You’re a fukking fool if you use it for briefing and submitting anything to the court or opposing counsel to scrutinize though. It’s not going to give you a properly nuanced argument or do anything useful for litigation strategy. To me that shyt is malpractice.
I think it could make legal memos and demand letters.

Anything that has to go in front a judge….. you would be crazy to leave to it at the current level, but I think it could get there eventually too.
 

[Something Cool]

Not a Well-Known Member
Joined
May 6, 2012
Messages
888
Reputation
250
Daps
2,926
Reppin
exorbitant legal fees
I think it could make legal memos and demand letters.

Anything that has to go in front a judge….. you would be crazy to leave to it at the current level, but I think it could get there eventually too.
Right. I think it will too since we are talking exponential progress with these LLMs with each iteration. I still don't know what it can do for your more real-time litigation issues - it obviously can't take depositions for you, guide you through meet and confers with Opposing Counsel, give oral arguments, or craft novel legal strategies for discovery or trial prep. Yet. :lupe:
 

Professor Emeritus

Veteran
Poster of the Year
Supporter
Joined
Jan 5, 2015
Messages
49,529
Reputation
19,103
Daps
197,141
Reppin
the ether
I was curious and took a look at it and Chat GPT is only good for busy work in its current iteration. Think basic templates for Wills & Trust Agreements or Operating Agreements for LLCs. It can give you a template to work off of, but you still HAVE to do most of the heavy lifting to tailor it to your client.

You’re a fukking fool if you use it for briefing and submitting anything to the court or opposing counsel to scrutinize though. It’s not going to give you a properly nuanced argument or do anything useful for litigation strategy. To me that shyt is malpractice.


The only time I've ever tried to use it was to improve a blog entry for a work project. It didn't go well at all - the entry it came up with was way more interesting than my own, but half the shyt it said was completely fabricated and it also used a tone at times that was unacceptable for the audience.

I was surprised that it made up so much shyt, considering that I had already given it the entire blog post as starting material. I only wanted it to improve the writing. I'm sure that with a longer series of prompts I could have gotten something closer to what I needed if I knew what I was doing, but didn't feel like going in that direction yet.
 

Wargames

One Of The Last Real Ones To Do It
Joined
Apr 1, 2013
Messages
23,378
Reputation
4,010
Daps
87,038
Reppin
New York City
The only time I've ever tried to use it was to improve a blog entry for a work project. It didn't go well at all - the entry it came up with was way more interesting than my own, but half the shyt it said was completely fabricated and it also used a tone at times that was unacceptable for the audience.

I was surprised that it made up so much shyt, considering that I had already given it the entire blog post as starting material. I only wanted it to improve the writing. I'm sure that with a longer series of prompts I could have gotten something closer to what I needed if I knew what I was doing, but didn't feel like going in that direction yet.
They fixed this issue with GPT agents. You can limit the knowledge the AI uses and it will confess it doesn’t know if the limited data sets doesn’t give it additional information. Right now it’s limited to a data pool of 10 pdfs totaling I don’t know how many MBs. I haven’t stressed test it yet. I tried to put a specific case, source documents, blue book and a pdf of the cases I wanted to cite for a memo and it was alright acting as a source I could ask questions from as I wrote the memo.

It’s baby steps, but it’s getting there. The biggest change is the ability to force it to use only the data you add. I said this before but I would be a lot more scared if I was a paralegal… or if I was a paralegal I would be taking classes on how to use AI and add it to my resume.
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
45,542
Reputation
7,433
Daps
136,939
I was curious and took a look at it and Chat GPT is only good for busy work in its current iteration. Think basic templates for Wills & Trust Agreements or Operating Agreements for LLCs. It can give you a template to work off of, but you still HAVE to do most of the heavy lifting to tailor it to your client.

You’re a fukking fool if you use it for briefing and submitting anything to the court or opposing counsel to scrutinize though. It’s not going to give you a properly nuanced argument or do anything useful for litigation strategy. To me that shyt is malpractice.
I think it could make legal memos and demand letters.

Anything that has to go in front a judge….. you would be crazy to leave to it at the current level, but I think it could get there eventually too.


Use Cases of ChatGPT for Lawyers
ChatGPT can be used by lawyers in a variety of ways, such as:

1. Researching Legal Cases
ChatGPT can assist lawyers in quickly researching legal cases and statutes, providing them with relevant information and insights in a matter of seconds.

Prompt: “Provide information on [legal case name]”

2. Drafting Legal Documents
Lawyers can use ChatGPT prompts to quickly draft legal documents, such as contracts, wills, and power of attorney forms, saving them time and effort in the document preparation process.

Prompt: “Write a demand letter between [party 1] and [party 2] for [consideration] for [Injuries] in [jurisdicton]”

3. Answering Client Questions
Lawyers are often faced with a variety of questions from clients, ranging from basic legal information to more complex legal issues. In order to effectively and efficiently assist clients, lawyers can use ChatGPT prompts to help answer these questions.

Prompt: “What are the options for [legal issue]?”

4. Forms and Waivers
Lawyers can use ChatGPT to draft common legal forms and waivers, such as liability waivers and demand letters, without having to spend time creating them from scratch.

Prompt: “Draft a liability waiver for [service/product] with [terms/conditions]”

5. Contract Review
Lawyers can use ChatGPT to review contracts and provide insights into important terms and conditions, without having to spend hours reading through complex legal language.

Prompt: “Please review the following contract and provide me with a summary of its purpose, the three most crucial terms, the duration of the contract, and what the consideration for the contract is: [copy and paste contract]”



openai has been crippling it's functionality in certain domains months ago

 

[Something Cool]

Not a Well-Known Member
Joined
May 6, 2012
Messages
888
Reputation
250
Daps
2,926
Reppin
exorbitant legal fees

Use Cases of ChatGPT for Lawyers
ChatGPT can be used by lawyers in a variety of ways, such as:

1. Researching Legal Cases
ChatGPT can assist lawyers in quickly researching legal cases and statutes, providing them with relevant information and insights in a matter of seconds.

Prompt: “Provide information on [legal case name]”

2. Drafting Legal Documents
Lawyers can use ChatGPT prompts to quickly draft legal documents, such as contracts, wills, and power of attorney forms, saving them time and effort in the document preparation process.

Prompt: “Write a demand letter between [party 1] and [party 2] for [consideration] for [Injuries] in [jurisdicton]”

3. Answering Client Questions
Lawyers are often faced with a variety of questions from clients, ranging from basic legal information to more complex legal issues. In order to effectively and efficiently assist clients, lawyers can use ChatGPT prompts to help answer these questions.

Prompt: “What are the options for [legal issue]?”

4. Forms and Waivers
Lawyers can use ChatGPT to draft common legal forms and waivers, such as liability waivers and demand letters, without having to spend time creating them from scratch.

Prompt: “Draft a liability waiver for [service/product] with [terms/conditions]”

5. Contract Review
Lawyers can use ChatGPT to review contracts and provide insights into important terms and conditions, without having to spend hours reading through complex legal language.

Prompt: “Please review the following contract and provide me with a summary of its purpose, the three most crucial terms, the duration of the contract, and what the consideration for the contract is: [copy and paste contract]”



openai has been crippling it's functionality in certain domains months ago


Right. These are all examples of very basic legal tasks, as someone stated earlier, it's basically paralegal work. Now I wouldn't just rely on work from a paralegal that I basically don't know without checking it first. That's how I approach these Large Language Models in their current state. It can do a lot of things that lawyers would use templates for. Can it draft a basic indemnification clause? Sure. Can it draft a strategy for conducting discovery - I wouldn't trust it at all just yet. It definitely can be a timesaving tool, but I wouldn't trust it with anything high stakes. Hell, medium stakes for that matter. For instance, would you take tax advice from it?
 
Last edited:

bnew

Veteran
Joined
Nov 1, 2015
Messages
45,542
Reputation
7,433
Daps
136,939
Right. These are all examples of very basic legal tasks, as someone stated earlier, it's basically paralegal work. Now I wouldn't just rely on work from a paralegal that I basically don't know without checking it first. That's how I approach these Large Language Models in their current state. It can do a lot of things that lawyers would use templates for. Can it draft a basic indemnification clause? Sure. Can it draft a strategy for conducting discovery - I wouldn't trust it at all just yet. It definitely can be a timesaving tool, but I would trust it with anything high stakes. Hell, medium stakes for that matter. For instance, would you take tax advice from it?

it depends on the tax advice given but i regularly verify what LLM's tell me even when they provide external links. in a year or two i wouldn't be surprised if a local multi-modal model is capable of having larger input tokens and context window to do tax preparation. i mean it's probably possible to do it now with chatgpt API since filing taxes online will be trialed with a few states. someone will develop a solution,
 

Micky Mikey

Veteran
Supporter
Joined
Sep 27, 2013
Messages
14,598
Reputation
2,581
Daps
79,474
This won't be a problem in the very near future. Soon LLM's like ChatGPT will be far more reliable. This is one of the major things keeping LLMs from being widely adopted.
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
45,542
Reputation
7,433
Daps
136,939

Allen & Overy rolls out AI contract negotiation tool in challenge to legal industry​


Law firm works with Microsoft and AI start-up Harvey in attempt to ‘disrupt the legal market before someone disrupts us’

https%3A%2F%2Fd1e00ek4ebabms.cloudfront.net%2Fproduction%2F6d0e4281-9196-4ead-98f8-572f1d0594e8.jpg


Allen & Overy has developed a service that draws on existing templates for contracts to draft new agreements that lawyers can then amend or accept © Robert Evans/Alamy

Cristina Criddle and Suzi Ring in London


YESTERDAY

177Print this page

Allen & Overy has created an artificial intelligence contract negotiation tool, as the magic circle law firm pushes forward with technology that threatens to disrupt the traditional practices of the legal profession.

The UK-headquartered group, in partnership with Microsoft and legal AI start-up Harvey, has developed the service which draws on existing templates for contracts, such as non-disclosure agreements and merger and acquisition terms, to draft new agreements that lawyers can then amend or accept.

The tool, known as ContractMatrix, is being rolled out to clients in an attempt to drive new revenues, attract more business and save time for in-house lawyers. A&O estimated it would save up to seven hours in contract negotiations.

More than 1,000 A&O lawyers are already using the tool, with five unnamed clients from banking, pharma, technology, media and private equity signed up to use the platform from January.

In a trial run, Dutch chipmaking equipment manufacturer ASML and health technology company Philips said they used the service to negotiate what they called the “world’s first 100 per cent AI generated contract between two companies”.

The legal sector is grappling with the rise of generative AI — technology that can review, extract and write large passages of humanlike text — which could result in losses of jobs and revenues by reducing billable hours and entry-level work for junior staff.

But David Wakeling, A&O partner and head of the firm’s markets innovation group, which developed ContractMatrix, said the firm’s goal was to “disrupt the legal market before someone disrupts us”.

“If we look at the impact of AI in law, it is happening and it’s likely to happen in a pretty big way in the next few years, and we are seeing it as an opportunity,” he added.

The firm is also planning to offer the service to the clients it gains from its $3.5bn merger with US outfit Shearman & Sterling, said Wakeling, which is due to complete by May.

The legal sector has been one of the fastest industries to adopt and experiment with generative AI technology off the back of the success of Microsoft-backed OpenAI’s ChatGPT and Google’s Bard. However, while some firms have heavily invested in new products, many are waiting to see what tools will win out.

A&O had previously introduced an AI-powered chatbot for use within the firm. Other law firms including Addleshaw Goddard, Travers Smith and Macfarlanes have also rolled out generative AI pilots internally.

A&O would not detail specific financial terms around the contract negotiation tool but said clients would pay an annual subscription fee per licence, with a minimum purchase of five users. The law firm is aiming to have subscriptions with hundreds of companies by the end of next year.

The product will also be available more widely to companies through Microsoft’s enterprise software marketplaces, Azure and AppSource, in the first half of 2024. Microsoft said the project would “deliver significant value to [A&O] customers”.

Concerns have been raised around using generative AI in the legal sector because of issues related to data privacy and client confidentiality, as well as so-called hallucinations, where a model generates incorrect information.

Wakeling said that hallucinations could happen with ContractMatrix, but they were significantly reduced because of the templates its underlying technology had been trained on. He added that client data was also not used to train the AI models that underpin the software, and inputs and outputs are encrypted.

However, if clients wished to make the tool more effective and personalised, A&O said it could work with a business to fine-tune the model and train on their data.

“We are seeing it as a big open market opportunity . . . because in-house lawyers need efficiency and productivity gains as well,” Wakeling added. “They can be that much quicker and that much more efficient than their competitors. And you would expect that to be attractive to clients because it’s generally a bit cheaper, a bit faster, a bit better.”

Additional reporting by Tim Bradshaw
 

Wargames

One Of The Last Real Ones To Do It
Joined
Apr 1, 2013
Messages
23,378
Reputation
4,010
Daps
87,038
Reppin
New York City
Anyone can do this though. The issue is a lawyer still has to read and proof read it to ensure it’s correct and legal
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
45,542
Reputation
7,433
Daps
136,939

Answering Legal Questions with LLMs​

Apr 29, 2024

If you asked a lawyer whether ChatGPT could do his job, he would laugh you out of the room. The tool is often useful, but can’t handle legal questions end to end. It makes up sources, its reasoning can be flawed, and it may overlook key aspects of the law.

We decided to tackle this problem at Hotseat. After iterating multiple times, implementing advanced agentic workflows, and testing with dozens of lawyer, we’re certain that the product has glaring limitations and it won’t replace any jobs soon. However, we figured out an unintuitive, LLM-only method of doing RAG, and we leveraged it to make LLMs answer complex questions about select EU regulations.

In this post, you’re going to learn how to implement a system that can perform advanced reasoning over very long documents.

The Problem​

A great answer to a legal question must at least:

  • Be based on sound reasoning;
  • Quote the source text of the law to be verifiable; and
  • Take into account all relevant parts of the law.


To meet these requirements, we had to put the relevant documents in the prompt - we couldn’t just hope that the LLM was trained on all of the law. We also limited our scope to a single regulation. It made the problem approachable, and we could scale later.

In our first attempts, we<a href="Answering Legal Questions with LLMs - Hugo Dutka">1</a> fed the entire 226 pages of the EU’s AI Act into GPT-4 and asked a sample question:

Does the deployment of an LLM acting as a proxy to optimize SQL queries fall within the regulatory scope of the EU’s AI Act?

And we found that GPT-4 couldn’t give us a good answer.

A lawyer would start by asking some helper questions:

  1. Does the proxy meet the definition of an AI system?
  2. Can the proxy be classified as a high-risk AI system?
  3. Will the proxy process personal or sensitive data?


But in a single response, GPT-4 couldn’t both break down the question and answer it. The former task requires a high-level analysis of the document, and the latter - low-level focus on details.

The Solution​

We split answering the question into subtasks.

The rough idea is to:

  1. Make GPT-4 figure out which subquestions it should ask; then
  2. Answer each subquestion independently; and
  3. Aggregate the findings into a single response.


Breaking Down the Question​

To answer a legal question based on a single regulation, GPT-4 must first find the relevant sections. It requires high-level reasoning across the entire document.

We discovered that GPT-4 can complete this task well, provided you prompt it carefully. All the standard prompt engineering guidelines apply. Crucial were:

  • Structuring the document with Markdown. Without it, reasoning over 80,000 tokens wouldn’t work.
  • Roleplaying. We framed the task as a senior lawyer planning out work for a junior lawyer.
  • Tokens to “think.” We gave the model space to produce internal notes about the task - like how it understands the user’s question - before asking for the plan itself.


We designed the output so it corresponds to a list of subquestions required to answer the main question. Each point is self-contained; it includes specific instructions and references to sections of the document. If a lawyer looked at any single step, they could carry it out themselves.

Here’s what GPT-4 gave us:

Plan for the Junior Lawyer​

  1. Identify Relevant High-Risk Categories:

    • Analyze Annex III for high-risk AI systems to see if the language model fits under any listed categories.

  2. Examine Requirements for High-Risk AI Systems:

    • Look at Articles 8-15 to understand general requirements for high-risk AI systems.




(The other 7 points truncated for brevity. Full plan here, and the prompt here.)

The quality of the plans still surprises me. When we analyzed them for questions from actual lawyers, we found that GPT-4 generally covers all necessary subquestions.

Answering Subquestions​

The plan is executed by a simple AI agent. In fact, just a single conversation that GPT-4 has with itself.

GPT-4 is prompted with instructions to assume the role of a “master agent” tasked with answering a legal question based on the pre-generated plan. It can delegate subquestions to “junior lawyers” - in fact, separate GPT-4 chats - by calling functions.

Here’s an example function call:

<span>AnnexAnalysis</span>({<br> <span>"task"</span>: <span>"Analyze Annex III for high-risk AI systems to see if the language model fits under any listed categories."</span>,<br> <span>"annexes"</span>: [<span>"Annex III"</span>],<br> <span>"legal_question"</span>: <span>"Does the deployment of an LLM acting as a proxy to optimize SQL queries fall within the regulatory scope of the EU's AI Act?"</span><br>})<br>

We convert such calls into prompts that contain the task, the question, the specified parts of the regulation, and instructions to carry out the task. Whatever GPT-4 outputs is fed back into the master chat as the junior lawyer’s answer.

We preprocess the regulation so that when a call contains a reference to “Annex III,” we know which pages to put into the “junior lawyer’s” prompt. This is the LLM-based RAG I mentioned in the introduction.

Compared to analyzing the entire AI Act, GPT-4’s reasoning is massively boosted when it’s given a clear task and a short context. With a 5k-token-long prompt, you can even usually trust the LLM to correctly quote the source, which is useful to a user verifying the final answer.

We implemented the master AI agent as a while loop. It goes on as long as GPT-4 calls functions, going through the plan step by step. Eventually, after all subquestions are answered, it outputs the final answer in a format we can detect with a regex. We then break the loop and return the answer to the user.

You can see the final answer here, in the “Legal trace” section.

Here’s the master prompt along with function definitions, and here’s the junior lawyer’s prompt.

Results and Limitations​

Answering a question this way takes 5 to 10 minutes and costs about $2 with GPT-4.

The highlight of testing the system with dozens of lawyers was when a GDPR specialist reviewed its answers. The lawyer ranked 8 out of 10 responses as excellent, and the remaining 2 as overly cautious in interpreting the law.

However, over the long term, we found that GPT-4 can identify subquestions very well but often can’t answer them correctly. In non-trivial scenarios, it makes logical errors.<a href="Answering Legal Questions with LLMs - Hugo Dutka">2</a>

Lawyers also told us that when they answer a question, they rarely touch upon a single regulation. Not only do they analyze multiple regulations, but they also take into account supporting documents such as various guidelines, regulatory technical standards, and court rulings. In contrast, this system can only process a single document at a time.

We’ve learned that the combination of high latency, faulty reasoning, and limited document scope kills usage. No lawyer wants to expend effort to ask a detailed question, wait 10 minutes for an answer, wade through a 2-pages-long response, and find that the AI made an error.

Conclusion​

Keeping all the limitations in mind, dividing complex jobs into simple tasks improves the reasoning capabilities of LLMs dramatically.

While the system isn’t directly useful for lawyers yet, the underlying architecture can be generalized to other problems. If less-than-perfect reasoning and high latency are acceptable, you could use it to answer arbitrary questions about arbitrary documents.

If solving such problems is interesting to you, we’re looking for another co-founder. We’re still early, but we’ve learned a ton about how lawyers do legal research. Our next steps will be focused on semantic search that actually works, helping law firms navigate through thousands of legal documents.<a href="Answering Legal Questions with LLMs - Hugo Dutka">3</a> If you’d like to build a meaningful product in the legal tech space, please check out our request for a co-founder. We’d love to hear from you.



  1. By “we,” I mostly mean my co-founder, Grzegorz. I was focused on stabilizing the system after he developed a proof of concept. ↩︎
  2. A real error a lawyer found in our system: he asked whether his client’s business falls into the scope of the EU’s Digital Services Act. GPT-4 correctly identified that the business falls into the scope if it qualifies as an “intermediary service,” and one of the subcategories of that is an “online platform.” To qualify as an online platform, a product must have at least 50 million users. GPT-4 correctly identified that the client’s business doesn’t operate such a product, so it’s not an online platform. Therefore, it concluded, the business is not an intermediary service. ↩︎
  3. Yes, we’ll be building yet another AI for PDFs app, but with more focus on accuracy and relevance. We think we can innovate on the UX to deal with the present shortcomings of LLMs. ↩︎

 
Top