Method Dispose
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