Skip to content

Conversation

@mrobers1982
Copy link
Contributor

@mrobers1982 mrobers1982 commented Mar 26, 2024

https://labelbox.atlassian.net/browse/PLT-34

This PR has a dependency on changes to our GQL API which can be found here: https://github.com/Labelbox/intelligence/pull/20258

Integration tests will fail until the above is merged and deployed to the corresponding environments.

Why are there no integration tests?

A custom embedding needs to be created in order to import a custom embedding with a data row.

Currently, the SDK does not support creating a custom embedding, this will happen as a separate item of work, i.e. deprecating the existing advlib tool - this will begin in the very near future.

I have tested this locally (using the UI to create the embedding) and it works correctly. If however, we need to include an integration test, I can look into importing the existing advlib tool (for testing) to create the custom embedding or alternatively we wait until the advlib tool is deprecated.

@mrobers1982 mrobers1982 force-pushed the mrobers1982/plt_34 branch 4 times, most recently from ceb14e1 to 6b5cce4 Compare March 28, 2024 21:44
vector: List[float]
clusters: Optional[List[int]]

def to_gql(self) -> Dict[str, Any]:
Copy link
Contributor Author

@mrobers1982 mrobers1982 Mar 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to convert snake_case (from Python) to camelCase (to GQL).

@mrobers1982 mrobers1982 marked this pull request as ready for review March 29, 2024 16:16
@mrobers1982 mrobers1982 requested a review from a team as a code owner March 29, 2024 16:16
@mrobers1982 mrobers1982 merged commit 729b667 into develop Apr 3, 2024
@mrobers1982 mrobers1982 deleted the mrobers1982/plt_34 branch April 3, 2024 18:40
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.

3 participants