Datasets:
Update dataset card
Browse files123445678910678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314412131415161718151192021226 unmodified lines29303116432333435361681691701711721731743738394041---license: etalab-2.0language:- fr - frtags:- legal- french-law- embeddings- legifrance- mistral - legal - french-law - embeddings - legifrance - mistralsize_categories:- 1K<n<10Kdataset_info: features: - name: chunk_text dtype: string - name: embedding list: float32 length: 1024 - name: id_legifrance dtype: string - name: code_name dtype: string - name: chunk_index dtype: int32 - name: start_position dtype: int32 - name: end_position dtype: int32 - name: code dtype: string - name: num dtype: string - name: etat dtype: string - name: fullSectionsTitre dtype: string - name: article_id_legifrance dtype: string - name: article_code dtype: string - name: article_num dtype: string - name: article_cid dtype: string - name: article_idEli dtype: string - name: article_idEliAlias dtype: string - name: article_idTexte dtype: string - name: article_cidTexte dtype: string - name: article_texte dtype: string - name: article_texteHtml dtype: string - name: article_nota dtype: string - name: article_notaHtml dtype: string - name: article_surtitre dtype: string - name: article_historique dtype: string - name: article_dateDebut dtype: string - name: article_dateFin dtype: string - name: article_dateDebutExtension dtype: string - name: article_dateFinExtension dtype: string - name: article_etat dtype: string - name: article_type_article dtype: string - name: article_nature dtype: string - name: article_origine dtype: string - name: article_version_article dtype: string - name: article_versionPrecedente dtype: string - name: article_multipleVersions dtype: bool - name: article_sectionParentId dtype: string - name: article_sectionParentCid dtype: string - name: article_sectionParentTitre dtype: string - name: article_fullSectionsTitre dtype: string - name: article_ordre dtype: int32 - name: article_partie dtype: string - name: article_livre dtype: string - name: article_titre dtype: string - name: article_chapitre dtype: string - name: article_section dtype: string - name: article_sous_section dtype: string - name: article_paragraphe dtype: string - name: article_infosComplementaires dtype: string - name: article_infosComplementairesHtml dtype: string - name: article_conditionDiffere dtype: string - name: article_infosRestructurationBranche dtype: string - name: article_infosRestructurationBrancheHtml dtype: string - name: article_renvoi dtype: string - name: article_comporteLiensSP dtype: bool - name: article_idTechInjection dtype: string - name: article_refInjection dtype: string - name: article_numeroBo dtype: string - name: article_inap dtype: string splits: - name: train num_bytes: 12463091 num_examples: 1630 download_size: 5174173 dataset_size: 12463091configs:- config_name: default data_files: - split: train path: data/train-* - 10K<n<100K---
# Open Codes
Open dataset of French legal code articles with embeddings.
Chunked articles from 5 French legal codes sourced fromChunked articles from French legal codes sourced from[Legifrance](https://www.legifrance.gouv.fr/) via the PISTE API,with 1024-dimensional embeddings generated by Mistral AI.
6 unmodified lines- **License**: [Licence Ouverte / Etalab 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence/)- **Embeddings**: Mistral AI `mistral-embed` (1024 dimensions)- **Update frequency**: Daily (nightly sync at 02:00 UTC, dataset push at 06:00 UTC)- **Rows**: ~1,630 chunks from ~1,630 articles- **Codes**: Dynamically sourced from `LEX_codes_piste` (active codes only)- **Quality**: Dedup + stale-chunk filtering applied before every push
### Legal codes included
| Code ID | Name ||---------|------|| `LEGITEXT000006070633` | Code general des collectivites territoriales || `LEGITEXT000006070162` | Code des communes || `LEGITEXT000006070239` | Code electoral || `LEGITEXT000006074075` | Code de l'urbanisme || `LEGITEXT000006070721` | Code civil |The list of legal codes is dynamic and managed in the `LEX_codes_piste` table.Adding a new code there (with `actif=true`) automatically includes it in the next sync and export.
## Schema
README.md+12-148