# DeterministicFakeEmbedding

> **Class** in `langchain_community`

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

Fake embedding model that always returns
the same embedding vector for the same text.

## Signature

```python
DeterministicFakeEmbedding()
```

## Extends

- `Embeddings`
- `BaseModel`

## Properties

- `size`

## Methods

- [`embed_documents()`](https://reference.langchain.com/python/langchain-community/embeddings/fake/DeterministicFakeEmbedding/embed_documents)
- [`embed_query()`](https://reference.langchain.com/python/langchain-community/embeddings/fake/DeterministicFakeEmbedding/embed_query)

---

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