# ClovaEmbeddings

> **Class** in `langchain_community`

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

Clova's embedding service.

To use this service,

you should have the following environment variables
set with your API tokens and application ID,
or pass them as named parameters to the constructor:

- ``CLOVA_EMB_API_KEY``: API key for accessing Clova's embedding service.
- ``CLOVA_EMB_APIGW_API_KEY``: API gateway key for enhanced security.
- ``CLOVA_EMB_APP_ID``: Application ID for identifying your application.

## Signature

```python
ClovaEmbeddings()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.embeddings import ClovaEmbeddings
embeddings = ClovaEmbeddings(
    clova_emb_api_key='your_clova_emb_api_key',
    clova_emb_apigw_api_key='your_clova_emb_apigw_api_key',
    app_id='your_app_id'
)

query_text = "This is a test query."
query_result = embeddings.embed_query(query_text)

document_text = "This is a test document."
document_result = embeddings.embed_documents([document_text])

## Extends

- `BaseModel`
- `Embeddings`

## Properties

- `endpoint_url`
- `model`
- `clova_emb_api_key`
- `clova_emb_apigw_api_key`
- `app_id`
- `model_config`

## Methods

- [`validate_environment()`](https://reference.langchain.com/python/langchain-community/embeddings/clova/ClovaEmbeddings/validate_environment)
- [`embed_documents()`](https://reference.langchain.com/python/langchain-community/embeddings/clova/ClovaEmbeddings/embed_documents)
- [`embed_query()`](https://reference.langchain.com/python/langchain-community/embeddings/clova/ClovaEmbeddings/embed_query)

## ⚠️ Deprecated

Deprecated since version 0.3.4.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/embeddings/clova.py#L12)