Table of Contents

Property JsonSchema

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

JsonSchema

Gets the JSON schema representation of the extraction elements.

public string JsonSchema { get; }

Property Value

string

Examples

var te = new TextExtraction(LM.LoadFromModelID("lmkit-tasks:4b-preview"));
te.Elements = new List<TextExtractionElement>
{
    new TextExtractionElement("InvoiceId", ElementType.String, "Identifier of the invoice"),
    new TextExtractionElement("IssueDate", ElementType.Date, "Invoice issue date")
};
Console.WriteLine(te.JsonSchema); // Draft schema describing the current element set