# batch_update_index

> **Function** in `langchain_google_vertexai`

📖 [View in docs](https://reference.langchain.com/python/langchain-google-vertexai/vectorstores/_utils/batch_update_index)

Updates an index using batch updating.

## Signature

```python
batch_update_index(
    index: MatchingEngineIndex,
    data_points: list[meidx_types.IndexDataPoint],
    *,
    staging_bucket: Bucket,
    prefix: str | None = None,
    file_name: str = 'documents.json',
    is_complete_overwrite: bool = False,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `index` | `MatchingEngineIndex` | Yes | Vector search index. |
| `data_points` | `list[meidx_types.IndexDataPoint]` | Yes | List of `IndexDataPoint`. |
| `staging_bucket` | `Bucket` | Yes | Bucket where the staging data is stored. Must be in the same region as the index. |
| `prefix` | `str \| None` | No | Prefix for the blob name. If not provided an unique iid will be generated. (default: `None`) |
| `file_name` | `str` | No | File name of the staging embeddings. By default `'documents.json'`. (default: `'documents.json'`) |
| `is_complete_overwrite` | `bool` | No | Whether is an append or overwrite operation. (default: `False`) |

---

[View source on GitHub](https://github.com/langchain-ai/langchain-google/blob/982e4015b249de8b9ba1e787746d8cc1f6d6b790/libs/vertexai/langchain_google_vertexai/vectorstores/_utils.py#L25)