📄️ Azure OpenAI
The OpenAIEmbeddings class can also use the OpenAI API on Azure 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.
📄️ Bedrock
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.
📄️ Cohere
The CohereEmbeddings class uses the Cohere API to generate embeddings for a given text.
📄️ Google PaLM
The Google PaLM API can be integrated by first
📄️ 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.
📄️ Minimax
The MinimaxEmbeddings class uses the Minimax API to generate embeddings for a given text.
📄️ Ollama
The OllamaEmbeddings class uses the /api/embeddings route of a locally hosted Ollama server to generate embeddings for given texts.
📄️ OpenAI
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.
📄️ TensorFlow
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.
📄️ 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.