AI agents doing compliance work need to cite the law, not a blog post about it. So we built a search index of 47 EU acts (GDPR, AI Act, DSA, DMA, NIS2, DORA, MiCA, the Data Act, the VAT Directive, PSD2, CSRD and more), article by article, from the EU Publications Office's consolidated texts, and tested it against Exa's web search.
The test
20 plain-language questions ("when is processing of personal data lawful", "which AI practices are banned", "what an invoice must contain for VAT"...), each with the article a correct answer must cite. A hit is a result that is that article. We scored Exa leniently: a page counted if its title, URL or opening text named the article and the act.
| Right article first | Right article in top 5 | |
|---|---|---|
EU law index (/law/search) |
10 / 20 | 19 / 20 |
| Exa search (auto) | 5 / 20 | 13 / 20 |
Exa mostly returned good pages about the law: regulator guidance, consultancy explainers, news. For "who is a gatekeeper" it returned dictionaries. That is useful context, but an agent that must cite the provision still has to find it.
Limits, honestly
20 questions is small, we wrote them, and we tuned our ranking on them. Next run: 100+ questions written before any tuning, plus Swedish and German.
Try it
- Plain HTTP:
GET https://tools.funwords.eu/law/search?q=which+AI+practices+are+banned - Exa's own SDK, one line changed:
new Exa(key, "https://tools.funwords.eu/v1"), then search withcategory: "law". - Product page: https://tools.funwords.eu/eu-law-search-api
Not legal advice; only the Official Journal text is authentic.
Top comments (0)