Skip to main content
Embedding models convert text into numerical vectors. These embeddings capture the semantic meaning of the input text, and allow LLMs to understand context. Refer to your specific component’s documentation for more information on parameters.

Use an embeddings model component in a flow

In this example : FileComponent loads documents from a local machine
  • SplitTextComponent chunks the documents into smaller pieces
  • OpenAIEmbeddingsComponent converts text chunks into numerical vectors
  • AstraDBVectorStoreComponent stores the vectorized data in the vector database
The stored vectors can then be retrieved for similarity searches, RAG applications, and agent-based workflows. Embeddings Models Pn

AI/ML

This component generates embeddings using the AI/ML API.
InputsOutputs

Amazon Bedrock Embeddings

This component is used to load embedding models from Amazon Bedrock.
InputsOutputs

Astra DB vectorize

importantThis component is deprecated as of LLM Controls version 1.1.2. Instead, use the Astra DB vector store component.
Connect this component to the Embeddings port of the Astra DB vector store component to generate embeddings. This component requires that your Astra DB database has a collection that uses a vectorized embedding provider integration. For more information and instructions, see Embedding Generation.
InputsOutputs

Azure OpenAI Embeddings

This component generates embeddings using Azure OpenAI models.
InputsOutputs

Cloudflare Workers AI Embeddings

This component generates embeddings using Cloudflare Workers AI models.
InputsOutputs

Cohere Embeddings

This component is used to load embedding models from Cohere.
InputsOutputs

Embedding similarity

This component computes selected forms of similarity between two embedding vectors.
InputsOutputs

Google generative AI embeddings

This component connects to Google’s generative AI embedding service using the GoogleGenerativeAIEmbeddings class from the langchain-google-genai package.
InputsOutputs

Hugging Face Embeddings

noteThis component is deprecated as of LLM Controls version 1.0.18. Instead, use the Hugging Face Embeddings Inference component.
This component loads embedding models from HuggingFace. Use this component to generate embeddings using locally downloaded Hugging Face models. Ensure you have sufficient computational resources to run the models.
InputsOutputs

Hugging Face embeddings inference

This component generates embeddings using Hugging Face Inference API models and requires a Hugging Face API token to authenticate. Local inference models do not require an API key. Use this component to create embeddings with Hugging Face’s hosted models, or to connect to your own locally hosted models.
InputsOutputs

Connect the Hugging Face component to a local embeddings model

To run an embedding inference locally, see the HuggingFace documentation. To connect the local Hugging Face model to the Hugging Face embeddings inference component and use it in a flow, follow these steps:
  1. Create a Vector store RAG flow. There are two embeddings models in this flow that you can replace with Hugging Face embeddings inference components.
  2. Replace both OpenAI embeddings model components with Hugging Face model components.
  3. Connect both Hugging Face components to the Embeddings ports of the Astra DB vector store components.
  4. In the Hugging Face components, set the Inference Endpoint field to the URL of your local inference model. The API Key field is not required for local inference.
  5. Run the flow. The local inference models generate embeddings for the input text.

IBM watsonx embeddings

This component generates text using IBM watsonx.ai foundation models. To use IBM watsonx.ai embeddings components, replace an embeddings component with the IBM watsonx.ai component in a flow. An example document processing flow looks like the following: Embeddings Models 2 Pn This flow loads a PDF file from local storage and splits the text into chunks. The IBM watsonx embeddings component converts the text chunks into embeddings, which are then stored in a Chroma DB vector store. The values for API endpoint, Project ID, API key, and Model Name are found in your IBM watsonx.ai deployment. For more information, see the Langchain documentation.

Default models

The component supports several default models with the following vector dimensions:
  • sentence-transformers/all-minilm-l12-v2: 384-dimensional embeddings
  • ibm/slate-125m-english-rtrvr-v2: 768-dimensional embeddings
  • ibm/slate-30m-english-rtrvr-v2: 768-dimensional embeddings
  • intfloat/multilingual-e5-large: 1024-dimensional embeddings
The component automatically fetches and updates the list of available models from your watsonx.ai instance when you provide your API endpoint and credentials.
InputsOutputs

LM Studio Embeddings

This component generates embeddings using LM Studio models.
InputsOutputs

MistralAI

This component generates embeddings using MistralAI models.
InputsOutputs

NVIDIA

This component generates embeddings using NVIDIA models.
InputsOutputs

Ollama embeddings

This component generates embeddings using Ollama models. For a list of Ollama embeddings models, see the Ollama documentation. To use this component in a flow, connect LLM Controls to your locally running Ollama server and select an embedding model.
  1. In the Ollama component, in the Ollama Base URL field, enter the address for your locally running Ollama server. This value is set as the OLLAMA_HOST environment variable in Ollama. The default base URL is http://localhost:11434.
  2. To refresh the server’s list of models, click Refresh.
  3. In the Ollama Model field, select an embedding model. This example uses all-minilm:latest.
  4. Connect the Ollama embeddings component to a flow. For example, this flow connects a local Ollama server running a all-minilm:latest embeddings model to a Chroma DB vector store to generate embeddings for split text.
Embeddings Models 3 Pn For more information, see the Ollama documentation.
InputsOutputs

OpenAI Embeddings

This component is used to load embedding models from OpenAI.
InputsOutputs

Text embedder

This component generates embeddings for a given message using a specified embedding model.
InputsOutputs

VertexAI Embeddings

This component is a wrapper around Google Vertex AI Embeddings API.
InputsOutputs