The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.

French Legal Document Vector Database

Overview of DILA Repository Datasets

This set is a collection of four vector databases which contains documents produced by various French governmental institutions made available by the DILA (Direction de l'Information légale et administrative) repository,

The original sources can be accessed at: https://echanges.dila.gouv.fr/OPENDATA/

Embeddification has been done with one of the best multilingual embedding model to date for administrative French, BGE-M3-Large

The vector databases have been processed with lancedb. Lancedb include the following features:

  • Support for BGE-M3-Large with varying context length.
  • Combination of queries including semantic, pure text and hybrid. For administrative texts best results are to be obtained with hybrid.

Dataset Descriptions

1. DOLE (Legislative Files)

  • Contains laws published since the beginning of the 12th legislature (June 2002)
  • Includes ordinances published since 2002
  • Contains laws in preparation (bills and proposals)
  • Columns : ['chunk_id', 'identifier', 'collection', 'id', 'date_creation', 'date_derniere_modification', 'date_debut', 'date_fin', 'libelle', 'word_count', 'text', 'character_count', 'chunk_word_count', 'name']
  • Vector column : text

2. CONSTIT (Constitutional Council Decisions)

  • Includes all decisions made by the Constitutional Council since its creation under the Constitution of October 4, 1958
  • Contains:
    • Constitutional reviews
    • Electoral disputes
    • Appointments
    • Other decisions
  • Columns : ['chunk_id', 'identifier', 'collection', 'id', 'nature', 'name', 'date', 'juridiction', 'solution', 'num_affaire', 'word_count', 'text', 'character_count', 'chunk_word_count']
  • Vector column : text

3. CNIL (National Commission on Information Technology and Civil Liberties)

  • Contains all CNIL deliberations since 1978, including:
    • Opinions
    • Recommendations
    • Simplified standards
    • Authorizations
  • Since 2012: Integration of authorization decisions (data processing, medical research)
  • Columns : ['chunk_id', 'identifier', 'collection', 'id', 'nature', 'numero', 'date_text', 'date_publi', 'etat_juridique', 'word_count','text', 'character_count', 'name','chunk_word_count']
  • Vector column : text

4. LEGI (National Legislation and Regulations)

  • Contains consolidated full text of national legislation and regulations, including:
    • Official codes
    • Laws
    • Decree-laws
    • Ordinances
    • Decrees
    • Selected orders
  • Columns: ['chunk_id', 'identifier', 'collection', 'etat_value', 'date_debut_value', 'name', 'article', 'word_count', 'text', 'character_count', 'chunk_word_count']
  • Vector column : text

Technical Implementation

Data Processing

  • Original format: XML within a complex nested folder structure
  • Converted to: Parquet format with relevant metadata in separate columns
  • Embedding model: BGE-M3-Large
  • Chunk size: Approximately 350 words for RAG system compatibility
  • Storage: LanceDB databases for improved retrieval methods (e.g., hybrid search)
  • The "text" column has been vectorized and stored in LanceDB databases
  • The main title of each document is in the "name" column
  • All other columns have been preserved as metadata for each entry

Collection-Specific Modifications

DOLE, CONSTIT, and CNIL

  • "name" column content prepended to each "text" entry

CNIL-Specific

  • Filtered to retain only entries with "VIGUEUR" status in etat_juridique column

LEGI-Specific

  • "name" column created by concatenating "titre" and "article" fields
  • "name" column content prepended to each "text" entry
  • Filtered to retain only entries with "VIGUEUR" or "VIGUEUR_DIFF" status in etat_value column
Downloads last month
4