# The VectorIndex object

## Attributes

- `name` (string)
  Name of the index
- `endpoint_name` (string)
  Name of the endpoint associated with the index
- `primary_key` (string)
  Primary key of the index
- `index_type` (string)
  Possible values: `DELTA_SYNC`, `DIRECT_ACCESS`
- `direct_access_index_spec` (object)
  - `embedding_vector_columns` (array of object)
    The columns that contain the embedding vectors. The format should be array[double].
    - `name` (string)
      Name of the column
    - `embedding_dimension` (int32)
      Dimension of the embedding vector
  - `schema_json` (string)
    The schema of the index in JSON format.
     Supported types are `integer`, `long`, `float`, `double`, `boolean`, `string`, `date`, `timestamp`.
     Supported types for vector column: `array<float>`, `array<double>`,`.
  - `embedding_source_columns` (array of object)
    The columns that contain the embedding source. The format should be array[double].
    - `name` (string)
      Name of the column
    - `embedding_model_endpoint_name` (string)
      Name of the embedding model endpoint, used by default for both ingestion and querying.
    - `model_endpoint_name_for_query` (string)
      Name of the embedding model endpoint which, if specified, is used for querying (not ingestion).
- `delta_sync_index_spec` (object)
  - `source_table` (string)
    The name of the source table.
  - `embedding_source_columns` (array of object)
    The columns that contain the embedding source.
    - `name` (string)
      Name of the column
    - `embedding_model_endpoint_name` (string)
      Name of the embedding model endpoint, used by default for both ingestion and querying.
    - `model_endpoint_name_for_query` (string)
      Name of the embedding model endpoint which, if specified, is used for querying (not ingestion).
  - `embedding_vector_columns` (array of object)
    The columns that contain the embedding vectors.
    - `name` (string)
      Name of the column
    - `embedding_dimension` (int32)
      Dimension of the embedding vector
  - `pipeline_type` (string)
    Pipeline execution mode.
     - `TRIGGERED`: If the pipeline uses the triggered execution mode, the system stops processing after successfully refreshing the source table in the pipeline once, ensuring the table is updated based on the data available when the update started.
     - `CONTINUOUS`: If the pipeline uses continuous execution, the pipeline processes new data as it arrives in the source table to keep vector index fresh.
    Possible values: `TRIGGERED`, `CONTINUOUS`
  - `pipeline_id` (string)
    The ID of the pipeline that is used to sync the index.
  - `embedding_writeback_table` (string)
    [Optional] Name of the Delta table to sync the vector index contents and computed embeddings to.
  - `columns_to_sync` (array of string)
    [Optional] Select the columns to sync with the vector index. If you leave this field blank, all columns
     from the source table are synced with the index. The primary key column and embedding source column or
     embedding vector column are always synced.
  - `columns_to_index` (array of string)
    [Optional] Alias for columns_to_sync. Select the columns to include in the vector index.
     If you leave this field blank, all columns from the source table are included.
     The primary key column and embedding source column or embedding vector column are always included.
     Only one of columns_to_sync or columns_to_index may be specified.
- `status` (object)
  - `message` (string)
    Message associated with the index status
  - `indexed_row_count` (int64)
    Number of rows indexed
  - `ready` (boolean)
    Whether the index is ready for search
  - `index_url` (string)
    Index API Url to be used to perform operations on the index
- `creator` (string)
  The user who created the index.
- `index_subtype` (string, Beta)
  The subtype of the index.
  Possible values: `VECTOR`, `FULL_TEXT`, `HYBRID`

## Example

```json
{
  "name": "string",
  "endpoint_name": "string",
  "primary_key": "string",
  "index_type": "string",
  "direct_access_index_spec": {
    "embedding_vector_columns": [
      {}
    ],
    "schema_json": "string",
    "embedding_source_columns": [
      {}
    ]
  },
  "delta_sync_index_spec": {
    "source_table": "string",
    "embedding_source_columns": [
      {}
    ],
    "embedding_vector_columns": [
      {}
    ],
    "pipeline_type": "string",
    "pipeline_id": "string",
    "embedding_writeback_table": "string",
    "columns_to_sync": [
      "string"
    ],
    "columns_to_index": [
      "string"
    ]
  },
  "status": {
    "message": "string",
    "indexed_row_count": 0,
    "ready": true,
    "index_url": "string"
  },
  "creator": "string",
  "index_subtype": "string"
}
```


