|
# French Legal Document Vector Database |
|
## Overview of DILA Repository Datasets |
|
|
|
This is a vector database containing four datasets from the DILA |
|
(Direction de l'Information légale et administrative) repository, which contains |
|
documents produced by various French governmental institutions. |
|
|
|
The complete repository can be accessed at: https://echanges.dila.gouv.fr/OPENDATA/ |
|
|
|
## 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) |
|
|
|
### 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 |
|
|
|
### 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) |
|
|
|
### 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 |
|
|
|
## 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 |