# JohnSnowLabsEmbeddings

> **Class** in `langchain_community`

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

JohnSnowLabs embedding models

To use, you should have the ``johnsnowlabs`` python package installed.
Example:
    .. code-block:: python

        from langchain_community.embeddings.johnsnowlabs import JohnSnowLabsEmbeddings

        embedding = JohnSnowLabsEmbeddings(model='embed_sentence.bert')
        output = embedding.embed_query("foo bar")

## Signature

```python
JohnSnowLabsEmbeddings(
    self,
    model: Any = 'embed_sentence.bert',
    hardware_target: str = 'cpu',
    **kwargs: Any = {},
)
```

## Extends

- `BaseModel`
- `Embeddings`

## Constructors

```python
__init__(
    self,
    model: Any = 'embed_sentence.bert',
    hardware_target: str = 'cpu',
    **kwargs: Any = {},
)
```

| Name | Type |
|------|------|
| `model` | `Any` |
| `hardware_target` | `str` |


## Properties

- `model`
- `model_config`

## Methods

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

---

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