Skip to content

Commit b27e6fd

Browse files
committed
fix naming
1 parent fabec50 commit b27e6fd

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

DifySharp.Demo.AspNet/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
1000
5757
),
5858
"paragraph",
59-
new SubChunkSegmentation(
59+
new SubchunkSegmentation(
6060
"\n\n",
6161
1000,
6262
200
@@ -114,7 +114,7 @@
114114
1000
115115
),
116116
"paragraph",
117-
new SubChunkSegmentation(
117+
new SubchunkSegmentation(
118118
"\n\n",
119119
1000,
120120
200

DifySharp.Test/Apis/KnowledgeBaseApiTest/ChunkApiTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public ChunkApiTestFixture()
5757
1000
5858
),
5959
"paragraph",
60-
new SubChunkSegmentation(
60+
new SubchunkSegmentation(
6161
"\n\n",
6262
1000,
6363
200

DifySharp.Test/Apis/KnowledgeBaseApiTest/DocumentApiTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ILogger<DocumentApiTest> logger
6363
1000
6464
),
6565
"paragraph",
66-
new SubChunkSegmentation(
66+
new SubchunkSegmentation(
6767
"\n\n",
6868
1000,
6969
200

DifySharp/DTOs/KnowledgeBase/ProcessRule.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ Rules Rules
2121
/// <item>paragraph : paragraph retrieval</item>
2222
/// </list>
2323
/// </param>
24-
/// <param name="SubChunkSegmentation">(object) Child chunk rules</param>
24+
/// <param name="SubchunkSegmentation">(object) Child chunk rules</param>
2525
public record Rules(
2626
ICollection<PreProcessingRule> PreProcessingRules,
2727
Segmentation Segmentation,
2828
string ParentMode,
29-
SubChunkSegmentation SubChunkSegmentation
29+
SubchunkSegmentation SubchunkSegmentation
3030
);
3131

3232
/// <summary>
@@ -60,7 +60,7 @@ int MaxTokens
6060
/// <param name="Separator">Segmentation identifier. Currently, only one delimiter is allowed. The default is ***</param>
6161
/// <param name="MaxTokens">The maximum length (tokens) must be validated to be shorter than the length of the parent chunk</param>
6262
/// <param name="ChunkOverlap">Define the overlap between adjacent chunks (optional)</param>
63-
public record SubChunkSegmentation(
63+
public record SubchunkSegmentation(
6464
string Separator,
6565
int MaxTokens,
6666
int? ChunkOverlap

DifySharp/DifySharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
7-
<Version>0.0.3-alpha4</Version>
7+
<Version>0.0.3-alpha5</Version>
88
<Authors>fengb3</Authors>
99
<RepositoryUrl>https://github.com/fengb3/DifySharp.git</RepositoryUrl>
1010
<PackageProjectUrl>https://github.com/fengb3/DifySharp</PackageProjectUrl>

0 commit comments

Comments
 (0)