← Latest papers
💬 NLP

RAG System for Supporting Japanese Litigation Procedures: Faithful Response Generation Complying with Legal Norms

This paper proposes the design of a Retrieval-Augmented Generation (RAG) system tailored for Japanese medical litigation that ensures legal compliance by strictly retrieving time-stamped external knowledge, prohibiting the use of private information, and guaranteeing that all generated responses remain faithful to the provided context.

Original authors: Yuya Ishihara, Atsushi Keyaki, Hiroaki Yamada, Ryutaro Ohara, Mihoko Sumida

Published 2026-07-07
📖 5 min read🧠 Deep dive

Original authors: Yuya Ishihara, Atsushi Keyaki, Hiroaki Yamada, Ryutaro Ohara, Mihoko Sumida

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a courtroom in Japan as a high-stakes game of "Show Your Cards." In this game, the judge is the referee, and the two lawyers (the plaintiff and the defendant) are the players. The golden rule of this game is that the referee can only make decisions based on the cards the players put on the table. The referee is strictly forbidden from pulling secret knowledge out of their own pocket or using information that only one side has seen.

Now, imagine that medical cases are so complicated that even the referee (the judge) needs a special assistant to understand the medical cards. Usually, this assistant is a human doctor who explains the medical science to the judge. But the authors of this paper are asking: What if we replaced that human doctor with a super-smart AI?

The paper argues that to make this AI work in a courtroom, we can't just let it "chat" like a normal computer. We have to build a special "Legal AI" that follows three strict rules, or it would break the game.

Here is how the paper explains these rules using simple analogies:

1. The "No Secret Library" Rule (Controlling Knowledge Sources)

The Problem: Normal AI models are like students who read millions of books before school started. They remember everything they read, including secret facts or private opinions that no one else knows. If an AI judge uses this "private memory," it violates the rule that both sides must see all the evidence.
The Paper's Solution: The AI must be like a librarian who is only allowed to pull books from a specific, approved shelf.

  • The Analogy: Imagine the AI is a chef. A normal chef might use a secret family recipe from their head. But a "Legal Chef" is only allowed to use ingredients that both the plaintiff and the defendant have already placed on the kitchen counter. If the chef tries to use a spice from their own private pantry, the dish is disqualified. The system must strictly filter out any "private knowledge" and only use documents that have been officially verified and shared by experts.

2. The "Honest Ghostwriter" Rule (Faithfulness to Context)

The Problem: AI can sometimes "hallucinate," which means it makes things up or mixes its own memories with the facts. In a courtroom, if the AI invents a fact that isn't in the evidence, it's a disaster.
The Paper's Solution: The AI must act like a strict ghostwriter who can only write what is in front of them.

  • The Analogy: Think of the AI as a scribe copying a document. If the scribe adds a sentence that isn't in the original text, they are lying. The paper suggests a system where the AI must constantly check: "Did I just say this because it was in the document I'm reading, or did I just make it up?" If the answer is "I made it up," the system must reject that answer. It's like a student taking a test who is only allowed to use the textbook provided; they cannot use their own memory of what they learned last year.

3. The "Time Travel" Rule (Issue-Specific Reference Time)

The Problem: Medical science changes fast. A treatment that was considered "perfect" ten years ago might be considered "negligent" today. However, in a lawsuit, you can't judge a doctor's past actions using today's rules. You have to judge them by the rules at the time they made the mistake.
The Paper's Solution: The AI needs a time machine (or at least a very good calendar).

  • The Analogy: Imagine a doctor made a mistake in 2015. If you ask the AI, "Was this a mistake?" and the AI looks up a medical textbook from 2024, it might say, "Yes, that's wrong!" But that's unfair to the doctor, because in 2015, that was the correct way to do it.
    • The paper says the AI must be smart enough to know: "Okay, this question is about a 2015 event. I must ignore the 2024 books and only look at the 2015 books."
    • It's like judging a fashion show from the 1980s. You can't criticize a bell-bottoms outfit for not being "in style" in 2024; you have to judge it based on what was cool in the 80s.

Summary

The paper isn't saying this AI is ready to replace judges tomorrow. Instead, it is a blueprint for building a safe, legal AI assistant.

To be useful in a Japanese courtroom, this AI needs to be:

  1. Honest about its sources: Only using books everyone agrees on.
  2. Faithful to the text: Not making things up.
  3. Time-aware: Knowing exactly when a rule or medical fact was valid, so it doesn't judge the past with the future's eyes.

The authors are currently working on how to build these "guardrails" so that when the AI speaks, it follows the strict rules of the law, not just the rules of probability.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →