Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# French Legal Document Vector Database
|
2 |
+
## Overview of DILA Repository Datasets
|
3 |
+
|
4 |
+
This document describes a vector database containing four datasets from the DILA
|
5 |
+
(Direction de l'Information légale et administrative) repository, which contains
|
6 |
+
documents produced by various French governmental institutions.
|
7 |
+
|
8 |
+
The complete repository can be accessed at: https://echanges.dila.gouv.fr/OPENDATA/
|
9 |
+
|
10 |
+
## Dataset Descriptions
|
11 |
+
|
12 |
+
### 1. DOLE (Legislative Files)
|
13 |
+
- Contains laws published since the beginning of the 12th legislature (June 2002)
|
14 |
+
- Includes ordinances published since 2002
|
15 |
+
- Contains laws in preparation (bills and proposals)
|
16 |
+
|
17 |
+
### 2. CONSTIT (Constitutional Council Decisions)
|
18 |
+
- Includes all decisions made by the Constitutional Council since its creation under
|
19 |
+
the Constitution of October 4, 1958
|
20 |
+
- Contains:
|
21 |
+
- Constitutional reviews
|
22 |
+
- Electoral disputes
|
23 |
+
- Appointments
|
24 |
+
- Other decisions
|
25 |
+
|
26 |
+
### 3. CNIL (National Commission on Information Technology and Civil Liberties)
|
27 |
+
- Contains all CNIL deliberations since 1978, including:
|
28 |
+
- Opinions
|
29 |
+
- Recommendations
|
30 |
+
- Simplified standards
|
31 |
+
- Authorizations
|
32 |
+
- Since 2012: Integration of authorization decisions (data processing, medical research)
|
33 |
+
|
34 |
+
### 4. LEGI (National Legislation and Regulations)
|
35 |
+
- Contains consolidated full text of national legislation and regulations, including:
|
36 |
+
- Official codes
|
37 |
+
- Laws
|
38 |
+
- Decree-laws
|
39 |
+
- Ordinances
|
40 |
+
- Decrees
|
41 |
+
- Selected orders
|
42 |
+
|
43 |
+
## Technical Implementation
|
44 |
+
|
45 |
+
### Data Processing
|
46 |
+
- Original format: XML within a complex nested folder structure
|
47 |
+
- Converted to: Parquet format with relevant metadata in separate columns
|
48 |
+
- Embedding model: BGE-M3-Large
|
49 |
+
- Chunk size: Approximately 350 words for RAG system compatibility
|
50 |
+
- Storage: LanceDB databases for improved retrieval methods (e.g., hybrid search)
|
51 |
+
- The "text" column has been vectorized and stored in LanceDB databases
|
52 |
+
- The main title of each document comes from the "name" column
|
53 |
+
- All other columns have been preserved as metadata for each entry
|
54 |
+
|
55 |
+
### Collection-Specific Modifications
|
56 |
+
|
57 |
+
#### DOLE, CONSTIT, and CNIL
|
58 |
+
- "name" column content prepended to each "text" entry
|
59 |
+
|
60 |
+
#### CNIL-Specific
|
61 |
+
- Filtered to retain only entries with "VIGUEUR" status in etat_juridique column
|
62 |
+
|
63 |
+
#### LEGI-Specific
|
64 |
+
- Split into two parquet files for improved handling with pandas and other libraries
|
65 |
+
- "name" column created by concatenating "titre" and "article" fields
|
66 |
+
- "name" column content prepended to each "text" entry
|
67 |
+
- Filtered to retain only entries with "VIGUEUR" or "VIGUEUR_DIFF" status in etat_value column
|