Skip to main content

Embedding models

Embedding models create a vector representation of a piece of text.

This page documents integrations with various model providers that allow you to use embeddings in LangChain.

pip install -qU langchain-openai
import getpass

os.environ["OPENAI_API_KEY"] = getpass.getpass()

from langchain_openai import OpenAIEmbeddings

embeddings = OpenAIEmbeddings(model="text-embedding-3-large")
embeddings.embed_query("Hello, world!")
ProviderPackage
AzureOpenAIlangchain-openai
Ollamalangchain-ollama
AI21langchain-ai21
Fakelangchain-core
OpenAIlangchain-openai
Togetherlangchain-together
Fireworkslangchain-fireworks
MistralAIlangchain-mistralai
Coherelangchain-cohere
Nomiclangchain-nomic
Databrickslangchain-databricks
VoyageAIlangchain-voyageai
IBMlangchain-ibm
NVIDIAlangchain-nvidia

All embedding models

NameDescription
AI21This will help you get started with AI21 embedding models using LangC...
Aleph AlphaThere are two possible ways to use Aleph Alpha's semantic embeddings....
AnyscaleLet's load the Anyscale Embedding class.
ascend[[-0.00348254 0.03098977 -0.00203087 ... 0.08492374 0.03970494
AwaDBAwaDB is an AI Native database for the search and storage of embeddin...
AzureOpenAIThis will help you get started with AzureOpenAI embedding models usin...
Baichuan Text EmbeddingsAs of today (Jan 25th, 2024) BaichuanTextEmbeddings ranks #1 in C-MTE...
Baidu QianfanBaidu AI Cloud Qianfan Platform is a one-stop large model development...
BedrockAmazon Bedrock is a fully managed service that offers a choice of
BGE on Hugging FaceBGE models on the HuggingFace are one of the best open-source embeddi...
Bookend AILet's load the Bookend AI Embeddings class.
ClarifaiClarifai is an AI Platform that provides the full AI lifecycle rangin...
Cloudflare Workers AICloudflare, Inc. (Wikipedia) is an American company that provides con...
Clova EmbeddingsClova offers an embeddings service
CohereThis will help you get started with Cohere embedding models using Lan...
DashScopeLet's load the DashScope Embedding class.
DatabricksDatabricks Lakehouse Platform unifies data, analytics, and AI on one ...
DeepInfraDeepInfra is a serverless inference as a service that provides access...
EDEN AIEden AI is revolutionizing the AI landscape by uniting the best AI pr...
ElasticsearchWalkthrough of how to generate embeddings using a hosted embedding mo...
Embaasembaas is a fully managed NLP API service that offers features like e...
Fake EmbeddingsLangChain also provides a fake embedding class. You can use this to t...
FastEmbed by QdrantFastEmbed from Qdrant is a lightweight, fast, Python library built fo...
FireworksThis will help you get started with Fireworks embedding models using ...
GigaChatThis notebook shows how to use LangChain with GigaChat embeddings.
Google Generative AI EmbeddingsConnect to Google's generative AI embeddings service using the Google...
Google Vertex AIThis will help you get started with Google Vertex AI Embeddings model...
GPT4AllGPT4All is a free-to-use, locally running, privacy-aware chatbot. The...
GradientGradient allows to create Embeddings as well fine tune and get comple...
Hugging FaceLet's load the Hugging Face Embedding class.
IBM watsonx.aiWatsonxEmbeddings is a wrapper for IBM watsonx.ai foundation models.
InfinityInfinity allows to create Embeddings using a MIT-licensed Embedding S...
Instruct Embeddings on Hugging FaceHugging Face sentence-transformers is a Python framework for state-of...
IPEX-LLM: Local BGE Embeddings on Intel CPUIPEX-LLM is a PyTorch library for running LLM on Intel CPU and GPU (e...
IPEX-LLM: Local BGE Embeddings on Intel GPUIPEX-LLM is a PyTorch library for running LLM on Intel CPU and GPU (e...
Intel® Extension for Transformers Quantized Text EmbeddingsLoad quantized BGE embedding models generated by Intel® Extension for...
JinaYou can check the list of available models from here.
John Snow LabsJohn Snow Labs NLP & LLM ecosystem includes software libraries for st...
LASER Language-Agnostic SEntence Representations Embeddings by Meta AILASER is a Python library developed by the Meta AI Research team and ...
lindorm_aiLindorm Embedding
Llama.cppllama.cpp python library is a simple Python bindings for @ggerganov
llamafileLet's load the llamafile Embeddings class.
LLMRailsLet's load the LLMRails Embeddings class.
LocalAILet's load the LocalAI Embedding class. In order to use the LocalAI E...
MiniMaxMiniMax offers an embeddings service.
MistralAIThis will help you get started with MistralAI embedding models using ...
ModelScopeModelScope is big repository of the models and datasets.
MosaicMLMosaicML offers a managed inference service. You can either use a var...
NaverThis notebook covers how to get started with embedding models provide...
NLP CloudNLP Cloud is an artificial intelligence platform that allows you to u...
NomicThis will help you get started with Nomic embedding models using Lang...
NVIDIA NIMsThe langchain-nvidia-ai-endpoints package contains LangChain integrat...
Oracle Cloud Infrastructure Generative AIOracle Cloud Infrastructure (OCI) Generative AI is a fully managed se...
OllamaThis will help you get started with Ollama embedding models using Lan...
OpenClipOpenClip is an source implementation of OpenAI's CLIP.
OpenAIThis will help you get started with OpenAI embedding models using Lan...
OpenVINOOpenVINO™ is an open-source toolkit for optimizing and deploying AI i...
Embedding Documents using Optimized and Quantized EmbeddersEmbedding all documents using Quantized Embedders.
Oracle AI Vector Search: Generate EmbeddingsOracle AI Vector Search is designed for Artificial Intelligence (AI) ...
OVHcloudIn order to use this model you need to create a new token on the AI E...
Pinecone EmbeddingsPinecone's inference API can be accessed via PineconeEmbeddings. Prov...
PremAIPremAI is an all-in-one platform that simplifies the creation of robu...
SageMakerLet's load the SageMaker Endpoints Embeddings class. The class can be...
SambaNovaSambaNova's Sambastudio is a platform for running your own open-sourc...
Self HostedLet's load the SelfHostedEmbeddings, SelfHostedHuggingFaceEmbeddings,...
Sentence Transformers on Hugging FaceHugging Face sentence-transformers is a Python framework for state-of...
SolarSolar offers an embeddings service.
SpaCyspaCy is an open-source software library for advanced natural languag...
SparkLLM Text EmbeddingsOfficial Website//www.xfyun.cn/doc/spark/Embeddingnewapi.html
TensorFlow HubTensorFlow Hub is a repository of trained machine learning models rea...
Text Embeddings InferenceHugging Face Text Embeddings Inference (TEI) is a toolkit for deployi...
TextEmbed - Embedding Inference ServerTextEmbed is a high-throughput, low-latency REST API designed for ser...
Titan TakeoffTitanML helps businesses build and deploy better, smaller, cheaper, a...
Together AIThis will help you get started with Together embedding models using L...
UpstageThis notebook covers how to get started with Upstage embedding models.
Volc EngineThis notebook provides you with a guide on how to load the Volcano Em...
Voyage AIVoyage AI provides cutting-edge embedding/vectorizations models.
Xorbits inference (Xinference)This notebook goes over how to use Xinference embeddings within LangC...
YandexGPTThis notebook goes over how to use Langchain with YandexGPT embedding...
ZhipuAIThis will help you get started with ZhipuAI embedding models using La...

Was this page helpful?