# AlephAlphaSymmetricSemanticEmbedding

> **Class** in `langchain_community`

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

Symmetric version of the Aleph Alpha's semantic embeddings.

The main difference is that here, both the documents and
queries are embedded with a SemanticRepresentation.Symmetric
Example:
    .. code-block:: python

        from aleph_alpha import AlephAlphaSymmetricSemanticEmbedding

        embeddings = AlephAlphaAsymmetricSemanticEmbedding(
            normalize=True, compress_to_size=128
        )
        text = "This is a test text"

        doc_result = embeddings.embed_documents([text])
        query_result = embeddings.embed_query(text)

## Signature

```python
AlephAlphaSymmetricSemanticEmbedding()
```

## Extends

- `AlephAlphaAsymmetricSemanticEmbedding`

## Methods

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

---

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