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(gen ai): add parameter example to evaluation samples #4568

Merged
merged 6 commits into from
Nov 19, 2024

Conversation

Valeriy-Burlaka
Copy link
Member

@Valeriy-Burlaka Valeriy-Burlaka commented Nov 13, 2024

Description

Adds example value for the location argument to all evaluation samples (I missed to add this in the scope of #4514)

Checklist

@Valeriy-Burlaka Valeriy-Burlaka self-assigned this Nov 13, 2024
@Valeriy-Burlaka Valeriy-Burlaka requested review from a team as code owners November 13, 2024 12:28
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Nov 13, 2024
@Valeriy-Burlaka Valeriy-Burlaka added the api: aiplatform Issues related to the AI Platform API. label Nov 13, 2024
@@ -29,6 +29,7 @@ import (
// evaluateModelResponse evaluates the output of an LLM for groundedness, i.e., how well
// the model response connects with verifiable sources of information
func evaluateModelResponse(w io.Writer, projectID, location string) error {
// location := "us-central1"
Copy link
Member Author

@Valeriy-Burlaka Valeriy-Burlaka Nov 13, 2024

Choose a reason for hiding this comment

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

@telpirion , all existing Go samples have this line, but I wonder if it shouldn't be a re-assignment (=) instead of a fresh assignment (:=)? i.e.:

// location  = "us-central1"

With the current version, if I copy a sample and un-comment this line, I will immediately have no new variables on left side of := ... compiler error. While with the = version I'll immediately have a working version of the sample.

What do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, what you say makes sense. We had written some of the other samples with the thought that users would copy the func, delete the args (or most of them), and then uncomment the variable assignments in the func body.

We haven't received any feedback on this from users (that I'm aware of), so this may be a trivial issue.

@telpirion telpirion self-assigned this Nov 14, 2024
Copy link
Collaborator

@telpirion telpirion left a comment

Choose a reason for hiding this comment

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

I'm fine with the changes to the comments that you recommend. Thank you for checking!

@@ -29,6 +29,7 @@ import (
// evaluateModelResponse evaluates the output of an LLM for groundedness, i.e., how well
// the model response connects with verifiable sources of information
func evaluateModelResponse(w io.Writer, projectID, location string) error {
// location := "us-central1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, what you say makes sense. We had written some of the other samples with the thought that users would copy the func, delete the args (or most of them), and then uncomment the variable assignments in the func body.

We haven't received any feedback on this from users (that I'm aware of), so this may be a trivial issue.

@telpirion telpirion changed the title chore(gen ai): add parameter example to evaluation samples feat(gen ai): add parameter example to evaluation samples Nov 15, 2024
@Valeriy-Burlaka Valeriy-Burlaka enabled auto-merge (squash) November 19, 2024 11:04
@Valeriy-Burlaka Valeriy-Burlaka merged commit 1e9e501 into main Nov 19, 2024
11 checks passed
@Valeriy-Burlaka Valeriy-Burlaka deleted the vburlaka-aiplatform-evaluation-samples-chore branch November 19, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: aiplatform Issues related to the AI Platform API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants