Skip to content

[PLT-1347] Vb/request labelin service #1761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 6, 2024

Conversation

vbrodsky
Copy link
Contributor

@vbrodsky vbrodsky commented Aug 1, 2024

Description

Provides an sdk method to request labeling service. This will match the UI transition when all project prerequisites are completed.

For sdk, we have built a new api on the backend to verify the project and transition labeling service to Requested

Sample code - live chat model evaluation project

client.create_model_evaluation_project(...)
project.connect_ontology(chat_evaluation_ontology)
project.upsert_instructions(...)

# if not live MOE, also need to add a batch of data rows

# Only for live MOE
project.add_model_config(...)
project.set_project_model_setup_complete()

labeling_service = project.request_labeling_service()
labeling_service.request()

assert project.get_labeling_service_status() == LabelingServiceStatus.Requested

NOTE

All integration tests for the new api ValidateAndRequestProjectBoostWorkforcePyApi will fail till we merge and deploy the api to stage (tonight or tomorrow)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Document change (fix typo or modifying any markdown files, code comments or anything in the examples folder only)

All Submissions

  • Have you followed the guidelines in our Contributing document?
  • Have you provided a description?
  • Are your changes properly formatted?

New Feature Submissions

  • Does your submission pass tests?
  • Have you added thorough tests for your new feature?
  • Have you commented your code, particularly in hard-to-understand areas?
  • Have you added a Docstring?

Changes to Core Features

  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?
  • Have you updated any code comments, as applicable?

@vbrodsky vbrodsky requested a review from a team as a code owner August 1, 2024 21:39
@vbrodsky vbrodsky merged commit 142b601 into develop Aug 6, 2024
14 of 15 checks passed
@vbrodsky vbrodsky deleted the VB/request-labelin-service_PLT-1347 branch August 6, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants