Skip to content
Chat with AI Agent
Industry use cases

Local AI for Law Firms: Keeping Matter Files Inside the Office

Orange ITS — AI engineering team 10 min read

On an illustrative Monday morning, a small law firm receives a new lease dispute file: a scanned agreement, twelve email threads and several annexes. A lawyer needs the termination clauses, the relevant dates and a short chronology before an afternoon call. The documents are already in the matter repository, yet the fastest available AI tool would require someone to copy sensitive text into a separate service.

That gap matters. The firm has valuable documents, clear professional questions and staff who know what a sound answer looks like. What it lacks is a controlled bridge between those matter files and a useful model.

A local AI appliance can make sensitive matter files usable for bounded document work when current matter access, source evidence and lawyer approval are part of every request. The appliance described here is a proposed workflow and set of acceptance requirements.

A focused AI process optimisation engagement should begin with the work and its controls, then determine whether an office appliance or a managed private service fits them. For broader law-firm use cases, see AI agents for law firms. This article stays with one narrower decision: how to support work on matter content while preserving the firm’s access boundaries.


Why Put a Document Assistant Beside the Matter Files?

The strongest case for local AI in a law firm is access to useful context. A generic assistant may draft fluent text, but it cannot identify the clause hidden on page 17 of an annex unless the firm gives it that source. Lawyers and staff therefore spend time reopening files, finding passages and rebuilding chronologies that already exist across the matter.

Consider an illustrative baseline for an eight-person office. If the team performs 15 document searches or extraction checks per working day, and each takes an average of 6 minutes, the annual workload is 15 × 6 minutes × 220 working days = 19,800 minutes, or 330 hours. At an illustrative blended internal cost of CHF 140 per hour, that is CHF 46,200 of annual work in scope. This calculation sizes the opportunity. The pilot still has to measure how much time the assistant actually removes and how much review it adds.

Local execution can make that pilot feasible where sending prompts and retrieved passages to a hosted model endpoint is unacceptable. It reduces that particular transfer path. It also lets the firm control model files, firewall rules, update timing and local logs, provided someone is assigned to administer them.

The business value comes from quicker access to authorised matter knowledge. The server location is one part of the design that enables it.

Define the Appliance Boundary Before Choosing Hardware

In this article, an appliance means a workstation or server in the office that runs the model and document retrieval service. It connects to the firm’s existing matter repository and identity system. The repository remains the system of record. The appliance holds only the derived material required for its agreed tasks, such as temporary text, an index, prompts, outputs and audit events.

Four terms often collapse into one sales claim, although they answer different questions:

PropertyWhat it establishesWhat still needs checking
Local executionModel inference happens on an office deviceTelemetry, remote support, updates, backups and external identity calls
Swiss hostingA service or data centre is located in SwitzerlandOwnership, subprocessors, support access and every backup location
Operational sovereigntyThe firm controls accounts, network rules, logs, deletion and update timingWhether staff can operate those controls consistently
Air-gapped operationThe appliance has no routine network pathControlled transfers for patches, models, identity data, support and recovery

None of these properties creates confidentiality, privilege or compliance by itself. A managed private or enterprise service may satisfy the firm’s controls, depending on its contracts and implementation. An on-site appliance transfers more administrative responsibility to the firm, including patching, recovery and evaluation after changes.

This boundary discussion should precede a hardware quote. A credible proposal needs to cover encrypted storage, backup, network segmentation, installation, identity integration, model and index configuration, patching, monitoring, support and recovery. The cost of a bare device answers only a small part of the buying question. The wider infrastructure trade-offs are covered in on-prem AI for SMBs.

Follow One Matter Through Three Bounded Tasks

The first pilot should follow a real working sequence without letting the model act as a lawyer. Following these three tasks tests the handoffs between intake, retrieval and lawyer review.

Intake and matter assignment

A staff member uploads or scans a document into the normal matter repository. A connector stages an authorised copy together with its matter ID, owner, group and access list. The AI service account receives read access only to the staging area required for the workflow. It should have no universal share across the repository.

