--- language: - fr tags: - france - public-sector - embeddings - directory - open-data - government - etalab pretty_name: French Local Administrations Directory size_categories: - 10K pip install pyarrow dataset = load_dataset("AgentPublic/local-administrations-directory") df = pd.DataFrame(dataset['train']) df["embeddings_bge-m3"] = df["embeddings_bge-m3"].apply(json.loads) ``` Otherwise, if you have already downloaded all parquet files from the `data/local-administrations-directory-latest/` folder : ```python import pandas as pd import json # The Pyarrow library must be installed in your Python environment for this example. By doing => pip install pyarrow df = pd.read_parquet(path="local-administrations-directory-latest/") # Assuming that all parquet files are located into this folder df["embeddings_bge-m3"] = df["embeddings_bge-m3"].apply(json.loads) ``` You can then use the dataframe as you wish, such as by inserting the data from the dataframe into the vector database of your choice. ## 📚 Source & License ## 🐱 GitHub repository : The project MediaTech is open source ! You are free to contribute or see the complete code used to build the dataset by checking the [GitHub repository](https://github.com/etalab-ia/mediatech) ## 🔗 Source : - [Lannuaire.Service-Public.fr](https://lannuaire.service-public.fr/) - [Data.Gouv.fr : Service-public.fr - Annuaire de l’administration - Base de données locales](https://www.data.gouv.fr/datasets/service-public-fr-annuaire-de-l-administration-base-de-donnees-locales/) ## 📄 Licence : **Open License (Etalab)** — This dataset is publicly available and can be reused under the conditions of the Etalab open license.