Skip to main content
Overview > Inworld Graph Runtime Data > Inworld Graph Runtime Data Knowledge Class: UInworldGraphRuntimeData_Knowledge | Inherits from: UInworldGraphRuntimeData Runtime data class for managing knowledge retrieval in Inworld graphs. This class manages knowledge sets used for information retrieval and question-answering operations within Inworld graphs. It supports dynamic adding, removing, enabling, and disabling of knowledge sets, with text embeddings used for semantic search and retrieval.

Methods

Reference

AddKnowledgeTextEmbeddingAsset

Adds a new knowledge set to the runtime data, with an option to replace an existing set. AddKnowledgeTextEmbeddingAsset Blueprint Node

Examples

void AddKnowledgeTextEmbeddingAsset(
    FName Id,
    const UInworldTextEmbeddingAsset* Knowledge,
    bool Replace
)

Parameters

ParameterTypeDescription
IdFNameThe unique identifier of the knowledge set to be added.
Knowledgeconst UInworldTextEmbeddingAsset*The TextEmbeddings Asset to be added.
ReplaceboolIf true, replaces an existing knowledge set with the same ID. Defaults to false.

AddKnowledgeTextEmbeddings

Adds a new knowledge set to the runtime data, with an option to replace an existing set. AddKnowledgeTextEmbeddings Blueprint Node

Examples

void AddKnowledgeTextEmbeddings(
    FName Id,
    const TArray<FInworldTextEmbedding>& Knowledge,
    bool Replace
)

Parameters

ParameterTypeDescription
IdFNameThe unique identifier of the knowledge set to be added.
Knowledgeconst TArray<FInworldTextEmbedding>&The TextEmbeddings to be added.
ReplaceboolIf true, replaces an existing knowledge set with the same ID. Defaults to false.

DisableKnowledge

Disables a specific knowledge set within the runtime data. DisableKnowledge Blueprint Node

Examples

void DisableKnowledge(FName Id)

Parameters

ParameterTypeDescription
IdFNameThe unique identifier for the knowledge set to be disabled.

EnableKnowledge

Enables a specific knowledge set within the runtime data. EnableKnowledge Blueprint Node

Examples

void EnableKnowledge(FName Id)

Parameters

ParameterTypeDescription
IdFNameThe unique identifier for the knowledge set to be enabled.

GetKnowledgeMapKeys

Retrieves all knowledge set IDs currently stored in the runtime data. GetKnowledgeMapKeys Blueprint Node

Examples

TArray<FName> GetKnowledgeMapKeys()

Returns

Type: TArray<FName>

RemoveKnowledge

Removes a specific knowledge set identified by its unique ID. RemoveKnowledge Blueprint Node

Examples

void RemoveKnowledge(FName Id)

Parameters

ParameterTypeDescription
IdFNameThe unique identifier of the knowledge set to be removed.

Set

Sets the initial knowledge assets for the runtime data. Set Blueprint Node

Examples

void Set(const TMap<FName, UInworldTextEmbeddingAsset*>& KnowledgeAssets)

Parameters

ParameterTypeDescription
KnowledgeAssetsconst TMap<FName, UInworldTextEmbeddingAsset*>&Map of knowledge set identifiers to their corresponding text embedding assets