# LLMRailsEmbeddings

> **Class** in `langchain_community`

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

LLMRails embedding models.

To use, you should have the  environment
variable ``LLM_RAILS_API_KEY`` set with your API key or pass it
as a named parameter to the constructor.

Model can be one of ["embedding-english-v1","embedding-multi-v1"]

## Signature

```python
LLMRailsEmbeddings()
```

## Description

**Example:**

.. code-block:: python

from langchain_community.embeddings import LLMRailsEmbeddings
cohere = LLMRailsEmbeddings(
    model="embedding-english-v1", api_key="my-api-key"
)

## Extends

- `BaseModel`
- `Embeddings`

## Properties

- `model`
- `api_key`
- `model_config`

## Methods

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

---

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