LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    Standard Tests
    Text Splitters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    โŒ˜I

    Chat LangChain

    What can I help with?

    Enter to sendยทShift+Enter new line

    Menu

    MCP Adapters
    Standard Tests
    Text Splitters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Language
    Theme
    Pythonlangchain-classicevaluationloadingload_dataset
    Functionโ—Since v1.5

    load_dataset

    Copy
    load_dataset(
        uri: str,
    ) -> list[dict]
    View source on GitHub

    Parameters

    NameTypeDescription
    uri*str

    The uri of the dataset to load.

    Load a dataset from the LangChainDatasets on HuggingFace.

    Prerequisites

    pip install datasets

    Examples:

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