# data_points_to_batch_update_records

> **Function** in `langchain_google_vertexai`

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

Given a list of datapoints, generates a list of records in the input format
required to do a bactch update.

## Signature

```python
data_points_to_batch_update_records(
    data_points: list[meidx_types.IndexDataPoint],
) -> list[dict[str, Any]]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `data_points` | `list[meidx_types.IndexDataPoint]` | Yes | List of `IndexDataPoints`. |

## Returns

`list[dict[str, Any]]`

List of records with the format needed to do a batch update.

---

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