Class ChunkPreviewResult
- Namespace
- Mythosia.AI.Rag.Diagnostics
- Assembly
- Mythosia.AI.Rag.dll
Result of PreviewChunks โ shows exactly how a document was split.
public class ChunkPreviewResult
- Inheritance
-
ChunkPreviewResult
- Inherited Members
Constructors
ChunkPreviewResult(IReadOnlyList<RagChunk>, int, IReadOnlyList<ChunkOverlapInfo>, string)
public ChunkPreviewResult(IReadOnlyList<RagChunk> chunks, int documentLength, IReadOnlyList<ChunkOverlapInfo> overlaps, string splitterType)
Parameters
chunksIReadOnlyList<RagChunk>documentLengthintoverlapsIReadOnlyList<ChunkOverlapInfo>splitterTypestring
Properties
AverageChunkSize
public int AverageChunkSize { get; }
Property Value
Chunks
public IReadOnlyList<RagChunk> Chunks { get; }
Property Value
DocumentLength
public int DocumentLength { get; }
Property Value
Overlaps
public IReadOnlyList<ChunkOverlapInfo> Overlaps { get; }
Property Value
SplitterType
public string SplitterType { get; }
Property Value
TotalChunks
public int TotalChunks { get; }
Property Value
Methods
ToSummary()
Returns a human-readable summary of the chunking result.
public string ToSummary()