# VertexAIEmbeddings

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/embeddings/vertexai/VertexAIEmbeddings)

Google Cloud VertexAI embedding models.

## Signature

```python
VertexAIEmbeddings(
    self,
    model_name: str = 'textembedding-gecko-default',
    project: Optional[str] = None,
    location: str = 'us-central1',
    request_parallelism: int = 5,
    max_retries: int = 6,
    credentials: Optional[Any] = None,
    **kwargs: Any = {},
)
```

## Extends

- `_VertexAICommon`
- `Embeddings`

## Constructors

```python
__init__(
    self,
    model_name: str = 'textembedding-gecko-default',
    project: Optional[str] = None,
    location: str = 'us-central1',
    request_parallelism: int = 5,
    max_retries: int = 6,
    credentials: Optional[Any] = None,
    **kwargs: Any = {},
)
```

| Name | Type |
|------|------|
| `model_name` | `str` |
| `project` | `Optional[str]` |
| `location` | `str` |
| `request_parallelism` | `int` |
| `max_retries` | `int` |
| `credentials` | `Optional[Any]` |


## Properties

- `instance`
- `show_progress_bar`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/embeddings/vertexai/VertexAIEmbeddings/validate_environment)
- [`embed()`](https://reference.langchain.com/python/langchain-community/embeddings/vertexai/VertexAIEmbeddings/embed)
- [`embed_documents()`](https://reference.langchain.com/python/langchain-community/embeddings/vertexai/VertexAIEmbeddings/embed_documents)
- [`embed_query()`](https://reference.langchain.com/python/langchain-community/embeddings/vertexai/VertexAIEmbeddings/embed_query)

## ⚠️ Deprecated

Deprecated since version 0.0.12.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/embeddings/vertexai.py#L23)