# LaserEmbeddings

> **Class** in `langchain_community`

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

LASER Language-Agnostic SEntence Representations.
LASER is a Python library developed by the Meta AI Research team
and used for creating multilingual sentence embeddings for over 147 languages
as of 2/25/2024
See more documentation at:
* https://github.com/facebookresearch/LASER/
* https://github.com/facebookresearch/LASER/tree/main/laser_encoders
* https://arxiv.org/abs/2205.12654

To use this class, you must install the `laser_encoders` Python package.

`pip install laser_encoders`
Example:
    from laser_encoders import LaserEncoderPipeline
    encoder = LaserEncoderPipeline(lang="eng_Latn")
    embeddings = encoder.encode_sentences(["Hello", "World"])

## Signature

```python
LaserEmbeddings()
```

## Extends

- `BaseModel`
- `Embeddings`

## Properties

- `lang`
- `model_config`

## Methods

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

---

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