Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

TAI Scan Tool: Legal AI Compliance

Updated 7 July 2026
  • TAI Scan Tool is a retrieval-augmented generation system for Trustworthy AI legal self-assessment that uses minimal input to streamline compliance under the EU AI Act.
  • It employs a two-step workflow—pre-screening and detailed legal assessment—that retrieves and summarizes specific articles, recitals, and annexes for risk prediction.
  • Its modular, API-driven architecture integrates advanced embedding and ANN retrieval methods to help SMEs and startups achieve rapid, document-grounded legal guidance.

TAI Scan Tool is a Retrieval-Augmented Generation (RAG) system for Trustworthy AI self-assessment with minimalistic input, designed to make legal TAI self-assessment fast, lightweight, and actionable, especially for small and medium enterprises and startups that lack in-house legal or compliance expertise. In its current version, the tool focuses on the legal component of TAI under the EU Artificial Intelligence Act (AI Act, Regulation EU 2024/1689) and implements a two-step process consisting of pre-screening and assessment. Its assessment output includes an AI Act risk-level prediction and a curated set of relevant legal references—articles, recitals, and annexes—to support compliance, while its broader stated goal is to provide a practical, reproducible component that can be embedded into larger TAI governance frameworks (Davvetas et al., 23 Jul 2025).

1. Purpose, scope, and supported tasks

The tool is defined as a RAG-based legal self-assessment tool for AI systems that minimizes user burden by requiring only a few core descriptors of the system under review. This design distinguishes it from questionnaire-heavy, rule-based checklists. The stated goals are to enable rapid, transparent, and document-grounded guidance for legal alignment under the AI Act, and to offer a maintainable assessment component for developers, platform administrators, startups, and small and medium enterprises.

Its current scope is explicitly legal rather than ethical or robustness-oriented. The knowledge base is the AI Act itself, including articles, with outputs that can also reference recitals and annexes. The supported tasks include pre-screening for prohibited and high-risk indicators, AI Act risk-level determination, retrieval and summarization of obligations and relevant legal text, basic GPAI identification, and provider/deployer obligations mapping. Within the AI Act, the tool is tailored to compliance-relevant provisions such as Article 5 for prohibited practices, Article 6 and Annex III for classification of high-risk AI systems, horizontal obligations such as Articles 9, 12, 13, and 14, and role-specific obligations such as Articles 16 and 26 (Davvetas et al., 23 Jul 2025).

The emphasis on minimalistic input is central to its novelty. The paper presents this as a reduction of friction and time-to-value while still enabling meaningful risk predictions. Rather than encoding a brittle, manually maintained rule set, the system grounds assessment in retrieved legal passages and standardized generation.

2. Minimalistic input and the two-step workflow

The workflow is divided into a front-end pre-screening stage and a legal TAI assessment stage. The pre-screening stage operates as a gate. Its purpose is to notify and protect users from prohibited or high-risk deployments, determine whether the system is an AI system under the AI Act, and indicate whether GPAI applies. The outputs of this stage are a classification of the system as an AI system under the AI Act versus not an AI system, a risk indication of Prohibited, High-risk, or Not high-risk, and a GPAI Yes/No result. To proceed to the legal TAI assessment, the input configuration must not involve prohibited or high-risk practices and must be classified as an AI system under the AI Act (Davvetas et al., 23 Jul 2025).

The pre-screening interface uses checkbox inputs corresponding to the following questions:

  • whether the technological system meets all criteria to be an AI system under the AI Act
  • whether the system conducts any prohibited activities
  • whether the AI system is related to Union Harmonisation Legislation
  • whether the AI system is used in any high-risk applications
  • whether the AI system meets any exemption condition
  • whether the system is General Purpose AI

The legal TAI assessment then uses a five-field schema. The required fields are Role, Domain of application, Type of AI system, Type of input data, and Intended use. The paper gives examples such as Role = Provider or Deployer; Domain = “digital infrastructure,” “healthcare,” or “education”; Type of AI system = “biometric identification,” “recommendation system,” or “LLM assistant”; Type of input data = “images,” “sensor logs,” “text,” or “multimodal”; and Intended use = “real-time monitoring,” “assistive diagnosis,” or “game NPC behavior.” An example minimal input is Role: Provider; Domain: Digital infrastructure; Type of AI system: Predictive maintenance and orchestration; Type of input data: Log telemetry and network status; Intended use: Operational management of critical infrastructure (Davvetas et al., 23 Jul 2025).

