In this article
At an energy company, questions about the law come up every day, and not only in the legal department. A connections engineer checks which deadline follows from a regulation. A tariff specialist looks for a clause in a decision. The head of customer service asks whether the complaints procedure has kept up with the latest amendment. The lawyers answer, but it works best when they can point to a collection they maintain themselves. A well-organised legal knowledge base is exactly that collection, in one place: the acts that apply to your industry, in the wording uploaded most recently, together with the procedures that rely on them.
Without it, everyone keeps their own copy of an act on their drive, often one that predates several amendments. This post belongs to our series "The AI-assisted archive in practice". The technical side of connecting and securing the assistant is covered in our post on AI document search. One caveat up front: CONTMAN Archive stores, describes and versions the acts your company uploads, but it does not supply or update the texts themselves. Your company chooses and maintains the collection; the archive and the assistant help people use it.
A collection your company keeps itself
In CONTMAN Archive, such a collection is a few document categories with fields your company defines. In the energy and utilities sector it might look like this:
- Legal acts, with the fields "Type of act" (a list: act, regulation, decision, guidelines), "Issuing body", "Effective date", "Area" (a list, for example connections, tariffs, customer service) and "Act reference";
- Internal procedures, where the "Act reference" field names the act the procedure is based on;
- Legal opinions, read by the legal department only.
Marked as a field that links documents, "Act reference" ties an act to the procedures and opinions that carry the same reference. The assistant can fetch those related documents when someone asks what follows from a given provision for the company.
A consolidated text as a new version
Acts change many times. Poland's Energy Law of 1997 (Prawo energetyczne) has had many consolidated texts, published after successive amendments. In CONTMAN, a new consolidated text does not have to be a new document: you add it as a new version of the same act's file. Each version has its own number and cannot be changed, and earlier ones can be viewed and downloaded at any time. The earlier wording stays at hand, for example when you need to check how a provision read on the day a contract was signed. Successive editions of internal rules and procedures are best kept the same way, as we describe in our post on employee onboarding.
The text the assistant reads comes from the current version of the file, and it can fetch an earlier version's file when someone asks for it. It therefore answers questions about the law according to the wording your company uploaded most recently, which is why it matters so much who looks after the collection. The archive does not compare versions or show the differences between them. What changed is set out in the amending act itself, which is worth keeping in the collection as a separate document with the same act reference. The assistant can then read the amending act and the consolidated text and set the changed provision side by side: the AI model prepares that comparison, and a lawyer checks it in the documents. We show a similar comparison of two editions of general terms in our post on the lease agreement archive.
Scans and long texts
Older decisions and letters are often scans. Their content becomes searchable once OCR is switched on; it is off by default and recognises Polish and English text. From a very long file, the archive indexes the beginning, up to a limit set in the installation; the default limit is 2 million characters. The assistant reads text in portions of 20,000 characters, long acts included.
Legal knowledge base: questions for the assistant
A lawyer, an engineer or a tariff specialist, connected to the archive through the AI assistant their company uses, might ask, for example:
- "Which acts in the Legal acts category mention a retention period for documentation?"
- "Summarise the decision with reference DEC-2025-07 and tell me the date it applies from."
- "Which of our procedures are related to the regulation with reference RP-2023-01?"
- "Show me the acts in the connections area that took effect after 1 January 2025."
- "Which documents in the Legal acts category have no effective date filled in?"
The assistant searches for a phrase in the descriptions and the text of the acts, narrows the results by fields, including date ranges, and reads the text of the current version. The act references in these examples are made up, and so are the category and field names.
The assistant's answer is not legal advice. It is a summary of what is in the documents of your collection and a pointer to where to read on. The conclusion for the company is drawn by a lawyer.
Security: the acts are public, the opinions are not
The texts of acts are public, but around them grow documents that are not: opinions, correspondence with the regulator, risk analyses. Three rules help protect them:
- Opinions for the legal department only. Access to each category is granted in roles separately, and the assistant sees nothing that the person who connected it could not see. An engineer who reads acts and procedures will not see legal opinions through the assistant if their role does not cover that category.
- A deliberate decision about the AI model. Everything the assistant reads goes to the AI model your company uses. That is why the assistant is off by default, and an administrator grants permission to use it to selected people only.
- Encryption and a permissions log. The files of selected categories can be encrypted, and every change of permissions goes into a log whose entries never expire. We cover this in our post on secure document storage.
How to get started
- Appoint someone to look after the collection. A lawyer or a regulatory specialist decides which acts go into the archive and makes sure every new consolidated text goes in as a new version.
- Create a category with fields. Type of act, issuing body, effective date, area and act reference. It is worth making the effective date a required field. We cover required fields in our post on keeping documents in order.
- Link procedures to acts. Enter the act reference in procedures and opinions, and mark the field itself as one that links documents.
- Switch on content reading. Content processing in the category of acts and, for scans, text recognition.
- Decide who asks. An administrator grants selected people permission to use the assistant and, in the collection's categories, document read and file download and preview, without which the assistant cannot read the text of the acts. Each of them connects the assistant with their own account.
Coming soon: the source one click away
In the next version, the CONTMAN Assistant will answer inside the archive itself. Numbered references in the answer will point to the documents the assistant drew on, and a source card will take you to the document in one click. With legislation this matters a great deal: before anyone bases a decision on a summary, they can open the text of the act and read it for themselves.
A legal knowledge base will not replace your lawyers, but it can spare them from answering the same questions over and over. Book a demo, and we will show you what such a collection looks like in CONTMAN Archive.
