-
Notifications
You must be signed in to change notification settings - Fork 43
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: add TextEmbedding model version support #394
Conversation
@@ -266,6 +266,9 @@ class PaLM2TextEmbeddingGenerator(base.Predictor): | |||
The model for text embedding. “textembedding-gecko” returns model embeddings for text inputs. | |||
"textembedding-gecko-multilingual" returns model embeddings for text inputs which support over 100 languages | |||
Default to "textembedding-gecko". | |||
version (str or None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we default to @latest
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not so sure, but default and latest may or may not be the same. I'll rely on Vertex default.
@@ -56,3 +56,16 @@ def _convert_to_series(frame: ArrayType) -> bpd.Series: | |||
raise ValueError( | |||
f"Unsupported type {type(frame)} to convert to Series. {constants.FEEDBACK_LINK}" | |||
) | |||
|
|||
|
|||
def parse_model_endpoint(model_endpoint: str) -> tuple[str, Optional[str]]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to add unit test for this newly added method?
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