Calculates embeddings for the provided text input.
2 min read
Calculates embeddings for the provided text input.
Inputs
Label
Property
Type
Description
Default Value
Is Required
Text Input
textInput
botdojo/types/string
Input text to generate embeddings for.
null
Properties
Label
Property
Type
Description
Default Value
Is Required
Embedding Model Configuration
embeddingModelConfig
botdojo/types/embedding_model
Configure the embedding model and its dimensions.
Object
Output
Label
Property
Type
Description
Default Value
Embedding Output
embeddingOutput
botdojo/types/array
The resulting embedding vector for the input text.
null
### Get Embeddings Node
The Get Embeddings Node is designed to generate embeddings for a given text input using a specified embedding model. This functionality is essential for applications that require understanding and processing natural language data, such as text classification, sentiment analysis, or information retrieval.
## How It Works
The node accepts text input.
It retrieves the configured embedding model and computes the embedding for the input text.
The generated embedding is outputted, which can be used in further processing or analysis.
## Example Flow
[](https://api.botdojo.com/api/v1/doc_image/1b1b04b0-bf92-11ee-bfc5-99753860bb34/ee911b50-fd67-11ee-ba0f-813b54637670/cde23e50-0688-11ef-9fb1-0bab06205263_-348.63676872175347_-23.581591365674626_1920_899_1.4109410522992731.png?noCache=true)
## Use Cases
Text Classification: By generating embeddings for text, you can feed the data into machine learning models for classification tasks.
Sentiment Analysis: Understand the sentiment of a piece of text by analyzing its embedding.
Information Retrieval: Enhance search functionalities by comparing embeddings of search queries with those of documents in a database.
Integrating this node into your flow enables advanced text analysis capabilities, leveraging the power of machine learning models to understand and process natural language data effectively.