Method Dispose
Dispose()
Releases all resources used by this instance.
public void Dispose()
Examples
var ragEngine = new RagEngine(embeddingModel);
ragEngine.ImportText("Sample content.", "docs", "section1");
// RagChat is disposable; the engine is NOT disposed
using (var chat = new RagChat(ragEngine, chatModel))
{
await chat.SubmitAsync("Tell me about the content.");
}
// ragEngine is still usable after the chat is disposed
Remarks
Disposes the internal conversation only. The Engine is owned by the caller and must be disposed separately.