Toggle Menu
Prev Up Next

# `langchain.evaluation.loading`.load_dataset

langchain.evaluation.loading.load_dataset(uri: str) → List[Dict]

  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")

# Examples using load_dataset

- Initialize the language model