--- language: - fr tags: - france - public-sector - embeddings - directory - open-data - government - etalab pretty_name: French State Administrations Directory size_categories: - 1K pip install pyarrow dataset = load_dataset("AgentPublic/state-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/state-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="state-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. ## 🐱 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 & License ### 🔗 Source : - [Lannuaire.Service-Public.fr](https://lannuaire.service-public.fr/) - [Data.Gouv.fr : Référentiel de l’organisation administrative de l’État](https://www.data.gouv.fr/fr/datasets/referentiel-de-lorganisation-administrative-de-letat/) ### 📄 Licence : **Open License (Etalab)** — This dataset is publicly available and can be reused under the conditions of the Etalab open license.