You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use this method exclusively to create a chat model evaluation project.
822
838
Args:
823
-
dataset_name_or_id: The name or id of the dataset to use for the project
824
-
append_to_existing_dataset: If True, the project will append assets (data rows) to the existing dataset
839
+
dataset_name: When creating a new dataset, pass the name
840
+
dataset_id: When using an existing dataset, pass the id
825
841
data_row_count: The number of data row assets to use for the project
826
842
**kwargs: Additional parameters to pass to the the create_project method
827
843
Returns:
828
844
Project: The created project
845
+
846
+
Examples:
847
+
>>> client.create_model_evaluation_project(name=project_name, dataset_name="new data set")
848
+
>>> This creates a new dataset with a default number of rows (100), creates new project and assigns a batch of the newly created datarows to the project.
849
+
850
+
>>> client.create_model_evaluation_project(name=project_name, dataset_name="new data set", data_row_count=10)
851
+
>>> This creates a new dataset with 10 data rows, creates new project and assigns a batch of the newly created datarows to the project.
>>> This creates a new project, and adds 100 datarows to the dataset with id "clr00u8j0j0j0" and assigns a batch of the newly created data rows to the project.
>>> This creates a new project, and adds 100 datarows to the dataset with id "clr00u8j0j0j0" and assigns a batch of the newly created data rows to the project.
858
+
859
+
829
860
"""
861
+
ifnotdataset_idandnotdataset_name:
862
+
raiseValueError(
863
+
"dataset_name or data_set_id must be present and not be an empty string."
864
+
)
865
+
ifdata_row_count<=0:
866
+
raiseValueError("data_row_count must be a positive integer.")
0 commit comments