load_dataset#

langchain.evaluation.loading.load_dataset(uri: str) list[dict][source]#

Load a dataset from the LangChainDatasets on HuggingFace.

Parameters:

uri (str) – The uri of the dataset to load.

Returns:

A list of dictionaries, each representing a row in the dataset.

Return type:

list[dict]

Prerequisites

pip install datasets

Examples

from langchain.evaluation import load_dataset
ds = load_dataset("llm-math")