Skip to main content
HoneyHive supports flexible dataset schemas, making it easy to import datasets from Hugging Face or any other data source.

Prerequisites

  • An existing project
  • A HoneyHive data plane key with the project.dataset.post and project.datapoint.post permissions
  • HoneyHive Python SDK 1.8.0 or later
  • datasets library installed: pip install datasets
Go to Settings > Project > API Keys and open the Data Plane tab. Click Create API Key, name the key, set an expiration, and select the permissions this guide lists. Copy the key from the dialog, because it is shown only once, and store it as HH_DATA_PLANE_API_KEY. Then copy the Project ID from the same tab and store it as PROJECT_ID. See API Keys for how data plane keys work.

Import a Dataset

1

Install dependencies

2

Load and import

Python

Field Mapping

Use DatapointMapping to map HuggingFace dataset columns to HoneyHive datapoint fields: Any columns not listed in the mapping are automatically stored as metadata.

Example: Q&A Dataset

Python

Example: Classification Dataset

Python

Best Practices

Batch imports: For large datasets (1000+ rows), use the batching pattern from the main example above — split your data into chunks of 100 rows per add_datapoints call to avoid timeouts.

Next Steps

Run Experiments

Evaluate your application using the imported dataset

Export Datasets

Export datasets for external use