Skip to main content
These docs will be deprecated and no longer maintained with the release of LangChain v1.0 in October 2025. Visit the v1.0 alpha docs
Open In ColabOpen on GitHub

NLP Cloud

NLP Cloud is an artificial intelligence platform that allows you to use the most advanced AI engines, and even train your own engines with your own data.

The embeddings endpoint offers the following model:

  • paraphrase-multilingual-mpnet-base-v2: Paraphrase Multilingual MPNet Base V2 is a very fast model based on Sentence Transformers that is perfectly suited for embeddings extraction in more than 50 languages (see the full list here).
%pip install --upgrade --quiet  nlpcloud
from langchain_community.embeddings import NLPCloudEmbeddings
import os

os.environ["NLPCLOUD_API_KEY"] = "xxx"
nlpcloud_embd = NLPCloudEmbeddings()
text = "This is a test document."
query_result = nlpcloud_embd.embed_query(text)
doc_result = nlpcloud_embd.embed_documents([text])
Morty Proxy This is a proxified and sanitized view of the page, visit original site.