Pinecone Datasets
Install
pip install pinecone-datasets
For development, see MAINTAINERS.md for setup instructions using uv.
Loading public datasets
Pinecone hosts a public datasets catalog, you can load a dataset by name using list_datasets and load_dataset functions. This will use the default catalog endpoint (currently GCS) to list and load datasets.
from pinecone_datasets import list_datasets, load_dataset
list_datasets()
# ["quora_all-MiniLM-L6-bm25", ... ]
dataset = load_dataset("quora_all-MiniLM-L6-bm25")
dataset.head()
# Prints
# ┌─────┬───────────────────────────┬─────────────────────────────────────┬───────────────────┬──────┐
# │ id ┆ values ┆ sparse_values ┆ metadata ┆ blob │
# │ ┆ ┆ ┆ ┆ │
# │ str ┆ list[f32] ┆ struct[2] ┆ struct[3] ┆ │
# ╞═════╪═══════════════════════════╪═════════════════════════════════════╪═══════════════════╪══════╡
# │ 0 ┆ [0.118014, -0.069717, ... ┆ {[470065541, 52922727, ... 22364... ┆ {2017,12,"other"} ┆ .... │
# │ ┆ 0.0060... ┆ ┆ ┆ │
# └─────┴───────────────────────────┴─────────────────────────────────────┴───────────────────┴──────┘
Usage - Accessing data
Each dataset has three main attributes, documents, queries, and metadata which are lazily loaded the first time they are accessed. You may notice a delay as the underlying parquet files are being downloaded the first time these attributes are accessed.
Pinecone Datasets is build on top of pandas. documents and queries are lazily-loaded pandas dataframes. This means that you can use all the pandas API to access the data. In addition, we provide some helper functions to access the data in a more convenient way.
accessing the documents and queries dataframes is done using the documents and queries properties. These properties are lazy and will only load the data when accessed.
from pinecone_datasets import list_datasets, load_dataset
dataset = load_dataset("quora_all-MiniLM-L6-bm25")
document_df: pd.DataFrame = dataset.documents
query_df: pd.DataFrame = dataset.queries
Usage - Iterating over documents
The Dataset class has helpers for iterating over your dataset. This is useful for upserting a dataset to an index, or for benchmarking.
# List Iterator, where every list of size N Dicts with ("id", "values", "sparse_values", "metadata")
dataset.iter_documents(batch_size=n)
# Dict Iterator, where every dict has ("vector", "sparse_vector", "filter", "top_k")
dataset.iter_queries()
Upserting to Index
To upsert data to the index, you should install the Pinecone SDK
from pinecone import Pinecone, ServerlessSpec
from pinecone_datasets import load_dataset, list_datasets
# See what datasets are available
for ds in list_datasets():
print(ds)
# Download embeddings data
dataset = load_dataset(dataset_name)
# Instantiate a Pinecone client using API key from app.pinecone.io
pc = Pinecone(api_key="key")
# Create a Pinecone index
index_config = pc.create_index(
name="demo-index",
dimension=dataset.metadata.dense_model.dimension,
spec=ServerlessSpec(cloud="aws", region="us-east1"),
)
# Instantiate an index client
index = pc.Index(host=index_config.host)
# Upsert data from the dataset
index.upsert_from_dataframe(df=dataset.documents)
Metadata
Release files for pinecone-datasets 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pinecone_datasets-1.1.0.tar.gz | 246.0 kB | With provenance | Details for pinecone_datasets-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pinecone_datasets-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for pinecone_datasets-1.1.0-py3-none-any.whl |
Total release size: 269.4 kB
Release files / pinecone_datasets-1.1.0.tar.gz
| Download URL | pinecone_datasets-1.1.0.tar.gz |
|---|---|
| Size | 246.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d4e9c7b61611356577b8002ee841b6003b47932da5ef469a8f858d0e6e58d91
|
|
BLAKE2b-256 checksum How to use checksums |
291d22a55a4a8cf6cb24448e5506f564b3b0e0c0d5b5fc10efc54478cfb41526
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logRelease files / pinecone_datasets-1.1.0-py3-none-any.whl
| Download URL | pinecone_datasets-1.1.0-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41e313e053dc44a3fcf353dedadf3e5a0188a6ebbcecec3cc3a3fc53822db159
|
|
BLAKE2b-256 checksum How to use checksums |
caba3b0d23fd887c40409ca0939b572c9181f1a87f442697f78e20d0ae1d000e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logSecurity for pinecone-datasets 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pinecone_datasets-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.