Skip to content

Commit

Permalink
Weekday update
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRalphson committed Jan 23, 2024
1 parent adbe980 commit cd2ba96
Show file tree
Hide file tree
Showing 25 changed files with 825 additions and 210 deletions.
155 changes: 136 additions & 19 deletions APIs/googleapis.com/aiplatform/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,48 @@ paths:
- https://www.googleapis.com/auth/cloud-platform
tags:
- projects
/v1/{endpoint}:streamRawPredict:
parameters:
- $ref: "#/components/parameters/_.xgafv"
- $ref: "#/components/parameters/access_token"
- $ref: "#/components/parameters/alt"
- $ref: "#/components/parameters/callback"
- $ref: "#/components/parameters/fields"
- $ref: "#/components/parameters/key"
- $ref: "#/components/parameters/oauth_token"
- $ref: "#/components/parameters/prettyPrint"
- $ref: "#/components/parameters/quotaUser"
- $ref: "#/components/parameters/upload_protocol"
- $ref: "#/components/parameters/uploadType"
post:
description: ""
operationId: aiplatform.projects.locations.publishers.models.streamRawPredict
parameters:
- description: "Required. The name of the Endpoint requested to serve the prediction. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`"
in: path
name: endpoint
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/GoogleCloudAiplatformV1StreamRawPredictRequest"
responses:
"200":
content:
application/json:
schema:
$ref: "#/components/schemas/GoogleApiHttpBody"
description: Successful response
security:
- Oauth2:
- https://www.googleapis.com/auth/cloud-platform
Oauth2c:
- https://www.googleapis.com/auth/cloud-platform
tags:
- projects
/v1/{endpoint}:undeployModel:
parameters:
- $ref: "#/components/parameters/_.xgafv"
Expand Down Expand Up @@ -4233,7 +4275,7 @@ paths:
description: Creates a new FeatureOnlineStore in a given project and location.
operationId: aiplatform.projects.locations.featureOnlineStores.create
parameters:
- description: "Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}'`"
- description: "Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}`"
in: path
name: parent
required: true
Expand Down Expand Up @@ -7993,7 +8035,7 @@ components:
description: Whether the text should be filtered and not shown to the end user. This is determined based on a combination of `triggered_recitation`, `triggered_blocklist`, `language_filter_result`, and `triggered_safety_filter`.
type: boolean
languageFilterResult:
$ref: "#/components/schemas/LearningServingLlmLanguageFilterResult"
$ref: "#/components/schemas/LearningGenaiRootLanguageFilterResult"
description: Language filter result from SAFT LangId.
raiSignals:
description: The RAI signals for the text.
Expand Down Expand Up @@ -13264,7 +13306,7 @@ components:
type: string
modelSourceInfo:
$ref: "#/components/schemas/GoogleCloudAiplatformV1ModelSourceInfo"
description: Output only. Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or existing Vertex AI Model.
description: Output only. Source of a model. It can either be automl training pipeline, custom training pipeline, BigQuery ML, or saved and tuned from Genie or Model Garden.
readOnly: true
name:
description: The resource name of the Model.
Expand Down Expand Up @@ -14261,6 +14303,11 @@ components:
- INVALID_EMBEDDING_ID
- EMBEDDING_SIZE_MISMATCH
- NAMESPACE_MISSING
- PARSING_ERROR
- DUPLICATE_NAMESPACE
- OP_IN_DATAPOINT
- MULTIPLE_VALUES
- INVALID_NUMERIC_VALUE
type: string
rawRecord:
description: The original content of this record.
Expand Down Expand Up @@ -14675,6 +14722,9 @@ components:
GoogleCloudAiplatformV1PipelineJobRuntimeConfig:
description: The runtime config of a PipelineJob.
properties:
defaultRuntime:
$ref: "#/components/schemas/GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime"
description: Optional. The default runtime for the PipelineJob. If not provided, Vertex Custom Job is used as the runtime. For Vertex Custom Job, please refer to https://cloud.google.com/vertex-ai/docs/training/overview
failurePolicy:
description: Represents the failure policy of a pipeline. Currently, the default of a pipeline is that the pipeline will continue to run until no more tasks can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling any new tasks when a task has failed. Any scheduled tasks will continue to completion.
enum:
Expand All @@ -14701,13 +14751,27 @@ components:
description: Deprecated. Use RuntimeConfig.parameter_values instead. The runtime parameters of the PipelineJob. The parameters will be passed into PipelineJob.pipeline_spec to replace the placeholders at runtime. This field is used by pipelines built using `PipelineJob.pipeline_spec.schema_version` 2.0.0 or lower, such as pipelines built using Kubeflow Pipelines SDK 1.8 or lower.
type: object
type: object
GoogleCloudAiplatformV1PipelineJobRuntimeConfigDefaultRuntime:
description: The default runtime for the PipelineJob.
properties:
persistentResourceRuntimeDetail:
$ref: "#/components/schemas/GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail"
description: Persistent resource based runtime detail.
type: object
GoogleCloudAiplatformV1PipelineJobRuntimeConfigInputArtifact:
description: The type of an input artifact.
properties:
artifactId:
description: "Artifact resource id from MLMD. Which is the last portion of an artifact resource name: `projects/{project}/locations/{location}/metadataStores/default/artifacts/{artifact_id}`. The artifact must stay within the same project, location and default metadatastore as the pipeline."
type: string
type: object
GoogleCloudAiplatformV1PipelineJobRuntimeConfigPersistentResourceRuntimeDetail:
description: Persistent resource based runtime detail. For more information, refer to https://cloud.google.com/vertex-ai/docs/training/persistent-resource-overview
properties:
persistentResourceName:
description: "Persistent resource name. Format: `projects/{project}/locations/{location}/persistentResources/{persistent_resource}`"
type: string
type: object
GoogleCloudAiplatformV1PipelineTaskDetail:
description: The runtime detail of a task execution.
properties:
Expand Down Expand Up @@ -18574,6 +18638,13 @@ components:
format: double
type: number
type: object
GoogleCloudAiplatformV1StreamRawPredictRequest:
description: Request message for PredictionService.StreamRawPredict.
properties:
httpBody:
$ref: "#/components/schemas/GoogleApiHttpBody"
description: The prediction input. Supports HTTP headers and arbitrary data payload.
type: object
GoogleCloudAiplatformV1StreamingPredictRequest:
description: Request message for PredictionService.StreamingPredict. The first message must contain endpoint field and optionally input. The subsequent messages must contain input.
properties:
Expand Down Expand Up @@ -20192,7 +20263,7 @@ components:
type: array
type: object
LanguageLabsAidaTrustRecitationProtoDocAttribution:
description: The proto defines the attribution information for a document using whatever fields are most applicable for that document's datasource. For example, a Wikipedia article's attribution is in the form of its article title, a website is in the form of a URL, and a Github repo is in the form of a repo name. Next id:28
description: "The proto defines the attribution information for a document using whatever fields are most applicable for that document's datasource. For example, a Wikipedia article's attribution is in the form of its article title, a website is in the form of a URL, and a Github repo is in the form of a repo name. Next id: 30"
properties:
amarnaId:
type: string
Expand All @@ -20202,6 +20273,9 @@ components:
type: string
bibkey:
type: string
biorxivId:
description: "ID of the paper in bioarxiv like ddoi.org/{biorxiv_id} eg: https://doi.org/10.1101/343517"
type: string
bookTitle:
type: string
bookVolumeId:
Expand Down Expand Up @@ -20572,6 +20646,9 @@ components:
wikipediaArticleTitle:
description: Wikipedia article title. The Wikipedia TFDS dataset includes article titles but not URLs. While a URL is to the best of our knowledge a deterministic function of the title, we store the original title to reflect the information in the original dataset.
type: string
youtubeVideoId:
description: "The unique video id from Youtube. Example: AkoGsW52Ir0"
type: string
type: object
LanguageLabsAidaTrustRecitationProtoRecitationResult:
description: The recitation result for one input
Expand Down Expand Up @@ -20965,7 +21042,7 @@ components:
type: array
type: object
LearningGenaiRecitationDocAttribution:
description: "The proto defines the attribution information for a document using whatever fields are most applicable for that document's datasource. For example, a Wikipedia article's attribution is in the form of its article title, a website is in the form of a URL, and a Github repo is in the form of a repo name. Next id: 28"
description: "The proto defines the attribution information for a document using whatever fields are most applicable for that document's datasource. For example, a Wikipedia article's attribution is in the form of its article title, a website is in the form of a URL, and a Github repo is in the form of a repo name. Next id: 30"
properties:
amarnaId:
type: string
Expand All @@ -20975,6 +21052,9 @@ components:
type: string
bibkey:
type: string
biorxivId:
description: "ID of the paper in bioarxiv like ddoi.org/{biorxiv_id} eg: https://doi.org/10.1101/343517"
type: string
bookTitle:
type: string
bookVolumeId:
Expand Down Expand Up @@ -21339,6 +21419,8 @@ components:
wikipediaArticleTitle:
description: Wikipedia article title. The Wikipedia TFDS dataset includes article titles but not URLs. While a URL is to the best of our knowledge a deterministic function of the title, we store the original title to reflect the information in the original dataset.
type: string
youtubeVideoId:
type: string
type: object
LearningGenaiRecitationRecitationResult:
description: The recitation result for one input
Expand Down Expand Up @@ -21847,7 +21929,7 @@ components:
defaultMetadata:
type: string
languageFilterResult:
$ref: "#/components/schemas/LearningServingLlmLanguageFilterResult"
$ref: "#/components/schemas/LearningGenaiRootLanguageFilterResult"
raiOutput:
$ref: "#/components/schemas/LearningGenaiRootRAIOutput"
description: Safety filter output information for LLM Root RAI harm check.
Expand All @@ -21864,6 +21946,39 @@ components:
toxicityResult:
$ref: "#/components/schemas/LearningGenaiRootToxicityResult"
type: object
LearningGenaiRootGroundingMetadata:
properties:
citations:
items:
$ref: "#/components/schemas/LearningGenaiRootGroundingMetadataCitation"
type: array
groundingCancelled:
description: True if grounding is cancelled, for example, no facts being retrieved.
type: boolean
searchQueries:
items:
type: string
type: array
type: object
LearningGenaiRootGroundingMetadataCitation:
properties:
endIndex:
description: Index in the prediction output where the citation ends (exclusive). Must be > start_index and < len(output).
format: int32
type: integer
factIndex:
description: Index of the fact supporting this claim. Should be within the range of the `world_facts` in the GenerateResponse.
format: int32
type: integer
score:
description: Confidence score of this entailment. Value is [0,1] with 1 is the most confidence.
format: double
type: number
startIndex:
description: Index in the prediction output where the citation starts (inclusive). Must be >= 0 and < end_index.
format: int32
type: integer
type: object
LearningGenaiRootHarm:
properties:
contextualDangerous:
Expand Down Expand Up @@ -21995,6 +22110,19 @@ components:
$ref: "#/components/schemas/LearningGenaiRootScoredToken"
type: array
type: object
LearningGenaiRootLanguageFilterResult:
properties:
allowed:
description: False when query or response should be filtered out due to unsupported language.
type: boolean
detectedLanguage:
description: Language of the query or response.
type: string
detectedLanguageProbability:
description: Probability of the language predicted as returned by LangID.
format: float
type: number
type: object
LearningGenaiRootMetricOutput:
properties:
debug:
Expand Down Expand Up @@ -22289,19 +22417,6 @@ components:
format: float
type: number
type: object
LearningServingLlmLanguageFilterResult:
properties:
allowed:
description: False when query or response should be filtered out due to unsupported language.
type: boolean
detectedLanguage:
description: Language of the query or response.
type: string
detectedLanguageProbability:
description: Probability of the language predicted as returned by LangID.
format: float
type: number
type: object
LearningServingLlmMessageMetadata:
description: LINT.IfChange This metadata contains additional information required for debugging.
properties:
Expand Down Expand Up @@ -22331,6 +22446,8 @@ components:
- MAX_TOKENS
- FILTER
type: string
groundingMetadata:
$ref: "#/components/schemas/LearningGenaiRootGroundingMetadata"
isFallback:
description: Applies to Response message only. Indicates whether the message is a fallback and the response would have otherwise been empty.
type: boolean
Expand Down
Loading

0 comments on commit cd2ba96

Please sign in to comment.