Skip to content

Commit 8dc150d

Browse files
authored
Fixed prompt and response doc string (#1751)
1 parent b9a2c5e commit 8dc150d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

libs/labelbox/src/labelbox/client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -895,17 +895,17 @@ def create_prompt_response_generation_project(self,
895895
NOTE: Only a dataset_name or dataset_id should be included
896896
897897
Examples:
898-
>>> client.create_prompt_response_generation_project(name=project_name, dataset_name="new data set", project_kind=MediaType.LLMPromptResponseCreation)
899-
>>> 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.
898+
>>> client.create_prompt_response_generation_project(name=project_name, dataset_name="new data set", media_type=MediaType.LLMPromptResponseCreation)
899+
>>> This creates a new dataset with a default number of rows (100), creates new prompt and response creation project and assigns a batch of the newly created data rows to the project.
900900
901-
>>> client.create_prompt_response_generation_project(name=project_name, dataset_name="new data set", data_row_count=10, project_kind=MediaType.LLMPromptCreation)
902-
>>> This creates a new dataset with 10 data rows, creates new project and assigns a batch of the newly created datarows to the project.
901+
>>> client.create_prompt_response_generation_project(name=project_name, dataset_name="new data set", data_row_count=10, media_type=MediaType.LLMPromptCreation)
902+
>>> This creates a new dataset with 10 data rows, creates new prompt creation project and assigns a batch of the newly created datarows to the project.
903903
904-
>>> client.create_prompt_response_generation_project(name=project_name, dataset_id="clr00u8j0j0j0", project_kind=MediaType.LLMPromptCreation)
905-
>>> 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.
904+
>>> client.create_prompt_response_generation_project(name=project_name, dataset_id="clr00u8j0j0j0", media_type=MediaType.LLMPromptCreation)
905+
>>> This creates a new prompt creation project, and adds 100 datarows to the dataset with id "clr00u8j0j0j0" and assigns a batch of the newly created data rows to the project.
906906
907-
>>> client.create_prompt_response_generation_project(name=project_name, dataset_id="clr00u8j0j0j0", data_row_count=10, project_kind=MediaType.LLMPromptResponseCreation)
908-
>>> This creates a new project, and adds 100 datarows to the dataset with id "clr00u8j0j0j0" and assigns a batch of the newly created 10 data rows to the project.
907+
>>> client.create_prompt_response_generation_project(name=project_name, dataset_id="clr00u8j0j0j0", data_row_count=10, media_type=MediaType.LLMPromptResponseCreation)
908+
>>> This creates a new prompt and response creation project, and adds 100 datarows to the dataset with id "clr00u8j0j0j0" and assigns a batch of the newly created 10 data rows to the project.
909909
910910
"""
911911
if not dataset_id and not dataset_name:
@@ -1501,8 +1501,8 @@ def create_ontology(self,
15011501
name (str): Name of the ontology
15021502
normalized (dict): A normalized ontology payload. See above for details.
15031503
media_type (MediaType or None): Media type of a new ontology
1504-
ontology_kind (OntologyKind or None): set to OntologyKind.ModelEvaluation if the ontology is for chat evaluation,
1505-
leave as None otherwise.
1504+
ontology_kind (OntologyKind or None): set to OntologyKind.ModelEvaluation if the ontology is for chat evaluation or
1505+
OntologyKind.ResponseCreation if ontology is for response creation, leave as None otherwise.
15061506
15071507
Returns:
15081508
The created Ontology

0 commit comments

Comments
 (0)