Table of Contents

Property TokenCounter

Namespace
Qavren.Edge.Rag
Assembly
Qavren.Edge.Rag.dll

TokenCounter

Null uses a chars/4 estimate. Pass the chat model's own counter - reachable as chatClient.GetService<Tokenizer>() - for exactness against the model that will actually read the block.

public Func<string, int>? TokenCounter { get; set; }

Property Value

Func<string, int>