NLPCloudEmbeddings(
self,
model_name: str = 'paraphrase-multilingual-mpnet-base-v2',
gpu: bool = False,
**kwargs: NLP Cloud embedding models.
To use, you should have the nlpcloud python package installed
Example:
.. code-block:: python
from langchain_community.embeddings import NLPCloudEmbeddings
embeddings = NLPCloudEmbeddings()
Validate that api key and python package exists in environment.
Embed a list of documents using NLP Cloud.
Embed a query using NLP Cloud.