Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions DifySharp.Demo.AspNet/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
1000
),
"paragraph",
new SubChunkSegmentation(
new SubchunkSegmentation(
"\n\n",
1000,
200
Expand Down Expand Up @@ -114,7 +114,7 @@
1000
),
"paragraph",
new SubChunkSegmentation(
new SubchunkSegmentation(
"\n\n",
1000,
200
Expand Down
2 changes: 1 addition & 1 deletion DifySharp.Test/Apis/KnowledgeBaseApiTest/ChunkApiTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public ChunkApiTestFixture()
1000
),
"paragraph",
new SubChunkSegmentation(
new SubchunkSegmentation(
"\n\n",
1000,
200
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ ILogger<DocumentApiTest> logger
1000
),
"paragraph",
new SubChunkSegmentation(
new SubchunkSegmentation(
"\n\n",
1000,
200
Expand Down
6 changes: 3 additions & 3 deletions DifySharp/DTOs/KnowledgeBase/ProcessRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Rules Rules
/// <item>paragraph : paragraph retrieval</item>
/// </list>
/// </param>
/// <param name="SubChunkSegmentation">(object) Child chunk rules</param>
/// <param name="SubchunkSegmentation">(object) Child chunk rules</param>
public record Rules(
ICollection<PreProcessingRule> PreProcessingRules,
Segmentation Segmentation,
string ParentMode,
SubChunkSegmentation SubChunkSegmentation
SubchunkSegmentation SubchunkSegmentation
);

/// <summary>
Expand Down Expand Up @@ -60,7 +60,7 @@ int MaxTokens
/// <param name="Separator">Segmentation identifier. Currently, only one delimiter is allowed. The default is ***</param>
/// <param name="MaxTokens">The maximum length (tokens) must be validated to be shorter than the length of the parent chunk</param>
/// <param name="ChunkOverlap">Define the overlap between adjacent chunks (optional)</param>
public record SubChunkSegmentation(
public record SubchunkSegmentation(
string Separator,
int MaxTokens,
int? ChunkOverlap
Expand Down
2 changes: 1 addition & 1 deletion DifySharp/DifySharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Version>0.0.3-alpha4</Version>
<Version>0.0.3-alpha5</Version>
<Authors>fengb3</Authors>
<RepositoryUrl>https://github.com/fengb3/DifySharp.git</RepositoryUrl>
<PackageProjectUrl>https://github.com/fengb3/DifySharp</PackageProjectUrl>
Expand Down
Loading