Table of Contents

Method Dispose

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

Dispose()

Releases all resources used by this instance.

public void Dispose()

Examples

// Using statement ensures proper cleanup
using (var chat = new PdfChat(chatModel, embeddingModel))
{
    await chat.LoadDocumentAsync("report.pdf");
    var result = await chat.SubmitAsync("What is this about?");
    Console.WriteLine(result.Response.Completion);
} // Resources are released here
Share