The local classifier proposes a document type and extracts candidate names, dates, deadlines and document language. Staff see the proposed matter before accepting it. If the matter ID or access list is missing, the process stops. The assistant must never guess the destination for an ambiguous file.

This is useful because it removes a sorting step while preserving the familiar repository and staff check. The output remains a proposal until a person confirms it.

Document review with sources attached

Once the file belongs to a matter, an authorised lawyer can ask a bounded question such as, “List the termination rights and quote the supporting clauses.” The retrieval service filters the available material using the lawyer’s current identity and matter permission before it searches for relevant passages.

The answer should show the file name and page or paragraph beside every material statement. When the selected sources contain no support, the interface should say so plainly. A second pass can compare extracted dates with a structured checklist, but a model extraction should never become a docket entry automatically.

This pattern extends familiar document processing with AI agents into a more constrained legal setting. The assistant organises evidence for review. The lawyer decides what the evidence means.

A source-grounded first draft

The same authorised matter set can support a chronology, internal issue list or first draft of a client update. The draft view should keep the supporting passages visible beside each material proposition. A lawyer edits the text and approves the final version in the firm’s normal system.

The approval record should identify the reviewer and time. It should also retain the model version, prompt template and retrieved sources needed to reconstruct what the assistant produced. The record documents the review path; it does not turn the model output into a signature or legal opinion.

Enforce Matter Access at Query Time

A document assistant becomes dangerous when it builds one rich index and then treats every logged-in person as equally entitled to search it. File permissions checked only during ingestion are insufficient. People change teams, ethical walls appear and access can be removed while indexed text still exists.

Every request should pass through query authorisation before retrieval. The service checks the user’s current identity and permission for the requested matter. Missing authorisation data causes the request to fail closed. Search, chat history, citations and metadata previews should all use the same decision.

When a user’s access is revoked, query authorisation must block new requests immediately. Re-indexing, cache expiry and deletion of derived copies can continue afterward without becoming the gate that protects the matter. Test the interval explicitly so a stale index cannot grant access while it catches up.

Downloaded or exported files sit outside that query path. They cannot generally be recalled after access changes. If the firm needs continuing control over exports, it must choose and test a specific mechanism such as managed devices, rights-managed documents or a controlled viewer. The project should describe the mechanism precisely rather than promise retroactive revocation.

Retention needs the same precision. Temporary uploads, extracted text, embeddings, prompts, outputs, logs and backups are separate data stores. Each needs an owner, purpose and deletion procedure. Deleting a matter from the source repository should trigger the defined cleanup of derived copies, followed by a test that confirms the intended result.

Keep the Lawyer Between Evidence and Action

Generative models can produce confident statements that their sources do not support. The NIST Generative AI Profile treats confabulation as a core risk and recommends evaluation, monitoring and human oversight. For a law office appliance, those recommendations translate into a simple operating rule: the model may prepare work, while a named lawyer controls any consequential action.

The human gate should cover client-facing communication, court filings, docket changes and any document represented as the firm’s legal judgment. Approval needs to be visible in the workflow rather than assumed because a lawyer eventually received an email.

Source display lets the reviewer move directly from a statement to its evidence. A citation is a route back to that evidence. It does not prove the legal proposition. The reviewer still checks that the passage is reproduced faithfully, belongs to the right version of the document and supports the conclusion being drawn.

The same control protects against untrusted files. A PDF may contain text telling the model to ignore its rules or reveal another matter. The system should treat that text as evidence content rather than an instruction. This belongs in the test set alongside ordinary clauses and scans. Broader threat patterns appear in AI agent security risks.

Treat Data Protection as a Design Input

The Swiss Federal Data Protection and Information Commissioner states that the Federal Act on Data Protection applies directly to AI-supported processing. Its guidance also calls for transparency about the purpose, functionality and data sources of AI systems, including how inputs may be used.

That means local placement does not end the assessment. The firm still needs to define why it processes matter data through the assistant, who can use it, what the system retains and how affected people receive appropriate information. The exact notice and mandate language depend on the use case and require the firm’s own legal assessment.

