Table of Contents

Property Grounding

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

Grounding

Gets the grounding verdict of this answer when the conversation that produced it carries knowledge sources (Knowledge): the passages presented, the passages cited, and any cited number that was never presented. null when the conversation has no knowledge attached.

public KnowledgeGrounding Grounding { get; }

Property Value

KnowledgeGrounding

Examples

var result = await chat.SubmitAsync("What is the refund window?");
if (result.Grounding is { IsGrounded: false } grounding)
{
    Console.WriteLine($"Not grounded: {grounding.Status}");
}
Share