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