AI4DRPM
  • Quick Start (Docker)
    • Prerequisites
    • Setup
    • Access
    • Verify
    • Stop
  • Installation (Manual)
    • Prerequisites
    • Setup
    • Run
    • Frontend (Optional)
    • Development Commands
    • Troubleshooting

Architecture

  • System Architecture Overview
    • Introduction
    • Architectural Diagram (AS-IS)
    • Target Architectural Diagram (TO-BE)
    • Layer Descriptions
      • Web Layer
      • Service Layer
        • Resource Services (services/resources/)
        • Engine Services (services/engine/)
        • Haystack Integration (services/engine/haystack/)
        • Shared Services (services/shared/)
        • Bulk Services (services/bulk/)
      • Data Layer
      • Task Queue & Workers
      • Authentication & Security
      • Utilities Layer
    • Technology Integration Points
      • External APIs
      • Databases
      • Message Queues
    • Configuration Management
    • Logging & Monitoring
      • Logging
    • Deployment Architecture
      • Docker Compose Deployment
  • Technology Stack
    • Core Technologies
      • Backend Framework
      • Programming Language
    • Database & Persistence
      • Relational Database
      • ORM
      • Database Migrations
    • Caching & Message Broker
    • Asynchronous Task Processing
    • AI & Machine Learning
      • Large Language Models
      • Machine Learning
      • Natural Language Processing
    • Semantic Web & RDF
    • Authentication & Security
    • HTTP & Networking
    • Document Processing
    • Development Tools
      • Testing
      • Documentation
      • Dependency Management
    • Data Validation
    • Containerization
    • Web Server (Production)
    • Monitoring & Logging

Service Layer

  • Service Layer Overview
    • Resource Services (ai4drpm/services/resources/)
    • Engine Services (ai4drpm/services/engine/)
    • Shared Services (ai4drpm/services/shared/)
    • Bulk Services (ai4drpm/services/bulk/)
  • Resource Services
    • Document Collection Service
    • Document Metadata Service
    • Document Parsing Service
    • Document Conversion Service
    • Document Utilities
      • create_document_dicts_from_provisions()
    • Legal Resource Service
    • Provision Service
    • Classification Service
    • Analysis Service
    • Statement Service
    • Category Service
    • Resources Exceptions
      • ClassificationNotFoundError
      • ResourceNotFoundError
      • CategoryValidationError
  • Engine Services
    • Pipeline Service
      • Key Components
      • Execution Flow
    • Embedding Service
    • Haystack Enterprise Service
    • Token Usage Service
      • Key Functions
    • Engine Exceptions
  • Shared Services
    • User Service
    • Refresh Token Service
    • Statistics Service
    • Token Usage Service
    • Task Service
    • MLflow Service
      • GitLabMLflowService
        • GitLabMLflowService.EXPERIMENT_CLASSIFIERS
        • GitLabMLflowService.EXPERIMENT_LLM_PIPELINES
        • GitLabMLflowService.EXPERIMENT_ML_INFERENCE
        • GitLabMLflowService.EXPERIMENT_CLASSIFIERS
        • GitLabMLflowService.EXPERIMENT_LLM_PIPELINES
        • GitLabMLflowService.EXPERIMENT_ML_INFERENCE
        • GitLabMLflowService.__init__()
        • GitLabMLflowService.enabled
        • GitLabMLflowService.mlflow
        • GitLabMLflowService.client
        • GitLabMLflowService.start_run()
        • GitLabMLflowService.list_registered_models()
        • GitLabMLflowService.register_model()
        • GitLabMLflowService.get_latest_model_version()
        • GitLabMLflowService.load_model()
        • GitLabMLflowService.log_sklearn_model()
        • GitLabMLflowService.increment_version()
        • GitLabMLflowService.get_next_version()
        • GitLabMLflowService.get_model_version_run_id()
        • GitLabMLflowService.load_model_from_run()
        • GitLabMLflowService.load_vectorizer_from_run()
      • get_mlflow_service()
      • reset_mlflow_service()
    • Model Cache Service
    • Classifier Discovery Service
      • DiscoveredClassifier
        • DiscoveredClassifier.name
        • DiscoveredClassifier.source
        • DiscoveredClassifier.latest_version
        • DiscoveredClassifier.name
        • DiscoveredClassifier.source
        • DiscoveredClassifier.latest_version
        • DiscoveredClassifier.__init__()
      • ClassifierDiscoveryService
        • ClassifierDiscoveryService.__init__()
        • ClassifierDiscoveryService.discover_all()
        • ClassifierDiscoveryService.exists()
        • ClassifierDiscoveryService.get()
      • get_classifier_discovery_service()
      • reset_classifier_discovery_service()
  • Bulk Services
    • Bulk Orchestrator

Task Processing

  • Task Processing
    • Task Definitions
      • Available Tasks
    • Task Handlers
      • Handler Classes
    • Starting the Worker
  • Task Definitions
    • Available Tasks
  • Task Handlers
    • Handler Classes

Data Layer

  • Overview
    • Architecture
      • Layer Organization
      • Domain Organization
      • Entity Relationship Diagram
      • Migrations
      • Session Management
  • Database Configuration
    • Overview
    • Key Components
      • Database URL
      • SessionLocal
      • get_db Dependency
      • Engine Configuration
    • Features
    • Usage Example
  • Database Models
    • Overview
    • Model Architecture
      • Base Model
      • Relationships
      • Association Tables
    • Model Domains
      • Authentication Models
      • Resource Models
      • Analysis Models
      • Category Models
      • Document Models
      • Pipeline Models
        • Pipeline
      • Query Models
      • Task Models
      • Token Usage Model
        • Key Features
        • Usage Patterns
  • Repositories
    • Repository Organization
      • Resources Repositories
        • Legal Resource Repository
        • Classification Repository
        • Analysis Repository
        • Category Repository
        • Document Repository
      • Base Repository
      • Pipeline Repository
      • Token Usage Repository
      • Task Repository
      • SPARQL Query Repository
      • User Repository

Authentication

  • Authentication & Security
    • OIDC Flow
      • Claim mapping
    • Legacy JWT (fallback)
  • Scopes & Permissions
    • Available Scopes
    • Scope-Based Authorization
    • Implementing Custom Scopes
  • IdP Configuration Guide
    • 1. Required IdP Settings
    • 2. Claim Configuration
    • 3. Group/Role Mapping
    • 4. EULogin-Specific Notes
  • Migration Guide: Legacy JWT to OIDC
    • 1. Run the Database Migration
    • 2. Configure OIDC Environment Variables
    • 3. First OIDC Login — Automatic Account Linking
    • 4. Verify All Users Are Linked
    • 5. Optional: Remove Legacy Login

Utilities

  • Utilities Overview
    • Modules
      • SPARQL Utilities
        • Key Features
      • General Utilities
        • Key Functions
      • Refresh Token Utilities
      • Serialization Utilities
  • SPARQL Utilities
    • Key Features
  • General Utilities
    • Key Functions

Development

  • Testing
    • Test Organization
    • Running Tests
      • Basic Test Execution
      • Test Configuration
      • Test Fixtures
      • Async Test Support
    • Test Data
    • Coverage
AI4DRPM
  • Repositories
  • Resources Repositories
  • Legal Resource Repository
  • View page source

Legal Resource Repository

Repository for managing legal resources with optimized filtering and metadata update support.

Previous Next

© Copyright 2025, European Commission.

Built with Sphinx using a theme provided by Read the Docs.