Industries · Law firms

Legal software development and AI for law firms

In our legal software development, professional secrecy is a design requirement, not a slogan - in bespoke systems and AI solutions for law firms alike. We run language models in the firm's own infrastructure or in a private cloud in the EU - that is how our LegalAI Analytics works when it analyses multi-volume case files - and we protect documents with encryption, per-matter permissions and an access log.

01Challenges

Legal software development: confidentiality before convenience

Software for a law firm has to protect information covered by professional secrecy - the duty of confidentiality that binds advocates (adwokaci) and legal advisers (radcowie prawni) in Poland - throughout the life of a document: from scanned case files, through analysis and correspondence with the client, to the archive. Every tool that has access to that information becomes part of its protection.

That is why law firms are cautious about the cloud and public AI tools - and rightly so. But that does not mean giving up on automation: it simply has to be designed so that the data stays under the firm's control.

What law firms most often come to us with:

  • multi-volume case files - thousands of pages to review under deadline pressure,
  • finding knowledge - in case law and in the firm's earlier pleadings and opinions,
  • secure document exchange with clients instead of email attachments,
  • shadow AI - lawyers pasting extracts from case files into public chatbots,
  • cybersecurity at the firm - remote access, devices, backups.

02Professional secrecy

AI for law firms and legal professional privilege in Poland

What Polish law says

  • An advocate (adwokat) is obliged to keep secret everything they learn in connection with providing legal assistance (Art. 6(1) of the Law on the Bar).
  • An advocate's duty of professional secrecy cannot be limited in time (Art. 6(2) of the Law on the Bar).
  • A legal adviser (radca prawny) is obliged to keep secret everything they learn in connection with providing legal assistance (Art. 3(3) of the Act on Legal Advisers).
  • A legal adviser's duty of professional secrecy cannot be limited in time (Art. 3(4) of the Act on Legal Advisers).
  • An advocate's professional secrecy does not cease when a personal data protection authority requests disclosure of information (Art. 16b of the Law on the Bar).
  • In criminal proceedings, an advocate or legal adviser may be examined as a witness on facts covered by professional secrecy only where this is necessary in the interests of justice and the circumstance cannot be established by other evidence (Art. 180 § 2 of the Code of Criminal Procedure).

What the professional bodies recommend

  • According to the 2025 recommendations of the National Chamber of Legal Advisers (KIRP), before choosing an AI tool a legal adviser checks the provider's contract and documentation for the confidentiality of input and output data, including a prohibition on using them to train models (KIRP, “AI in the work of a legal adviser”, Recommendation No. 4).
  • KIRP points out that most AI tools run in the cloud, so they need to be configured (including data location) and the technical and organisational measures protecting professional secrecy need to be assessed (KIRP, “AI in the work of a legal adviser”, Recommendation No. 8).
  • In June 2026, the Polish Bar Council (NRA) added § 23e to the Rules of Advocates' Ethics: technological tools, including AI, may only play a supporting role, and information covered by professional secrecy must not be processed in tools that do not ensure its adequate protection (§ 23e of the Rules of Advocates' Ethics and Professional Dignity).
  • The NRA recommends applying the “Good practices for cybersecurity in the operation of law firms and the work of advocates” (2nd edition, 2025) (NRA Resolution No. 25/2025 of 22 November 2025).

The KIRP recommendations and the NRA ethics rules are self-regulatory instruments of the legal professions, not statutory provisions - but they set the standard against which a law firm will be judged.

03LegalAI Analytics

Case-file analysis on an on-premises model: LegalAI Analytics

Case-file analysis within the law firm's infrastructure Scanned case files go through OCR. The text is analysed by a language model fine-tuned on Polish law and by a knowledge graph that links people, events and documents. Cross-verification logic flags contradictions. The lawyer receives an analysis with references to the pages of the case file. All components run within the law firm's infrastructure, with no data retained after processing. LAW FIRM INFRASTRUCTURE (ON-PREMISES) Case files scans, PDF OCR text and pages Language model fine-tuned on law Knowledge graph people, events Verification contradictions Lawyer analysis
Illustration: case files never leave the law firm's infrastructure.

LegalAI Analytics is our product for analysing multi-volume court case files (20,000-100,000 pages). It runs on a local model fine-tuned on Polish law - the corpus comprises 500,000 judgments of the Polish Supreme Court and common courts - and the engine combines OCR, a language model fine-tuned on Polish law, a knowledge graph and cross-verification logic. The architecture is designed for on-premises deployment with Zero Data Retention: case files never leave the law firm's infrastructure.