The FDPIC’s current data protection impact assessment guidance says a DPIA is required where planned processing is likely to create a high risk to personality or fundamental rights. New technology and large-scale processing of sensitive personal data are named risk factors. A small pilot receives no automatic exemption. Its scope and risk determine the assessment.

These obligations are practical design inputs. Purpose affects which documents enter the index. Transparency affects the user interface and policy. Risk assessment affects logging, testing, access and escalation. Local execution may make one architecture easier to defend, while the controls still have to work.

Make the Pilot Prove the Useful Parts

A credible pilot uses synthetic matters first, then a tightly selected live matter only after the controls pass. The acceptance tests should cover the work that creates value as well as the failures that could erase it.

  • Matter isolation: Create two synthetic matters with overlapping names. A user authorised for one should receive no text, citation or metadata from the other through direct search, semantic search or chat history.
  • Citation fidelity: Seed known clauses and page numbers, plus questions whose answers are absent. Score correct sources, wrong sources and abstentions separately.
  • Immediate revocation: Remove a user’s matter permission and confirm that the next query fails closed. Then verify that the index, cache and derived copies complete their separate cleanup.
  • Human approval: Attempt an email, docket update and document export. Each action should stop until the named reviewer approves it through the intended workflow.
  • Recovery and network boundary: Restore the appliance from backup with its index, access metadata and logs, then observe outbound connections during inference, indexing, updates and support.

Quality should be measured on representative German, French, Italian and English documents if the firm works across those languages. A smaller local model may require more review on long or multilingual files than a managed service. The comparison should use the same matter set, questions and scoring rules.

The pilot can then report useful business measures: time to find a supported clause, percentage of material statements with a correct source, abstention behaviour and minutes of lawyer review per draft. It should also report access-control and recovery results. A fluent demo proves very little about day-to-day usefulness.

A Small Appliance Works Best With a Small Promise

Within a bounded workflow, a law firm can test whether staff reach authorised sources faster while lawyers keep responsibility for the judgment that follows. The model receives no authority to communicate, file or decide.

Start with one matter type. Keep the source repository authoritative, authorise every query and record the human gate. Assign someone to operate the appliance after launch.

If the tests expose weak multilingual quality, awkward administration or excessive review time, a managed private service may be the better implementation. The same control requirements give the partners a concrete basis for that decision.

Frequently asked questions

What can a local AI appliance do for a small law firm?

A local AI appliance can classify incoming matter documents, extract dates or clauses with source references, and prepare a first draft for lawyer review. The useful scope is narrow and measurable. It should work from the firm's authorised matter files, abstain when evidence is missing, and keep client communication, court filing and docket changes behind a recorded human approval.

Does running AI in the office make legal documents confidential automatically?

No. Local execution can remove the hosted model endpoint from one data path, but confidentiality still depends on identity controls, matter permissions, device security, backups, logs, support access and staff behaviour. The firm must also assess its duties under applicable data protection and professional rules. Local placement is an architecture choice whose legal implications still need assessment.

How should matter permissions work in a local document assistant?

The assistant should authorise every query against the user's current identity and matter access before retrieval begins. Missing or stale authorisation data should stop the request. When access is revoked, query authorisation must take effect immediately while indexes and caches catch up. Previously downloaded or exported files need separate managed controls because the assistant cannot generally recall them.

How can a law firm test whether AI citations are reliable?

Build a synthetic test set with known clauses, page numbers and deliberately absent answers. Require the assistant to cite the correct file and page for every material statement, then check whether it abstains when the evidence is missing. Repeat the test after changing the model, prompt, retrieval settings or document parser, since citation quality belongs to the whole system.

Is a local appliance better than a managed private AI service?

The better option is the one that satisfies the firm's documented controls and support needs. A managed private or enterprise service may meet them when its contracts, data flows, administrator access, retention and subprocessors are acceptable. An office appliance offers more direct operational control, but the firm then owns patching, backups, identity integration, monitoring, recovery and the quality of each model update.

Insights

Put these ideas to work

A 30-minute call is enough to find out whether an AI agent fits your workflow — and what it would return.