This workflow is structured so that prohibited or clearly high-risk configurations are identified early, while acceptable configurations continue to a deeper retrieval-based legal assessment. The separation between gatekeeping and downstream legal guidance is one of the system’s defining design choices.

3. Architecture and retrieval pipeline

The deployment model is described as modular and containerized, with components communicating via REST APIs and supporting scaling on cloud or on-prem environments. The front-end orchestrates the flow between pre-screening and assessment, enforces the gate against prohibited and high-risk practices before running the full legal assessment, and provides a standardized user interface. The back end comprises a listener service, which receives assessment requests and can be integrated with external platforms such as the AI-On-Demand Platform, and a RAG inference service, which performs retrieval and generation (Davvetas et al., 23 Jul 2025).

The RAG stack uses the EU AI Act as its knowledge base. The embedding model is the Jina AI BERT-based model jinaai/jina-embeddings-v3, and the article-level vector index is stored locally. Approximate nearest neighbor retrieval is performed with Spotify’s Annoy, described as GPU-enabled. The generator is mistral-small3.2 served via Ollama, with HuggingFace local inference supported as an alternative backend. Prompt construction is customized to produce standardized outputs consisting of a risk-level plus a set of references to Articles, Recitals, and Annexes (Davvetas et al., 23 Jul 2025).

Retrieval follows a pre-retrieval query rewriting step using Mistral, which the paper describes as empirically tuned for optimal relevance and expansion. The rewritten query is embedded, nearest-neighbor search is performed over article embeddings, and the top-NN nearest neighbors are returned; in the qualitative scenarios reported, NN was commonly about $9$–$10$. These context passages are then passed to the generator to produce the final assessment and references. The indexed unit is the article, so chunking is article-level rather than paragraph-level, and no reranking is applied in the current “naive RAG” configuration (Davvetas et al., 23 Jul 2025).

The retrieval similarity function is given in cosine form:

cos⁡(θ)=x⋅y∥x∥∥y∥\cos(\theta) = \frac{x \cdot y}{\|x\| \|y\|}

and a ranking score is formalized as

S(d,q)=cos⁡(E(d),E(q)),S(d, q) = \cos(E(d), E(q)),

where E(⋅)E(\cdot) is the embedding function. The paper states that retrieval typically uses vector similarity, usually angular or cosine distance in Annoy.

4. Risk-level determination and compliance guidance

The output risk categories used by the tool are Prohibited, High-Risk, Medium-Risk, and Low-Risk. These categories are aligned to AI Act structure in the following sense: unacceptable risk corresponds to prohibited practices under Article 5; high-risk corresponds to Article 6 and Annex III, including Union harmonization legislation contexts and specific high-risk use cases; and the tool’s Low-Risk and Medium-Risk outputs correspond broadly to non-high-risk categories, such as limited or minimal risks (Davvetas et al., 23 Jul 2025).

The operative logic is described in observed terms. If pre-screening identifies prohibited activities under Article 5, the output is Prohibited. Otherwise, if high-risk conditions under Article 6 and Annex III are present, the output is High-risk. Otherwise, the system produces a non-high-risk result, expressed as Low-Risk or Medium-Risk, often accompanied by references to general transparency, data governance, and responsible practices. The paper also gives a formalization that it explicitly describes as not coded in the paper but consistent with the observed behavior. Let qq be the assessment query, let A5A5 be the embedding of the Article 5 corpus, let A6+A6+ be the corpus of Article 6 and Annex III, let NN0 be the horizontal obligations corpus, and let NN1 be the corpus of other role- or scenario-specific obligations. Then one can define

NN2

with a decision rule of the form

NN3

The paper adds that, in practice, the RAG generator uses retrieved passages to justify classification, so the decision boundary is implicitly induced by retrieval and generation rather than by a hard-coded tree (Davvetas et al., 23 Jul 2025).

The guidance returned with the classification is structured around three recurrent groups of legal material. The first group is horizontal obligations, especially Articles 9, 12, 13, and 14. The second group is classification resources, particularly Articles 5 and 6 and Annex III. The third group is scenario-specific or role-specific obligations, such as Article 15 on accuracy, robustness, and cybersecurity; Article 16 on obligations of providers of high-risk AI systems; Article 26 on obligations of deployers of high-risk AI systems; Article 27 on fundamental rights impact assessment; Article 42 on presumption of conformity; and Article 49 on registration. The standardized output therefore combines a risk-level with a structured list of references and generator-produced obligation summaries (Davvetas et al., 23 Jul 2025).

5. Evaluation, interpretability, and observed reasoning behavior

