diff --git a/DifySharp.Demo.AspNet/Program.cs b/DifySharp.Demo.AspNet/Program.cs index 6d8feec..b288a2b 100644 --- a/DifySharp.Demo.AspNet/Program.cs +++ b/DifySharp.Demo.AspNet/Program.cs @@ -56,7 +56,7 @@ 1000 ), "paragraph", - new SubChunkSegmentation( + new SubchunkSegmentation( "\n\n", 1000, 200 @@ -114,7 +114,7 @@ 1000 ), "paragraph", - new SubChunkSegmentation( + new SubchunkSegmentation( "\n\n", 1000, 200 diff --git a/DifySharp.Test/Apis/KnowledgeBaseApiTest/ChunkApiTest.cs b/DifySharp.Test/Apis/KnowledgeBaseApiTest/ChunkApiTest.cs index 2483a30..684094e 100644 --- a/DifySharp.Test/Apis/KnowledgeBaseApiTest/ChunkApiTest.cs +++ b/DifySharp.Test/Apis/KnowledgeBaseApiTest/ChunkApiTest.cs @@ -57,7 +57,7 @@ public ChunkApiTestFixture() 1000 ), "paragraph", - new SubChunkSegmentation( + new SubchunkSegmentation( "\n\n", 1000, 200 diff --git a/DifySharp.Test/Apis/KnowledgeBaseApiTest/DocumentApiTest.cs b/DifySharp.Test/Apis/KnowledgeBaseApiTest/DocumentApiTest.cs index d6329d6..e9805d9 100644 --- a/DifySharp.Test/Apis/KnowledgeBaseApiTest/DocumentApiTest.cs +++ b/DifySharp.Test/Apis/KnowledgeBaseApiTest/DocumentApiTest.cs @@ -63,7 +63,7 @@ ILogger logger 1000 ), "paragraph", - new SubChunkSegmentation( + new SubchunkSegmentation( "\n\n", 1000, 200 diff --git a/DifySharp/DTOs/KnowledgeBase/ProcessRule.cs b/DifySharp/DTOs/KnowledgeBase/ProcessRule.cs index 1a74659..8dd90dd 100644 --- a/DifySharp/DTOs/KnowledgeBase/ProcessRule.cs +++ b/DifySharp/DTOs/KnowledgeBase/ProcessRule.cs @@ -21,12 +21,12 @@ Rules Rules /// paragraph : paragraph retrieval /// /// -/// (object) Child chunk rules +/// (object) Child chunk rules public record Rules( ICollection PreProcessingRules, Segmentation Segmentation, string ParentMode, - SubChunkSegmentation SubChunkSegmentation + SubchunkSegmentation SubchunkSegmentation ); /// @@ -60,7 +60,7 @@ int MaxTokens /// Segmentation identifier. Currently, only one delimiter is allowed. The default is *** /// The maximum length (tokens) must be validated to be shorter than the length of the parent chunk /// Define the overlap between adjacent chunks (optional) -public record SubChunkSegmentation( +public record SubchunkSegmentation( string Separator, int MaxTokens, int? ChunkOverlap diff --git a/DifySharp/DifySharp.csproj b/DifySharp/DifySharp.csproj index 4f6cbec..e9cda08 100644 --- a/DifySharp/DifySharp.csproj +++ b/DifySharp/DifySharp.csproj @@ -4,7 +4,7 @@ net8.0 enable enable - 0.0.3-alpha4 + 0.0.3-alpha5 fengb3 https://github.com/fengb3/DifySharp.git https://github.com/fengb3/DifySharp