From c0cc21fe1ba036a6ee7690bf3deb3edeade511cb Mon Sep 17 00:00:00 2001 From: AntChen <1151355296@qq.com> Date: Sat, 28 Feb 2026 16:36:41 +0800 Subject: [PATCH] =?UTF-8?q?fix(api):=20=E4=BF=AE=E6=AD=A3=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=88=AB=E5=90=8D=E5=8F=8A=E6=B7=BB=E5=8A=A0DatasetId?= =?UTF-8?q?=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在IDatasetApi接口中将pageSize参数的别名改为page_size - 在Retrieval类中添加DatasetId属性用于标识数据集ID --- RAGFlowSharp/Api/IDatasetApi.cs | 2 +- RAGFlowSharp/Dtos/Chunk/Retrieval.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RAGFlowSharp/Api/IDatasetApi.cs b/RAGFlowSharp/Api/IDatasetApi.cs index 92b2347..9dbbd44 100644 --- a/RAGFlowSharp/Api/IDatasetApi.cs +++ b/RAGFlowSharp/Api/IDatasetApi.cs @@ -61,7 +61,7 @@ [JsonContent] Update.RequestBody requestBody ITask ListDatasets( // ITask ListDatasets( string? page = null, - string? pageSize = null, + [AliasAs("page_size")] string? pageSize = null, string? orderby = null, bool? desc = null, string? name = null, diff --git a/RAGFlowSharp/Dtos/Chunk/Retrieval.cs b/RAGFlowSharp/Dtos/Chunk/Retrieval.cs index d67faa0..cca2489 100644 --- a/RAGFlowSharp/Dtos/Chunk/Retrieval.cs +++ b/RAGFlowSharp/Dtos/Chunk/Retrieval.cs @@ -32,6 +32,7 @@ public class RetrievedChunk { public string Content { get; set; } = string.Empty; public string? ContentLtks { get; set; } + public string DatasetId { get; set; } = string.Empty; public string DocumentId { get; set; } = string.Empty; public string? DocumentKeyword { get; set; } public string? Highlight { get; set; }