Skip to content
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

feat: Added features for Preview Embeddings Models #205

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

holtskinner
Copy link
Collaborator

- Add Output Dimensionality
- Add additional embeddings types
@lkuligin
Copy link
Collaborator

lkuligin commented May 1, 2024

could you extend an integration test, please?

@@ -109,6 +109,9 @@ def __init__(
self.instance[
"embeddings_task_type_supported"
] = not self.client._endpoint_name.endswith("/textembedding-gecko@001")
self.instance["dimensionality_supported"] = self.client._endpoint_name.endswith(
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you move this logic to _utils, please, so that we have all the logic determening model's behaviour at least at one place (and we should introduct model family or smth like this).

Copy link
Collaborator

Choose a reason for hiding this comment

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

I've added ModelFamily notion, let's use it, please.

self,
texts: List[str],
embeddings_type: Optional[str] = None,
dimensions: Optional[int] = None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we stick to the argument's naming the same as Vertex uses, please? i.e., output_dimensionality instead of dimensions?

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.

None yet

3 participants