Table of Contents

Property GenerateContent

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

GenerateContent

Gets or sets a value indicating whether the summarization should include the summarized content body.

public bool GenerateContent { get; set; }

Property Value

bool

The default value is true.

Examples

// Only generate a title, no summarized content.
var model = new LMKit.Model.LM("title-only-model.gguf");
var summarizer = new LMKit.TextGeneration.Summarizer(model)
{
    GenerateContent = false,
    GenerateTitle = true
};

string longText = "Detailed analysis of the climate change effects on coastal regions...";
var result = summarizer.Summarize(longText);

Console.WriteLine("Content Generation Enabled: " + summarizer.GenerateContent);
Console.WriteLine("Title: " + result.Title);
// Note: result.Content may be empty since GenerateContent = false.