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.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])