refactor(generative_ai/evaluation): migrate vertexai.generative_models to genai SDK#14430
refactor(generative_ai/evaluation): migrate vertexai.generative_models to genai SDK#14430XrossFox wants to merge 7 commits into
Conversation
…ls to genai SDK - Migrated evaluation samples to use the new `google.genai` SDK instead of `vertexai.generative_models`. - Removed unnecessary dependencies from requirements after testing confirmed they are no longer needed.
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
|
/gemini review |
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
- Refactored sample to use newer genai SDK. - Cleaned requirements files from unneccessary dependencies.
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
Kef131
left a comment
There was a problem hiding this comment.
Thanks for attending the comments, LGTM
| # [END aiplatform_genai_evaluation_pairwise_summarization_quality] | ||
|
|
||
|
|
||
| if __name__ == "__main__": |
There was a problem hiding this comment.
Can you please remove the main function?
| @@ -0,0 +1,42 @@ | |||
| # Copyright 2021 Google LLC | |||
There was a problem hiding this comment.
Please update to the current year
| @@ -0,0 +1,26 @@ | |||
| # Copyright 2024 Google LLC | |||
There was a problem hiding this comment.
Please update the year here
Addressed comments on PR.


Description
sample: generative_ai/evaluation to genai/evaluation
google.genaiSDK instead ofvertexai.generative_models.Fixes b/534795015
Checklist
Testing
Compliance & Style
Post-Approval Actions