From 87bba2e8d3a7772a32eda45bc17160f4ad8ae3d2 Mon Sep 17 00:00:00 2001 From: Zander Chase <130414180+vowelparrot@users.noreply.github.com> Date: Mon, 22 May 2023 18:21:39 -0700 Subject: [PATCH] Pass Dataset Name by Name not Position (#5108) Pass dataset name by name --- langchain/client/langchain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/client/langchain.py b/langchain/client/langchain.py index 6b9f1879..4f0191ed 100644 --- a/langchain/client/langchain.py +++ b/langchain/client/langchain.py @@ -342,7 +342,7 @@ class LangChainPlusClient(BaseSettings): ) -> Example: """Create a dataset example in the LangChain+ API.""" if dataset_id is None: - dataset_id = self.read_dataset(dataset_name).id + dataset_id = self.read_dataset(dataset_name=dataset_name).id data = { "inputs": inputs,