Skip to content

Commit

Permalink
chore(model): add message in watch endpoint (#289)
Browse files Browse the repository at this point in the history
Because

- We'd like to provide more information to model state

This commit

- add message field in watch response

---------

Co-authored-by: droplet-bot <[email protected]>
  • Loading branch information
heiruwu and droplet-bot authored Mar 26, 2024
1 parent 6678571 commit 3e73237
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 24 deletions.
46 changes: 23 additions & 23 deletions artifact/artifact/v1alpha/artifact.proto
Original file line number Diff line number Diff line change
Expand Up @@ -35,39 +35,39 @@ message ReadinessResponse {

/*
This API is under development and, therefore, some of its entitites and
entpoints are not implemented yet. This section aims to give context about the
current interface and how it fits in the Artifact vision.
This API is under development and, therefore, some of its entitites and
entpoints are not implemented yet. This section aims to give context about the
current interface and how it fits in the Artifact vision.
# Artifact
# Artifact
The Artifact domain is responsible of storing data that will later be used for
processing unstructured data. Artifact will support the following types of
data:
The Artifact domain is responsible of storing data that will later be used for
processing unstructured data. Artifact will support the following types of
data:
- Repositories
- Objects
- Vectors
- Repositories
- Objects
- Vectors
## Repositories
## Repositories
An implementation of the [OCI Distribution Specification](https://github.com/opencontainers/distribution-spec?tab=readme-ov-file)
is used to manage versioned content. The main use for repositories is storing
container images that can be used to deploy AI models or VDP pipelines.
An implementation of the [OCI Distribution Specification](https://github.com/opencontainers/distribution-spec?tab=readme-ov-file)
is used to manage versioned content. The main use for repositories is storing
container images that can be used to deploy AI models or VDP pipelines.
The ID of a repository has 2 segments, the owner (an Instill user or
organization) and the content ID (the AI model or pipeline ID), e.g.
`curious-wombat/llava-34b`.
The ID of a repository has 2 segments, the owner (an Instill user or
organization) and the content ID (the AI model or pipeline ID), e.g.
`curious-wombat/llava-34b`.
## Objects
## Objects
Raw data is stored in binary blobs. Object storage allows users to upload data
(e.g. images, audio) that can be used by pipelines or to store the results or a
pipeline trigger.
Raw data is stored in binary blobs. Object storage allows users to upload data
(e.g. images, audio) that can be used by pipelines or to store the results or a
pipeline trigger.
## Vectors
## Vectors
Vector embeddings have their own storage, which allows fast retrieval and similarity search.
Vector embeddings have their own storage, which allows fast retrieval and similarity search.
*/

Expand Down
2 changes: 1 addition & 1 deletion artifact/artifact/v1alpha/artifact_private_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ syntax = "proto3";

package artifact.artifact.v1alpha;

import "google/api/visibility.proto";
import "artifact/artifact/v1alpha/artifact.proto";
import "google/api/visibility.proto";

// ArtifactPrivateService exposes the private endpoints that allow clients to
// manage artifacts.
Expand Down
4 changes: 4 additions & 0 deletions model/model/v1alpha/model.proto
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ message WatchUserModelResponse {
State state = 1;
// Deprecated field `progress`
reserved 2;
// Detail description of the state
string message = 3;
}

////////////////////////////////////
Expand Down Expand Up @@ -817,6 +819,8 @@ message WatchOrganizationModelResponse {
State state = 1;
// Deprecated field `progress`
reserved 2;
// Detail description of the state
string message = 3;
}

// TriggerOrganizationModelRequest represents a request to trigger a model inference.
Expand Down
6 changes: 6 additions & 0 deletions openapiv2/model/service.swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2915,13 +2915,19 @@ definitions:
state:
$ref: '#/definitions/modelv1alphaState'
description: State.
message:
type: string
title: Detail description of the state
description: WatchOrganizationModelResponse contains the state of a model.
v1alphaWatchUserModelResponse:
type: object
properties:
state:
$ref: '#/definitions/modelv1alphaState'
description: State.
message:
type: string
title: Detail description of the state
description: WatchUserModelResponse contains the state of a model.
v1betaOrganization:
type: object
Expand Down

0 comments on commit 3e73237

Please sign in to comment.