mirror of
https://github.com/hwchase17/langchain.git
synced 2026-03-18 19:18:48 +00:00
9 lines
209 B
Python
9 lines
209 B
Python
from typing import Dict, List
|
|
|
|
|
|
def load_dataset(uri: str) -> List[Dict]:
|
|
from datasets import load_dataset
|
|
|
|
dataset = load_dataset(f"LangChainDatasets/{uri}")
|
|
return [d for d in dataset["train"]]
|