Skip to main content
Overview > Inworld Text Embedder Class: UInworldTextEmbedder | Inherits from: UObject Provides functionality to embed text as vector embeddings using Inworld AI’s Text Embedding services. This class offers both synchronous and asynchronous methods for embedding text inputs into high-dimensional vector representations. Delegates can be used to handle asynchronous results, which include success indicators and the resulting embeddings. Text embeddings are useful for semantic similarity comparisons, intent matching, and knowledge retrieval operations.

Methods

Reference

CreateInworldTextEmbedder

Creates an instance of UInworldTextEmbedder with the given configuration ID. CreateInworldTextEmbedder Blueprint Node

Examples

UInworldTextEmbedder* CreateInworldTextEmbedder(const FString& ConfigId)

Parameters

ParameterTypeDescription
ConfigIdconst FString&Identifier for the configuration to use for creating the text embedder.

Returns

Type: UInworldTextEmbedder* Description: A pointer to the instance of UInworldTextEmbedder.

Embed

Embeds the input text into embeddings synchronously. Embed Blueprint Node

Examples

bool Embed(
    const TArray<FString>& Text,
    TArray<FInworldTextEmbedding>& OutTextEmbeddings
)

Parameters

ParameterTypeDescription
Textconst TArray<FString>&An array of text strings to embed.
OutTextEmbeddingsTArray<FInworldTextEmbedding>&Outputs the resulting embeddings if embedding succeeds.

Returns

Type: bool Description: True if the embedding operation is successful, false otherwise.

EmbedAsync

Embeds the input text into embeddings asynchronously. EmbedAsync Blueprint Node

Examples

void EmbedAsync(
    const TArray<FString>& Text,
    FOnTextEmbedded Callback
)

Parameters

ParameterTypeDescription
Textconst TArray<FString>&An array of text strings to embed.
CallbackFOnTextEmbeddedA delegate to handle the embedding result asynchronously.

EmbedAsync

EmbedAsync Blueprint Node

Examples

void EmbedAsync()