add TextChunker Service for AI Project ...
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user