langchain.evaluation.loading.load_dataset¶
langchain.evaluation.loading.load_dataset(uri: str) → List[Dict][source]¶
Load a dataset from the LangChainDatasets on HuggingFace.
Parameters
uri – The uri of the dataset to load.
Returns
A list of dictionaries, each representing a row in the dataset.
Prerequisites
pip install datasets
Examples
from langchain.evaluation import load_dataset
ds = load_dataset("llm-math")
Examples using load_dataset¶
Comparing Chain Outputs