Skip to content

Commit

Permalink
Pass Dataset Name by Name not Position (langchain-ai#5108)
Browse files Browse the repository at this point in the history
Pass dataset name by name
  • Loading branch information
vowelparrot authored May 23, 2023
1 parent de6a401 commit 87bba2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/client/langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def create_example(
) -> 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,
Expand Down

0 comments on commit 87bba2e

Please sign in to comment.