Law firms

AI for law firms that cannot let a single document leave the office

Search across case files, contracts and pleadings with a plain-language question and get the answer with a reference to the document — on a server in the firm, with nothing passing through an external vendor.

Professional privilege is not an organisational preference: it is an obligation. This page explains how AI-assisted document search can sit inside that obligation instead of putting it in question.

The daily problem is not legal research, it is searching your own archive

Legal databases already cover statute and case law. What no database covers is your archive: the pleadings filed, the contracts negotiated, the opinions given, the matters closed five years ago.

That is where the time goes. “How did we frame that objection”, “which contract did we accept that indemnity clause in”, “what did we tell the client on that point”: the answers exist, they are in one of the firm's documents, and finding them means remembering which.

Semantic retrieval answers from the meaning of the question rather than its exact words, and returns the passage the answer came from. The checking still belongs to whoever signs, but it starts from three paragraphs instead of four folders.

Why the perimeter question is different for a firm

A company evaluating a hosted service weighs a risk. A law firm also weighs a professional and contractual duty to a client who as a rule consented to nothing, and who is often bound by confidentiality undertakings of their own.

  • Documents stay on the firm's server: there is no transfer to a third party to disclose to the client or to justify.
  • After the first run the engine needs no network, so it can run on a machine isolated from the outside.
  • Roles separate who may only read from who may upload or delete, and the filter applies before passages reach the model.
  • The engine's source is public under AGPL-3.0: it can be verified rather than taken on trust.

Where it pays off most

  • Internal precedent: recovering the argument already used on a comparable question.
  • Due diligence and contract review: quickly locating the clauses governing a specific case inside very large document sets.
  • Scanned files: PDFs with no selectable text made searchable through OCR in Italian and English.
  • Multilingual matters: an Italian question finding the passage inside a contract drafted in English.
  • Knowledge transfer: a new joiner querying the archive instead of consuming a senior colleague's time.
  • Article lookup over collections of legislation: a question naming "art. 2875 c.c." returns that article. A number on its own means almost nothing to an embedding, so the engine recognises it and looks it up as a reference rather than as text.

The system does not produce legal advice and must not be used to. It returns passages with their provenance: the legal judgement remains entirely the professional's.

Models trained on Italian law, not on generic text

Retrieval finds the right passages; the language model is what turns them into an answer. On legal material, almost the whole difference between a general-purpose model and one trained on Italian sources shows up in a single case: what happens when the answer is not there.

EuLLM publishes a line of vertical models for Italian law, legal-it, in two sizes: 4B, which runs on modest hardware, and 8B, where a dedicated GPU is available. They answer from the provisions retrieved out of your archive and carry the citation of the passage they relied on, rather than producing a summary with no provenance.

The behaviour that matters to a firm is the negative one: faced with an article that does not exist, or a provision that does not cover the facts, the model says so. A fabricated statutory reference is the most expensive kind of error, because it looks exactly like a correct one until somebody checks it.

Which generation model to run is a configuration choice, not a property of the install: the embedding model and the document index are independent of it, so moving to a vertical does not mean re-indexing the archive. One caveat when comparing against these models' published results: those are measured with a retrieval chain that includes hybrid search and reranking, while the Community edition retrieves by vector similarity alone. Hybrid and reranking belong to the Pro edition, and on statutory material they are the part that moves the needle most.

Frequently asked questions

Do client documents remain covered by professional privilege?
The software does not change professional obligations, but it changes the underlying facts: with documents, index and model on a server in the firm there is no transfer to an external vendor to assess, disclose or justify. Ordinary security measures on that server still apply, exactly as they do to the file server you already run.
Does it work on scanned files?
Yes. When a page yields too little text it is recognised as a scan, rasterised and passed through OCR in Italian and English. That is the typical case for documents received as copies or captured on filing.
Does a mid-sized firm need serious infrastructure for this?
No. The engine is a single executable that starts its own components: you need a server with an NVIDIA GPU for fast answers, or a machine without one if longer waits are acceptable. It does not need an IT department, just the person who already administers the firm's server.
Can the system get a citation wrong?
Every answer arrives with the passages it was drawn from, so an error is immediately checkable. The assumption of use is that the professional verifies the source before relying on it, exactly as with research done by an associate.
Can it cite an article that does not exist?
That is the characteristic failure of a general-purpose model, and the reason EuLLM's legal-it verticals exist: they are trained to answer from the provisions actually retrieved and to say when an article does not exist rather than construct a plausible one. The rule of use does not change either way: every answer carries the passages it came from, and checking the source comes before relying on it.

Ready to run RAG on your own infrastructure?

Start with the open-source Community edition, or talk to us about Pro: hybrid retrieval with reranking, structured extraction, SSO and audit, off-site backup and an SLA.

AI for law firms, without files leaving the firm — I3K RAG Engine