Resource: Collection
Message describing Collection object
| JSON representation |
|---|
{ "name": string, "displayName": string, "description": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "vectorSchema": { string: { object ( |
| Fields | |
|---|---|
name |
Identifier. name of resource |
displayName |
Optional. User-specified display name of the collection |
description |
Optional. User-specified description of the collection |
createTime |
Output only. [Output only] Create time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. [Output only] Update time stamp Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
labels |
Optional. Labels as key value pairs. An object containing a list of |
vectorSchema |
Optional. Schema for vector fields. Only vector fields in this schema will be searchable. Field names must contain only alphanumeric characters, underscores, and hyphens. An object containing a list of |
dataSchema |
Optional. JSON Schema for data. Field names must contain only alphanumeric characters, underscores, and hyphens. The schema must be compliant with JSON Schema Draft 7. |
encryptionSpec |
Optional. Immutable. Specifies the customer-managed encryption key spec for a Collection. If set, this Collection and all sub-resources of this Collection will be secured by this key. |
VectorField
Message describing a vector field.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field vector_type_config. Vector type configuration. vector_type_config can be only one of the following: |
|
denseVector |
Dense vector field. |
sparseVector |
Sparse vector field. |
DenseVectorField
Message describing a dense vector field.
| JSON representation |
|---|
{
"dimensions": integer,
"vertexEmbeddingConfig": {
object ( |
| Fields | |
|---|---|
dimensions |
Dimensionality of the vector field. |
vertexEmbeddingConfig |
Optional. Configuration for generating embeddings for the vector field. If not specified, the embedding field must be populated in the DataObject. |
VertexEmbeddingConfig
Message describing the configuration for generating embeddings for a vector field using Vertex AI embeddings API.
| JSON representation |
|---|
{
"modelId": string,
"textTemplate": string,
"taskType": enum ( |
| Fields | |
|---|---|
modelId |
Required. Required: ID of the embedding model to use. See https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models#embeddings-models for the list of supported models. |
textTemplate |
Required. Required: Text template for the input to the model. The template must contain one or more references to fields in the DataObject, e.g.: "Movie Title: {title} ---- Movie Plot: {plot}". |
taskType |
Required. Required: Task type for the embeddings. |
EmbeddingTaskType
Represents the task the embeddings will be used for.
| Enums | |
|---|---|
EMBEDDING_TASK_TYPE_UNSPECIFIED |
Unspecified task type. |
RETRIEVAL_QUERY |
Specifies the given text is a query in a search/retrieval setting. |
RETRIEVAL_DOCUMENT |
Specifies the given text is a document from the corpus being searched. |
SEMANTIC_SIMILARITY |
Specifies the given text will be used for STS. |
CLASSIFICATION |
Specifies that the given text will be classified. |
CLUSTERING |
Specifies that the embeddings will be used for clustering. |
QUESTION_ANSWERING |
Specifies that the embeddings will be used for question answering. |
FACT_VERIFICATION |
Specifies that the embeddings will be used for fact verification. |
CODE_RETRIEVAL_QUERY |
Specifies that the embeddings will be used for code retrieval. |
SparseVectorField
This type has no fields.
Message describing a sparse vector field.
EncryptionSpec
Represents a customer-managed encryption key specification that can be applied to a Vector Search collection.
| JSON representation |
|---|
{ "cryptoKeyName": string } |
| Fields | |
|---|---|
cryptoKeyName |
Required. Resource name of the Cloud KMS key used to protect the resource. The Cloud KMS key must be in the same region as the resource. It must have the format |
Methods |
|
|---|---|
|
Creates a new Collection in a given project and location. |
|
Deletes a single Collection. |
|
Initiates a Long-Running Operation to export DataObjects from a Collection. |
|
Gets details of a single Collection. |
|
Initiates a Long-Running Operation to import DataObjects into a Collection. |
|
Lists Collections in a given project and location. |
|
Updates the parameters of a single Collection. |