Skip to main content
Loads a hosted sample dataset, ready to upsert and query, for quickstarts, demos, and tests without generating your own vectors. The dataset is downloaded from a public S3 bucket on first use and cached on disk for later calls.

Parameters

The functions take no context.Context. The download has a fixed 120-second timeout, and the decompressed dataset is capped at 512 MiB. Each dataset’s SHA-256 digest is pinned in the SDK and checked after download and on every cache read, so a tampered file is rejected and downloaded again.

Returns

*SampleDataset:

Errors

The dataset name is unknown.
The download returns a non-200 status. A network failure or timeout returns the underlying error (for example a *url.Error) instead, without this sentinel.
The file fails its SHA-256 check.
The decompressed dataset exceeds 512 MiB.
These are wrapped with extra context; match them with errors.Is.

Example Usage