From f35e5065c9f7e407f0e3deae03189a44d660ba9f Mon Sep 17 00:00:00 2001 From: zyxucp <286513187@qq.com> Date: Thu, 15 Aug 2024 23:48:36 +0800 Subject: [PATCH] test --- Directory.Build.props | 2 +- src/GraphRag.Net/Domain/Service/SemanticService.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index be33138..ca7abb7 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - 0.1.20-dev1 + 0.1.20-dev2 1.17.1 diff --git a/src/GraphRag.Net/Domain/Service/SemanticService.cs b/src/GraphRag.Net/Domain/Service/SemanticService.cs index 26166fd..be449c1 100644 --- a/src/GraphRag.Net/Domain/Service/SemanticService.cs +++ b/src/GraphRag.Net/Domain/Service/SemanticService.cs @@ -23,9 +23,9 @@ public SemanticService(Kernel kernel) if (!_kernel.Plugins.Any(p => p.Name == "graph")) { var basePath = AppDomain.CurrentDomain.BaseDirectory; // 或使用其他方式获取根路径 - var pluginPath = Path.Combine(basePath, RepoFiles.SamplePluginsPath(), "graph"); + var pluginPath = Path.Combine(basePath, RepoFiles.SamplePluginsPath()); Console.WriteLine($"pluginPatth:{pluginPath}"); - _kernel.ImportPluginFromPromptDirectory(pluginPath); + _kernel.ImportPluginFromPromptDirectory(pluginPath, "graph"); } } public async Task CreateGraphAsync(string input)