The reported evaluation is qualitative and uses four scenarios covering Prohibited, High-Risk (Provider), High-Risk (Deployer), and Low-Risk cases. In the prohibited scenario, real-time remote biometric identification was predicted as Prohibited, with retrieved Articles including 14, 13, 26, 12, 49, 16, 9, 6, 5, and 27. In the High-Risk (Provider) scenario, AI-driven digital infrastructure management was predicted as High-Risk, with retrieved references including 13, 14, 9, 12, 27, 15, 17, 8, and 42. In the High-Risk (Deployer) scenario in the same domain, the prediction was again High-Risk, with retrieved references including 13, 14, 9, 12, 27, 16, 26, 15, 8, and 49. In the Low-Risk (Provider) scenario, video game NPC behavior was predicted as Low-Risk, with retrieved references including 13, 14, 9, 15, 16, 8, 6, 42, 12, and 10 (Davvetas et al., 23 Jul 2025).

Across these scenarios, the paper reports that risk predictions matched the expected ground truth. Retrieval also consistently yielded three semantic groups: horizontal obligations, classification rules, and scenario-specific obligations. This grouped retrieval behavior functions as an interpretability mechanism, because it exposes not only the final classification but also the legal structure through which that classification is justified.

The paper highlights several qualitative observations about reasoning behavior. High-risk articles—especially Articles 9, 12, 13, and 14—appear frequently because they are horizontal obligations with broad applicability and frequent presence in the Act. Overlap between provider and deployer obligations can lead to occasional cross-role references, such as Article 16 appearing in deployer scenarios. Most notably, the tool’s reasoning is described as heavily comparative to high-risk profiles. The stated explanation is that the AI Act dedicates extensive text to high-risk settings, making those terms and contexts statistically frequent in embeddings; retrieval therefore often brings high-risk obligations into context in order to establish a decision boundary by comparison (Davvetas et al., 23 Jul 2025).

Traceability is further supported by the system’s practice of returning article numbers and titles, allowing users to verify obligations and rationale directly in the source law. The pre-screening stage also contributes to interpretability by making explicit why some scenarios cannot proceed to full assessment, such as cases involving prohibited practices.

The paper provides sufficient operational detail to reproduce the pipeline using public models, although it does not provide repository links. Reproducibility-relevant elements include the use of jinaai/jina-embeddings-v3 for embeddings, Spotify Annoy for approximate nearest neighbor indexing, mistral-small3.2 via Ollama for generation, a local vector database of article-level embeddings, pre-retrieval query rewriting with Mistral, and standardized prompting. The modular architecture also supports programmatic integration via the listener API and deployment either locally or in the cloud (Davvetas et al., 23 Jul 2025).

In relation to existing compliance tools, the system is contrasted with rule-based checkers such as the Digital SME Alliance AI Act Conformity Tool and the Future of Life Institute EU AI Act Compliance Checker. The stated differences are that TAI Scan Tool minimizes input burden, avoids large questionnaires, uses data-driven and document-grounded retrieval rather than manually maintained rules, and provides semantically rich, passage-backed guidance. The paper also positions it within legal-domain RAG systems intended to mitigate hallucinations in knowledge-intensive domains by combining embeddings, ANN retrieval, query rewriting, and LLM generation in a configuration that is simple to scale and maintain (Davvetas et al., 23 Jul 2025).

Its stated limitations are substantial and delimit its present applicability. Coverage is restricted to legal assessment focused on the AI Act; ethical and robustness components are not yet implemented. The retrieval configuration is a “naive” pipeline without reranking, and embeddings plus ANN retrieval may bias results toward well-represented high-risk text, potentially affecting precision in niche, non-high-risk domains. The knowledge base is primarily the AI Act, so broader regulatory guidance such as harmonized standards, ISO/IEC, or NIST frameworks is not yet integrated. Planned extensions include adding more documents, expanding to ethical and robust TAI components, introducing quantitative evaluation and advanced retrieval techniques such as reranking, improving technical robustness and guardrails, and extending obligations mapping across standards and frameworks (Davvetas et al., 23 Jul 2025).

Within the literature, the acronym “TAI” is not unique. In this tool, TAI denotes Trustworthy AI. By contrast, arXiv also contains “TAI” usages referring to International Atomic Time in “Contributing to TAI with a Secondary Representation of the SI Second” (Guéna et al., 2014) and to the “Threats of Artificial Intelligence Scale (TAI)” (Kieslich et al., 2020). This terminological overlap makes disambiguation important when situating TAI Scan Tool within adjacent arXiv-indexed work.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to TAI Scan Tool.