# FastEmbedEmbeddings

> **Class** in `langchain_community`

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

Qdrant FastEmbedding models.

FastEmbed is a lightweight, fast, Python library built for embedding generation.
See more documentation at:
* https://github.com/qdrant/fastembed/
* https://qdrant.github.io/fastembed/

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

`pip install fastembed`
Example:
    from langchain_community.embeddings import FastEmbedEmbeddings
    fastembed = FastEmbedEmbeddings()

## Signature

```python
FastEmbedEmbeddings()
```

## Extends

- `BaseModel`
- `Embeddings`

## Properties

- `model_name`
- `max_length`
- `cache_dir`
- `threads`
- `doc_embed_type`
- `batch_size`
- `parallel`
- `providers`
- `model`
- `model_config`

## Methods

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

---

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