New to Telerik UI for WinFormsStart a free 30-day trial

Defines methods for providing summaries and answering questions about documents.

Definition

Namespace:Telerik.WinControls.UI.AIProviders

Assembly:Telerik.WinControls.PdfViewer.dll

Syntax:

C#
public interface ISummaryProvider

Derived Classes: AzureOpenAISummaryProviderBaseSummaryProviderLlamaSummaryProviderOpenAISummaryProvider

Properties

Gets or sets additional instructions to be appended to the prompt for summarization or question answering.

C#
string PromptAddition { get; set; }

Methods

Asks a question about the specified document and returns the answer.

C#
string AskQuestion(string question, SimpleTextDocument simpleDocument)
Parameters:questionstring

The question to ask.

simpleDocumentSimpleTextDocument

The document to use as context for the question.

Returns:

string

The answer string generated by the provider.

Generates a summary for the specified document.

C#
string GetSummary(SimpleTextDocument simpleDocument)
Parameters:simpleDocumentSimpleTextDocument

The document to summarize.

Returns:

string

A summary string generated by the provider.