ArthurSrz commited on
Commit
29c33f5
·
verified ·
1 Parent(s): dc8d7eb

Update dataset card

Browse files
Files changed (1) hide show
  1. README.md +12 -148
README.md CHANGED
@@ -1,154 +1,22 @@
1
  ---
2
  license: etalab-2.0
3
  language:
4
- - fr
5
  tags:
6
- - legal
7
- - french-law
8
- - embeddings
9
- - legifrance
10
- - mistral
11
  size_categories:
12
- - 1K<n<10K
13
- dataset_info:
14
- features:
15
- - name: chunk_text
16
- dtype: string
17
- - name: embedding
18
- list: float32
19
- length: 1024
20
- - name: id_legifrance
21
- dtype: string
22
- - name: code_name
23
- dtype: string
24
- - name: chunk_index
25
- dtype: int32
26
- - name: start_position
27
- dtype: int32
28
- - name: end_position
29
- dtype: int32
30
- - name: code
31
- dtype: string
32
- - name: num
33
- dtype: string
34
- - name: etat
35
- dtype: string
36
- - name: fullSectionsTitre
37
- dtype: string
38
- - name: article_id_legifrance
39
- dtype: string
40
- - name: article_code
41
- dtype: string
42
- - name: article_num
43
- dtype: string
44
- - name: article_cid
45
- dtype: string
46
- - name: article_idEli
47
- dtype: string
48
- - name: article_idEliAlias
49
- dtype: string
50
- - name: article_idTexte
51
- dtype: string
52
- - name: article_cidTexte
53
- dtype: string
54
- - name: article_texte
55
- dtype: string
56
- - name: article_texteHtml
57
- dtype: string
58
- - name: article_nota
59
- dtype: string
60
- - name: article_notaHtml
61
- dtype: string
62
- - name: article_surtitre
63
- dtype: string
64
- - name: article_historique
65
- dtype: string
66
- - name: article_dateDebut
67
- dtype: string
68
- - name: article_dateFin
69
- dtype: string
70
- - name: article_dateDebutExtension
71
- dtype: string
72
- - name: article_dateFinExtension
73
- dtype: string
74
- - name: article_etat
75
- dtype: string
76
- - name: article_type_article
77
- dtype: string
78
- - name: article_nature
79
- dtype: string
80
- - name: article_origine
81
- dtype: string
82
- - name: article_version_article
83
- dtype: string
84
- - name: article_versionPrecedente
85
- dtype: string
86
- - name: article_multipleVersions
87
- dtype: bool
88
- - name: article_sectionParentId
89
- dtype: string
90
- - name: article_sectionParentCid
91
- dtype: string
92
- - name: article_sectionParentTitre
93
- dtype: string
94
- - name: article_fullSectionsTitre
95
- dtype: string
96
- - name: article_ordre
97
- dtype: int32
98
- - name: article_partie
99
- dtype: string
100
- - name: article_livre
101
- dtype: string
102
- - name: article_titre
103
- dtype: string
104
- - name: article_chapitre
105
- dtype: string
106
- - name: article_section
107
- dtype: string
108
- - name: article_sous_section
109
- dtype: string
110
- - name: article_paragraphe
111
- dtype: string
112
- - name: article_infosComplementaires
113
- dtype: string
114
- - name: article_infosComplementairesHtml
115
- dtype: string
116
- - name: article_conditionDiffere
117
- dtype: string
118
- - name: article_infosRestructurationBranche
119
- dtype: string
120
- - name: article_infosRestructurationBrancheHtml
121
- dtype: string
122
- - name: article_renvoi
123
- dtype: string
124
- - name: article_comporteLiensSP
125
- dtype: bool
126
- - name: article_idTechInjection
127
- dtype: string
128
- - name: article_refInjection
129
- dtype: string
130
- - name: article_numeroBo
131
- dtype: string
132
- - name: article_inap
133
- dtype: string
134
- splits:
135
- - name: train
136
- num_bytes: 12463091
137
- num_examples: 1630
138
- download_size: 5174173
139
- dataset_size: 12463091
140
- configs:
141
- - config_name: default
142
- data_files:
143
- - split: train
144
- path: data/train-*
145
  ---
146
 
147
  # Open Codes
148
 
149
  Open dataset of French legal code articles with embeddings.
150
 
151
- Chunked articles from 5 French legal codes sourced from
152
  [Legifrance](https://www.legifrance.gouv.fr/) via the PISTE API,
153
  with 1024-dimensional embeddings generated by Mistral AI.
154
 
@@ -161,17 +29,13 @@ legal code article.
161
  - **License**: [Licence Ouverte / Etalab 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence/)
162
  - **Embeddings**: Mistral AI `mistral-embed` (1024 dimensions)
163
  - **Update frequency**: Daily (nightly sync at 02:00 UTC, dataset push at 06:00 UTC)
164
- - **Rows**: ~1,630 chunks from ~1,630 articles
 
165
 
166
  ### Legal codes included
167
 
168
- | Code ID | Name |
169
- |---------|------|
170
- | `LEGITEXT000006070633` | Code general des collectivites territoriales |
171
- | `LEGITEXT000006070162` | Code des communes |
172
- | `LEGITEXT000006070239` | Code electoral |
173
- | `LEGITEXT000006074075` | Code de l'urbanisme |
174
- | `LEGITEXT000006070721` | Code civil |
175
 
176
  ## Schema
177
 
 
1
  ---
2
  license: etalab-2.0
3
  language:
4
+ - fr
5
  tags:
6
+ - legal
7
+ - french-law
8
+ - embeddings
9
+ - legifrance
10
+ - mistral
11
  size_categories:
12
+ - 10K<n<100K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  ---
14
 
15
  # Open Codes
16
 
17
  Open dataset of French legal code articles with embeddings.
18
 
19
+ Chunked articles from French legal codes sourced from
20
  [Legifrance](https://www.legifrance.gouv.fr/) via the PISTE API,
21
  with 1024-dimensional embeddings generated by Mistral AI.
22
 
 
29
  - **License**: [Licence Ouverte / Etalab 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence/)
30
  - **Embeddings**: Mistral AI `mistral-embed` (1024 dimensions)
31
  - **Update frequency**: Daily (nightly sync at 02:00 UTC, dataset push at 06:00 UTC)
32
+ - **Codes**: Dynamically sourced from `LEX_codes_piste` (active codes only)
33
+ - **Quality**: Dedup + stale-chunk filtering applied before every push
34
 
35
  ### Legal codes included
36
 
37
+ The list of legal codes is dynamic and managed in the `LEX_codes_piste` table.
38
+ Adding a new code there (with `actif=true`) automatically includes it in the next sync and export.
 
 
 
 
 
39
 
40
  ## Schema
41