Skip to content

Commit 5ef74a2

Browse files
committed
add 0.1.12 接口流式返回
1 parent cd52e33 commit 5ef74a2

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<!-- See https://aka.ms/dotnet/msbuild/customize for more details on customizing your build -->
33
<PropertyGroup>
4-
<Version>0.1.11</Version>
4+
<Version>0.1.12</Version>
55
<SKVersion>1.17.1</SKVersion>
66
</PropertyGroup>
77
</Project>

src/GraphRag.Net/Domain/Interface/IGraphService.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using GraphRag.Net.Domain.Model.Graph;
2+
using Microsoft.SemanticKernel;
23

34
namespace GraphRag.Net.Domain.Interface
45
{
@@ -37,13 +38,27 @@ public interface IGraphService
3738
/// <returns></returns>
3839
Task<string> SearchGraphAsync(string index, string input);
3940
/// <summary>
41+
/// 搜索递归获取节点相关的所有边和节点进行图谱对话,流式返回
42+
/// </summary>
43+
/// <param name="index"></param>
44+
/// <param name="input"></param>
45+
/// <returns></returns>
46+
IAsyncEnumerable<StreamingKernelContent> SearchGraphStreamAsync(string index, string input);
47+
/// <summary>
4048
/// 通过社区算法检索社区节点进行对话
4149
/// </summary>
4250
/// <param name="index"></param>
4351
/// <param name="input"></param>
4452
/// <returns></returns>
4553
Task<string> SearchGraphCommunityAsync(string index, string input);
4654
/// <summary>
55+
/// 通过社区算法检索社区节点进行对话,流式返回
56+
/// </summary>
57+
/// <param name="index"></param>
58+
/// <param name="input"></param>
59+
/// <returns></returns>
60+
IAsyncEnumerable<StreamingKernelContent> SearchGraphCommunityStreamAsync(string index, string input);
61+
/// <summary>
4762
/// 社区摘要
4863
/// </summary>
4964
/// <param name="index"></param>

0 commit comments

Comments
 (0)