TsgcAIOpenAIChatBotProperties › Embeddings

Embeddings Property

Optional embeddings store used to retrieve context (RAG) before a chat completion.

Syntax

__property TsgcAI_OpenAI_Embeddings * Embeddings;

Default Value

Remarks

Assign a TsgcAI_OpenAI_Embeddings instance to turn the ChatBot into a Retrieval-Augmented Generation (RAG) agent. Call GetEmbedding to query the store for the nearest documents to a prompt and feed them back as system or user messages before ChatAsUser. The property is weakly owned: the ChatBot clears the reference automatically in Notification when the embeddings component is freed.

Example

Back to Properties