EN

EN

EN

CMS

Pro Tips

How do lawyers avoid AI hallucinations? 8 principles for safer legal AI use

How do lawyers avoid AI hallucinations? 8 principles for safer legal AI use

a very tall building with a sky in the background

LEXBOX

Purple Flower

How do lawyers avoid AI hallucinations? 8 principles for safer legal AI use

Simply put, an AI hallucination means that an AI system produces information that is incorrect or lacks support, even though the response may be formulated in a convincing way.

For lawyers, this is particularly important. A well-written response is not the same as a legally correct response.

Lawyers can reduce the risk of AI hallucinations by using AI with verifiable sources, requirements for traceability, by limiting the AI's task, verifying legal references, and always having a lawyer review the material before it is used professionally.

What is an AI hallucination?

Generative AI can create a response that sounds professional, is linguistically correct, and seems legally reasonable, but still contains errors.

In legal contexts, this can for example mean:

  • incorrect court cases

  • incorrect references

  • invented quotes

  • incorrect dates

  • incorrect conclusions about a document

  • mixing up different facts

  • overly strong conclusions from limited material

This is why lawyers must distinguish between linguistic credibility and actual reliability. 

AI's most dangerous errors are not always the obviously absurd answers. It is the well-formulated answer that looks correct but isn't.

Why does AI hallucinate?

Generative AI is built to generate responses. When information is missing, a model can in some situations fill in the gaps instead of clearly stating that the material is insufficient.

The risk of this is influenced by, among other things:

  • which model is used

  • how the prompt is formulated

  • what context the model is given

  • whether the model has access to relevant sources

  • how the system is built

  • what control mechanisms are in place

The risk of hallucination is therefore not just a model issue but also a system and workflow issue.

1. Work from the source material

If the question concerns a specific dispute, the system should primarily analyze the actual case material.

This reduces the need for the model to fill in information gaps from general knowledge.

2. Require traceability

The lawyer should be able to verify:

Where does this information come from?

An AI result becomes significantly more useful if the lawyer can trace it back to:

  • the original document

  • the relevant text passage

  • the legal source

  • the actual evidence

Traceability does not automatically make AI correct, but it makes the result easier to verify.

3. Verify court cases and legal sources separately

Legal references should never be accepted simply because the AI presents them confidently.

Also verify: 

  • that the court case exists

  • that the case number is correct

  • that the ruling actually says what the AI claims

  • that the legal provision is current

  • that the quote is accurate

AI can be an effective research aid, but the obligation to verify sources remains.

4. Limit the task

"Analyze the entire case and tell me who is right" is a very broad instruction.

A more controllable task could be: "Identify all instances in the material where the delivery date is stated and show the document reference."

The clearer the task is, the easier the result will be to verify.

5. Distinguish between facts and analysis

It is valuable to separate two things. What does the material say? And what could it mean? The first can often be verified directly against the source. The second requires legal analysis.

6. Ask AI to identify uncertainty

AI systems should not be forced to produce a definitive answer when the information is insufficient.

A professional workflow should allow room for results such as:

  • information is missing

  • the material is contradictory

  • this cannot be determined from the material

  • further verification is required

In law, "I don't know" can be a significantly better AI answer than a convincing assumption.

7. Use human-in-the-loop

AI output should be reviewed by the lawyer before it is used as a legal work product.

This applies in particular to:

  • legal conclusions

  • legal sources

  • client advice

  • court submissions

  • litigation strategy

  • factual assertions

AI can streamline work.

It does not transfer professional responsibility from the lawyer to the model.

The value of Legal AI does not lie in replacing human review, but in making it more informed and systematic.

8. Use the right AI for the task

General AI can be very useful for lawyers, but different tasks require different capabilities.

For language and brainstorming, a general AI assistant may be completely sufficient.

For the analysis of an extensive Swedish dispute, a system built for case materials, traceability, and legal workflows may be more relevant. LexBox is developed based on this latter use case.

How does LexBox work with verification?

Recommended format is ISO8601 compliant, for example: 2023-12-17T14:42:00. The shorthand value of year-month-day is also supported, for example: 1982-12-01. Long format strings may work, but will depend on your browser, for example: Tue May 12 2020 18:50:21 GMT-0500 (Central Daylight Time). All time data, including time zone information, will be stripped from the date.

Color Fields

A color formatted as CSS hexadecimal RGB code, rgb, hls or hlv expression, or a named color. All variants with an alpha value are also supported. Examples: #00ffee, rgb(0, 153, 255), hsla(204, 100%, 50%, 0.5), blue, darkgreen, rebeccapurple.

Toggle Fields

A boolean value. Y, yes, TRUE, 1 will be interpreted as the toggle being "Yes", all other values will be "No".

Prepare your CMS Collection

Here is a checklist to prepare your CMS collection for importing.

  1. Verify each field/column in your CSV has a matching field in your CMS collection with the same name.

  2. Include a unique field for each item, often named "Slug"

  3. Verify that your data types match (eg. a CMS Date field for a date field in your data)

Tip: Framer uses your Slug field to identify each item, and will use it to update that item with repeat imports.

Import your CSV file

You can find the Import feature by going to the CMS in your project, and clicking "Import" in the toolbar. From there, you can select your CSV file for importing. You may also drag & drop your CSV file directly into the CMS collection interface.

Tip: Importing supports Undo / Redo actions. If you're not happy with the import, you can simply undo the change with CMD+Z on MacOS or CTRL + Z on Windows. Redo will not re-run the import, but instantly apply the changes to the collection.

Updating or Re-Importing

To update your content, you can import into the same collection again. If any item in the new import has a slug field that matches one of the items in your collection, you will be able to update it or skip importing it again.

START YOUR NEXT MOVE

Ready to see your case clearly?Transform complex material into a vivid process graph and move forward with greater confidence.

LexBox applies the same structural framework to arbitration, adapted to arbitral rules, confidentiality, and procedure.

Copyright ©LexBox AB. All rights reserved.

LexBox applies the same structural framework to arbitration, adapted to arbitral rules, confidentiality, and procedure.

Copyright ©LexBox AB. All rights reserved.

LexBox applies the same structural framework to arbitration, adapted to arbitral rules, confidentiality, and procedure.

Copyright ©LexBox AB. All rights reserved.