Class
LlamaSummaryProvider

Provides summary and question-answering functionality using a Llama server.

Definition

Namespace:Telerik.Windows.Controls.FixedDocumentViewersUI.AIProviders

Assembly:Telerik.Windows.Controls.FixedDocumentViewersUI.dll

Syntax:

cs-api-definition
[CLSCompliant(false)]
public class LlamaSummaryProvider : BaseSummaryProvider, ISummaryProvider

Inheritance: objectBaseSummaryProviderLlamaSummaryProvider

Implements: ISummaryProvider

Inherited Members BaseSummaryProvider.GetSummary(SimpleTextDocument)BaseSummaryProvider.AskQuestion(string, SimpleTextDocument)BaseSummaryProvider.SummarizationProcessor_SummaryResourcesCalculated(object, SummaryResourcesCalculatedEventArgs)BaseSummaryProvider.OnSummaryResourcesCalculated(object, SummaryResourcesCalculatedEventArgs)BaseSummaryProvider.SecureStringToString(SecureString)BaseSummaryProvider.PromptAdditionBaseSummaryProvider.ChatClientBaseSummaryProvider.ModelBaseSummaryProvider.MaxTokenCountBaseSummaryProvider.SummaryResourcesCalculated

Constructors

LlamaSummaryProvider(string, string)

Initializes a new instance of the LlamaSummaryProvider class with the specified endpoint and model.

Declaration

cs-api-definition
public LlamaSummaryProvider(string endpoint, string model)

Parameters

endpoint

string

The endpoint URL used to connect to the Llama service.

model

string

The name of the model to be used for generating summaries.

Remarks

This constructor initializes the provider and sets up the necessary client for communication with the Llama service. Ensure that the endpoint is a valid URL and that the model corresponds to a supported model.

Methods

CreateChatClient()

Initializes and assigns a new instance of the chat client.

Declaration

cs-api-definition
protected override void CreateChatClient()

Overrides BaseSummaryProvider.CreateChatClient()

Remarks

This method creates an instance of using the specified endpoint and model. The created client is assigned to the property.