tigergraph__add_vector_attribute
Adds a vector attribute to an existing vertex type in TigerGraph, creating a schema change job to alter the vertex with the specified vector name, dimension, and similarity metric.
Instructions
Add a vector attribute to an existing vertex type. Creates a schema change job to ALTER VERTEX with ADD VECTOR ATTRIBUTE.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric | No | Similarity metric: 'COSINE', 'L2' (Euclidean), or 'IP' (inner product). | COSINE |
| profile | No | Connection profile name. Omit to use the active default profile. Use 'list_connections' to see available profiles. | |
| dimension | Yes | Dimension (length) of the vector. Max 4096 for Community, 32768 for Enterprise. | |
| graph_name | No | Name of the graph. If not provided, uses default connection. | |
| vector_name | Yes | Name of the vector attribute. | |
| vertex_type | Yes | Name of the vertex type to add the vector attribute to. |