ClassLlamaSummaryProvider
Provides summary and question-answering functionality using a Llama server.
Definition
Namespace:Telerik.Windows.Controls.FixedDocumentViewersUI.AIProviders
Assembly:Telerik.Windows.Controls.FixedDocumentViewersUI.dll
Syntax:
[CLSCompliant(false)]
public class LlamaSummaryProvider : BaseSummaryProvider, ISummaryProvider
Inheritance: objectBaseSummaryProviderLlamaSummaryProvider
Implements:
Inherited Members
Constructors
LlamaSummaryProvider(string, string)
Initializes a new instance of the LlamaSummaryProvider class with the specified endpoint and model.
Declaration
public LlamaSummaryProvider(string endpoint, string model)
Parameters
endpoint
The endpoint URL used to connect to the Llama service.
model
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
protected override void CreateChatClient()
Overrides
Remarks
This method creates an instance of using the specified endpoint and model. The created client is assigned to the property.