ReaderHierarchicalChunkingOptions
OfficeIMO.Reader
Options for bounded, token-aware hierarchical chunking.
Inheritance
- object
- ReaderHierarchicalChunkingOptions
Usage
Explore 4 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Accepted by parameters 4
Constructors
public ReaderHierarchicalChunkingOptions() #Inherited Methods
Properties
public int MaxTokens { get; set; } #Maximum tokens in each output chunk, including optional context. Default: 800.
public int OverlapTokens { get; set; } #Maximum content tokens repeated from the previous segment. Default: 80.
public int MaxInputChunks { get; set; } #Maximum source chunks inspected. Default: 10,000.
public int MaxOutputChunks { get; set; } #Maximum output chunks emitted. Default: 50,000.
public int MaxHierarchyDepth { get; set; } #Maximum container and heading hierarchy depth below the document root. Default: 32.
public int MaxContextCharacters { get; set; } #Maximum characters retained in one hierarchy breadcrumb or title. Default: 4,096.
public bool PreferMarkdown { get; set; } #Prefer a source chunk's Markdown over plain text when available. Default: true.
public bool IncludeContextInText { get; set; } #Prefix output text with its container and heading breadcrumb when it fits the token budget. Default: true.
public IReaderTokenCounter TokenCounter { get; set; } #Token counter. Defaults to the dependency-free OfficeIMO heuristic.