TsgcAIOpenAIChatBot › Properties › Embeddings
Optional embeddings store used to retrieve context (RAG) before a chat completion.
__property TsgcAI_OpenAI_Embeddings * Embeddings;
—
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.