Skip to main content
Loads a hosted sample dataset, ready to upsert and query — useful for quickstarts, demos, and tests without generating your own vectors. The dataset is fetched from a public S3 bucket on first use and cached locally for subsequent calls.
load_sample_dataset is a module-level function:

Parameters

Each dataset’s SHA-256 digest is pinned in the SDK and verified both after download and on every cache read, so a tampered download or cache file is rejected and re-fetched rather than trusted.

Returns

SampleDataset: A dataclass combining dataset metadata, upsert-ready convenience fields, the raw parallel arrays, and ground-truth fixture data:

Exceptions

  • Throws if the dataset name is unknown.
  • Throws if the download fails.
  • Throws if the downloaded dataset fails its integrity (SHA-256) check.

Example Usage