04.6.11.1 bge-base-en-v1.5 (preview)
Node Description
bge-base-en-v1.5 (preview) - action type node needed to generate numeric vectors based on the given text.
Maximum number of input tokens: 512. Output sizes: 768
Model ID: @cf/baai/bge-base-en-v1.5
. BAAI general embedding (bge) models, i.e., object extraction models convert any text into a compact vector. These numerical representations or numerical vectors retain the basic information from the raw data (text) and can be further utilized in applications.
Embeddings are widely used in modern language models and natural language processing systems. Here are some of the main applications of text embeddings:
- Text analysis and classification: representing words and text as vectors allows efficient application of machine learning algorithms for text classification tasks, topic modeling, tone detection, etc.
- Information retrieval and recommendation: text embeddings are used to compute semantic proximity between documents, queries and content, which is important for search engines, recommendation services and other applications.
- Improving deep learning models: using textual embeddings as inputs to deep learning models can often improve their performance, especially in the presence of limited labeled data.
Node Configuration
To configure the bge-base-en-v1.5 (preview) node, the required Text field is required.
Text
Text field to be filled in. The text can be filled in manually or be the result of previous nodes.
If necessary, you can process several text fragments at once. To do this, add additional fields by clicking the "plus" icon (1). Deleting added fields is also available (2).
Example of launching a node
Let's run the bge-base-en-v1.5 (preview) node to process text and generate numeric vectors.
Example text
The output of the node execution is JSON:
- with an array of 768 numeric vectors
"data";
- with the action execution status
"success": true
.
JSON (abridged version)
{
"result": {
"errors": [],
"messages": [],
"result": {
"data": [
[
-0.008297559805214405,
-0.03688555955886841,
-0.012633219361305237,
-0.017695223912596703,
0.025187313556671143,
0.0564224049448967,
0.037474386394023895,
...
0.051702700555324554,
0.04728357866406441
]
],
"shape": [
1,
768
]
},
"success": true
}
}