We are designing it with criminal law firms, prosecutors' offices and e-discovery in mind. The product is in development.

  • 20×

    faster case-file analysis than manual work

  • > 85%

    F1 score for information extraction

  • < 1%

    hallucination rate

Internal test results of LegalAI Analytics on our own test set - not an independent audit and not a guarantee of results in any other project. How we measure model quality is explained on our private LLM page.

04What we build

Systems for law firms and in-house legal teams

Knowledge assistant for the firm

Answers based on case law and the firm's own pleadings and opinions - with sources cited and per-matter permissions.

Document automation

Reading pleadings, contracts and court documents and extracting their data into the case management system.

Client portal

Secure document exchange and communication with clients instead of email attachments.

More about the technology: private language models (LLMs) and intelligent document processing. We build systems for law firms the same way as any other custom software - with requirements analysis, acceptance criteria and a transfer of the rights to the code.

05Security

Document security and control over AI tools

Per-matter permissions

Access to case files only for the team working on the matter - in search results and AI assistant answers too.

Encryption and access log

Documents encrypted in transit and at rest, and an access log: who opened which document and when.

Shadow AI control

SecureWorkspace: blocks public AI tools outside the controlled environment, pseudonymises data and provides policy templates for the legal sector.

Before go-live, our pentesters test the applications - including for prompt injection and data leaking between matters in AI features. The scope is described on our AI security page, and testing of a law firm's infrastructure on our infrastructure and network penetration testing page.

Frequently asked questions

Can a law firm use AI on case files covered by professional secrecy?

The Polish professional bodies for advocates and legal advisers do not prohibit AI, but they require professional secrecy to be protected. In its 2025 recommendations, the National Chamber of Legal Advisers (KIRP) advises, among other things, checking the provider's contract for confidentiality and for a prohibition on training models on the firm's data. The Polish Bar Council (NRA), in § 23e of the Rules of Advocates' Ethics, states that information covered by professional secrecy must not be processed in tools that do not ensure its adequate protection. A model running in the firm's own infrastructure makes these conditions easier to meet.

Does LegalAI Analytics work without sending case files to the cloud?

Yes - the LegalAI Analytics architecture is designed for on-premises deployment with Zero Data Retention, and case files never leave the firm's infrastructure. The product is in development; we are happy to discuss the availability of a law firm version with you individually.

Will the model learn from our case files?

Not without your decision. The model does not learn from queries - fine-tuning only takes place on an agreed corpus (for LegalAI, on case law), and case files go into an index with access control, not into the model. More: private language models.

How can a law firm control the use of ChatGPT and similar tools?

By combining an AI usage policy, a secure alternative and technical controls. Our SecureWorkspace blocks ChatGPT, Gemini and Copilot outside the controlled environment, pseudonymises sensitive content before it is sent to public models and includes policy templates for sectors including law. See AI security and shadow AI.

Do you also build systems for in-house legal departments?

Yes - an in-house legal team has similar requirements to a law firm: confidential documents, per-matter permissions, deadlines and contract workflows. We often integrate these tools with the company's existing systems (document workflow, ERP) instead of building yet another standalone system.

Sources

  1. Act of 26 May 1982 - Law on the Bar (consolidated text: Dz.U. 2024 item 1564, as amended) (in Polish) ()
  2. Act of 6 July 1982 on Legal Advisers (consolidated text: Dz.U. 2024 item 499, as amended) (in Polish) ()
  3. Act of 6 June 1997 - Code of Criminal Procedure (consolidated text: Dz.U. 2026 item 490, as amended) (in Polish) ()
  4. National Chamber of Legal Advisers (KIRP) - AI in the work of a legal adviser. Recommendations on the use of artificial intelligence tools by legal advisers, 1st edition, Warsaw 2025 (in Polish) ()
  5. Polish Bar Council (NRA) - Amendments to the Code of Ethics for Advocates (§ 23e: use of technological tools and artificial intelligence), announcement of 15 June 2026 (in Polish) ()
  6. Resolution No. 25/2025 of the Polish Bar Council (NRA) of 22 November 2025 - Good practices for cybersecurity in the operation of law firms and the work of advocates (in Polish) ()
  7. Regulation (EU) 2016/679 of the European Parliament and of the Council (General Data Protection Regulation, GDPR), OJ L 119, 4.5.2016, as corrected by OJ L 127, 23.5.2018 - consolidated text ()

Legal status as of Updated

Related services

Let's talk about your project or audit

Tell us briefly what you need - we will come back with proposed next steps. We work in English and Polish.

or call +48 575 621 877