diff --git a/Directory.Build.props b/Directory.Build.props index 5dc96c1..d0fef7e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,7 @@ - 0.1.19 + 0.1.20 1.17.1 diff --git a/src/GraphRag.Net/Extensions/ServiceCollectionExtensions.cs b/src/GraphRag.Net/Extensions/ServiceCollectionExtensions.cs index 714f878..a4764cb 100644 --- a/src/GraphRag.Net/Extensions/ServiceCollectionExtensions.cs +++ b/src/GraphRag.Net/Extensions/ServiceCollectionExtensions.cs @@ -78,7 +78,9 @@ static void InitSK(IServiceCollection services,Kernel _kernel = null) //导入插件 if (!_kernel.Plugins.Any(p => p.Name == "graph")) { - _kernel.ImportPluginFromPromptDirectory(Path.Combine(RepoFiles.SamplePluginsPath(), "graph")); + var pluginPatth = Path.Combine(RepoFiles.SamplePluginsPath(), "graph"); + Console.WriteLine($"pluginPatth:{pluginPatth}"); + _kernel.ImportPluginFromPromptDirectory(pluginPatth); } return _kernel; }); diff --git a/src/GraphRag.Net/Utils/RepoUtils/RepoFiles.cs b/src/GraphRag.Net/Utils/RepoUtils/RepoFiles.cs index 5a90757..acfafac 100644 --- a/src/GraphRag.Net/Utils/RepoUtils/RepoFiles.cs +++ b/src/GraphRag.Net/Utils/RepoUtils/RepoFiles.cs @@ -42,7 +42,7 @@ string FindPluginsDirectory(string startDir, string targetFolder) { throw new AppException("Plugins directory not found. The app needs the plugins from the repo to work."); } - + Console.WriteLine(path); return path; } }