All cases

Source-cited answers across thousands of case documents

A privacy-first AI research assistant for law firms: a system that ties every answer to the document it is based on, without the documents ever leaving the firm.

Sector
Legal
Type
AI / RAG
Status
Live

The organisation's name has been anonymised for confidentiality; the problem, approach and outcome are described as they were.

Problem

Lawyers spent hours searching through thousands of case documents in scattered formats. It had to be possible to verify which document each answer was based on, and the documents could not leave the firm.

Approach

We set up document synchronisation from the lawyers' portal and converted proprietary formats to PDF. A hybrid OCR pipeline was added for scanned pages. A multi-step retrieval layer was built using Turkish full-text search and metadata. Answers are streamed with source citations, and accuracy is measured regularly against a fixed test set.

System flow

  1. Document sync
  2. Hybrid OCR
  3. Turkish full-text + metadata
  4. Source-cited answer
  5. Accuracy tests

Before

A scattered archive of PDFs and paperwork; manual searching.

After

A knowledge base that can be queried with its sources, running on the firm's own server.

Engineering notes

Why wasn't "classic RAG" enough?

In legal documents, the same concept appears in different wording; a search based only on vector similarity can miss critical clauses. So Turkish full-text search, metadata filters and multi-step query analysis were used together.

How do we track accuracy?

A fixed set of questions with known answers (a golden set) is re-run after every change. This makes it possible to measure whether an improvement in one place has broken something elsewhere.

Confidentiality

The system runs on the firm's own infrastructure. Document content is not stored permanently in any third-party service.