Legal knowledge infrastructure for AI: a corpus of Polish and EU law with a citation graph, amendment history and PL-EU links.
This repository documents Repertorium's public interface - the tools, the response contract and the corpus coverage. It holds no code, no data and no infrastructure configuration. The service itself is hosted by MateMatic.
| Polish corpus | 1,492,530 documents - case law, legislation, tax interpretations, procurement and data-protection decisions |
| EU corpus | 236,944 documents - EU legislation and CJEU case law |
| PL-EU bridge | 1,443,748 links from Polish documents to EU law |
| Freshness | a snapshot with a known state, returned on every response (snapshot: "pl-2026-08"), not a live stream |
Repertorium does not write answers, opinions or summaries, and there is no model inside it. It returns documents, passages and relations, each with a locator, so that whatever model or person reads them can show what an answer stands on.
| For | Access | |
|---|---|---|
| Web console | a person checking a query | matematicsolutions.com/en/repertorium - no account, snippets only |
| Remote MCP | an AI agent: Claude, Cursor, any MCP client | personal token, on request |
| REST | your application | the same token and the same six tools |
MCP and REST run the same code path. The endpoint address is sent together with the token.
- Tools - the six tools, their parameters and server-side limits
- Response contract - the envelope, coverage states, locator, provenance, unresolved citations
- Coverage - what is in the corpus, what is not, and how to ask
- Identifiers - which identifier schemes are implemented, and which are not yet
- Examples - connecting an MCP client, calling REST, reading a response
- Overview on Hugging Face - the same interface in one page
- A missing result is named. If part of the corpus did not respond, the answer says
partialand names what failed. If nothing responded, it sayssearch_unavailableand returnsresult: null- never an empty list that looks like an honest zero. - An unresolved citation stays in the answer, with a reason:
out_of_corpus,in_family_unmatched,below_confidenceorunparsed. - Every passage carries a locator: document identifier and character offsets in the whole document, so
get_documentreturns exactly that passage. - A warning is not a conclusion. When a cited provision was amended after the citing judgment, the citation carries
zmiany_przepisu. The absence of that field does not mean the provision is unchanged.
Repertorium is the knowledge layer. PATRON is the local-first workspace; today it reaches Polish and EU sources through its own connectors, and connecting it to Repertorium is planned. Boutique connectors query official sources live; Repertorium serves a prepared corpus. The difference is explained on the organization page.
Documentation: CC BY 4.0. The corpus and the service are licensed separately; training rights differ between jurisdictions and are agreed per contract.
Part of MateMatic: Repertorium · legal knowledge · PATRON · legal workspace · Boutique · connectors and skills