Law firm in Japan · AI FDE · RAG
Automatic legal document entry system
A law firm in Japan typed information from scanned and handwritten records into legal documents by hand. TMI's FDE engineers worked with the client to build, from scratch, an OCR and RAG system that extracts the information and fills the documents automatically, with crops of the original area for checking.
- Client
- Law firm in Japan
- Field
- AI FDE · RAG
- Technology
- OCR
- RAG
- NestJS
- Azure

- extracts from scanned and handwritten records
- OCR + RAG
- next to each result for checking
- Original-area crop
- for handwriting or blurry images
- Warnings
Before and after
Before
After
Data entry · Before
Information from scans and handwriting typed into legal documents by hand
Data entry · After
OCR + RAG extract it and fill the documents automatically
Checking · Before
Checking every detail precisely takes time
Checking · After
A crop of the original area next to each result for precise checking
The process after the project
- Scanned and handwritten records
- OCR + RAG extract the needed fields
- Legal document filled automatically
- Check against original-area crops and warnings
TMI's FDE team worked with the client to build a system in which OCR combined with RAG extracts information from records and fills it into legal documents automatically, replacing manual entry.
Engagement: TMI's FDE engineers joined at the start of new development and built the system from scratch with the client.
Key features
Extraction by document type
- Extracts exactly the fields each document type needs

Check against the original area
- Crops of the original area shown next to results for precise checking

Warnings for items to re-check
- Warnings for handwriting and blurry images that need review




