Files
xSaherElmAiApi/Models/XTextChunkerDescriptor.cs
T

34 lines
1004 B
C#

namespace xAiApi.Models
{
/// <summary>
/// Text Chunker Descriptor ...
/// </summary>
public class XTextChunkerDescriptor
{
/// <summary>
/// Maximum Characters Count of each Chunk ...
/// </summary>
public int ChunkSize { get; set; } = 800;
/// <summary>
/// Characters Count which Shared between two Consecutive Chunks ...
/// </summary>
public int ChunkOverlap { get; set; } = 150;
/// <summary>
/// Chunks Smaller than this Size will be Merged into Previous Chunk ...
/// </summary>
public int MinChunkSize { get; set; } = 50;
/// <summary>
/// Chunck Identifier Separator ...
/// </summary>
public string ChunkIdentifierSeparator { get; set; } = "#";
/// <summary>
/// Normalize Line Endings and Repeated Whitespaces before Chunking ...
/// </summary>
public bool NormalizeWhitespace { get; set; } = true;
}
}