Skip to main content
This page lists the catalog of public Pinecone datasets and shows you how to work with them using the Python pinecone-datasets library. To create, upload, and list your own dataset for use by other Pinecone users, see Creating datasets.

Available public datasets

Install the pinecone-datasets library

Pinecone provides a Python library for working with public Pinecone datasets. To install the library, run the following command:
Python

List public datasets

To list the available public Pinecone datasets as an object, use the list_datasets() method:
Python
To list the available datasets as a Panda dataframe, pass the as_df=True argument:
Python

Load a dataset

To load a dataset into memory, use the load_dataset() method. You can use load a Pinecone public dataset or your own dataset. Example The following example loads the quora_al-MiniLM-L6-bm25 Pinecone public dataset.
Python

Iterate over datasets

You can iterate over vector data in a dataset using the iter_documents() method. You can use this method to upsert or update vectors, to automate benchmarking, or other tasks. Example The following example loads the quora_all-MiniLM-L6-bm25 dataset and then iterates over the documents in the dataset in batches of 100 and upserts the vector data to a Pinecone serverless index named docs-example.
Python

Upsert a dataset as a dataframe

To quickly ingest data when using the Python SDK, use the upsert_from_dataframe method. The method includes retry logic andbatch_size, and is performant especially with Parquet file data sets. The following example upserts the uora_all-MiniLM-L6-bm25 dataset as a dataframe.
Python

See also