mirror of
https://github.com/Mintplex-Labs/langchain-python.git
synced 2026-07-19 21:33:31 -04:00
2d098e8869
Co-authored-by: jerwelborn <jeremy.welborn@gmail.com>
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"]]
|