Table of Contents

Property TokenCount

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

TokenCount

Gets the estimated token count for this document.

public int TokenCount { get; }

Property Value

int

Examples

var result = await chat.LoadDocumentAsync("report.pdf");
Console.WriteLine($"Token count: {result.TokenCount}");

Remarks

For FullDocument, this represents tokens consumed from FullDocumentTokenBudget. For PassageRetrieval, this represents the total document size before chunking.

Share