JohnSnowLabsEmbeddings(
self,
model: Any = 'embed_sentence.bert',
hardware_target: str = 'cpu',
**kwargs: 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")
Compute doc embeddings using a JohnSnowLabs transformer model.
Compute query embeddings using a JohnSnowLabs transformer model.