You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Generates rubrics for a given prompt. A rubric represents a single testable criterion for
4927
+
* evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested
4928
+
* rubrics based on provided prompt, which can then be reviewed and used for subsequent evaluations.
4929
+
*
4930
+
* Create a request for the method "locations.generateInstanceRubrics".
4931
+
*
4932
+
* This request holds the parameters needed by the aiplatform server. After setting any optional
4933
+
* parameters, call the {@link GenerateInstanceRubrics#execute()} method to invoke the remote
4934
+
* operation.
4935
+
*
4936
+
* @param location Required. The resource name of the Location to generate rubrics from. Format:
4937
+
* `projects/{project}/locations/{location}`
4938
+
* @param content the {@link com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest}
4939
+
* @return the request
4940
+
*/
4941
+
public GenerateInstanceRubrics generateInstanceRubrics(java.lang.String location, com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1GenerateInstanceRubricsRequest content) throws java.io.IOException {
4942
+
GenerateInstanceRubrics result = new GenerateInstanceRubrics(location, content);
4943
+
initialize(result);
4944
+
return result;
4945
+
}
4946
+
4947
+
public class GenerateInstanceRubrics extends AiplatformRequest<com.google.api.services.aiplatform.v1.model.GoogleCloudAiplatformV1GenerateInstanceRubricsResponse> {
4948
+
4949
+
private static final String REST_PATH = "v1/{+location}:generateInstanceRubrics";
4950
+
4951
+
private final java.util.regex.Pattern LOCATION_PATTERN =
Copy file name to clipboardExpand all lines: clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluateInstancesRequest.java
+51Lines changed: 51 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,21 @@ public final class GoogleCloudAiplatformV1EvaluateInstancesRequest extends com.g
Copy file name to clipboardExpand all lines: clients/google-api-services-aiplatform/v1/2.0.0/com/google/api/services/aiplatform/v1/model/GoogleCloudAiplatformV1EvaluateInstancesResponse.java
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,14 @@ public final class GoogleCloudAiplatformV1EvaluateInstancesResponse extends com.
0 commit comments