📄️ Azure OpenAI
Azure OpenAI is a cloud service to help you quickly develop generative AI experiences with a diverse set of prebuilt and curated models from OpenAI, Meta and beyond.
Amazon Bedrock is a fully managed service that makes base models from Amazon and third-party model providers accessible through an API.
📄️ Cloudflare Workers AI
If you're deploying your project in a Cloudflare worker, you can use Cloudflare's built-in Workers AI embeddings with LangChain.js.
The CohereEmbeddings class uses the Cohere API to generate embeddings for a given text.
The FireworksEmbeddings class allows you to use the Fireworks AI API to generate embeddings.
📄️ Google AI
You can access Google's generative AI embeddings models through
📄️ Google PaLM
This integration does not support embeddings-* model. Check Google AI embeddings.
📄️ Google Vertex AI
The GoogleVertexAIEmbeddings class uses Google's Vertex AI PaLM models
📄️ Gradient AI
The GradientEmbeddings class uses the Gradient AI API to generate embeddings for a given text.
📄️ HuggingFace Inference
This Embeddings integration uses the HuggingFace Inference API to generate embeddings for a given text using by default the sentence-transformers/distilbert-base-nli-mean-tokens model. You can pass a different model name to the constructor to use a different model.
📄️ Llama CPP
Only available on Node.js.
The MinimaxEmbeddings class uses the Minimax API to generate embeddings for a given text.
📄️ Mistral AI
The MistralAIEmbeddings class uses the Mistral AI API to generate embeddings for a given text.
The NomicEmbeddings class uses the Nomic AI API to generate embeddings for a given text.
The OllamaEmbeddings class uses the /api/embeddings route of a locally hosted Ollama server to generate embeddings for given texts.
The OpenAIEmbeddings class uses the OpenAI API to generate embeddings for a given text. By default it strips new line characters from the text, as recommended by OpenAI, but you can disable this by passing stripNewLines: false to the constructor.
This Embeddings integration runs the embeddings entirely in your browser or Node.js environment, using TensorFlow.js. This means that your data isn't sent to any third party, and you don't need to sign up for any API keys. However, it does require more memory and processing power than the other integrations.
📄️ Together AI
The TogetherAIEmbeddings class uses the Together AI API to generate embeddings for a given text.
📄️ HuggingFace Transformers
The TransformerEmbeddings class uses the Transformers.js package to generate embeddings for a given text.
📄️ Voyage AI
The VoyageEmbeddings class uses the Voyage AI REST API to generate embeddings for a given text.