Skip to content

Commit 32c99de

Browse files
committed
relocate
1 parent e21a44e commit 32c99de

File tree

16 files changed

+35
-17
lines changed

16 files changed

+35
-17
lines changed

src/Infrastructure/BotSharp.Abstraction/BotSharp.Abstraction.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>$(TargetFramework)</TargetFramework>

src/Infrastructure/BotSharp.Abstraction/VectorStorage/Helpers/VectorStorageHelper.cs renamed to src/Infrastructure/BotSharp.Abstraction/VectorStorage/Extensions/VectorStorageExtension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using BotSharp.Abstraction.Knowledges.Enums;
22
using BotSharp.Abstraction.VectorStorage.Models;
33

4-
namespace BotSharp.Abstraction.VectorStorage.Helpers;
4+
namespace BotSharp.Abstraction.VectorStorage.Extensions;
55

6-
public static class VectorStorageHelper
6+
public static class VectorStorageExtension
77
{
88
public static string ToQuestionAnswer(this VectorSearchResult data)
99
{

src/Infrastructure/BotSharp.Core/BotSharp.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFramework>$(TargetFramework)</TargetFramework>

src/Infrastructure/BotSharp.Core/Conversations/ConversationPlugin.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using BotSharp.Abstraction.Settings;
77
using BotSharp.Abstraction.Templating;
88
using BotSharp.Core.Instructs;
9+
using BotSharp.Core.Knowledges.Services;
910
using BotSharp.Core.Messaging;
1011
using BotSharp.Core.Routing.Planning;
1112
using BotSharp.Core.Templating;
@@ -54,6 +55,8 @@ public void RegisterDI(IServiceCollection services, IConfiguration config)
5455
services.AddScoped<IExecutor, InstructExecutor>();
5556
services.AddScoped<IInstructService, InstructService>();
5657
services.AddScoped<ITokenStatistics, TokenStatistics>();
58+
59+
services.AddScoped<IKnowledgeService, KnowledgeService>();
5760
}
5861

5962
public bool AttachMenu(List<PluginMenuDef> menu)

src/Plugins/BotSharp.Plugin.KnowledgeBase/Helpers/KnowledgeSettingHelper.cs renamed to src/Infrastructure/BotSharp.Core/Knowledges/Helpers/KnowledgeSettingHelper.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
namespace BotSharp.Plugin.KnowledgeBase.Helpers;
1+
using BotSharp.Abstraction.Knowledges.Settings;
2+
using BotSharp.Abstraction.MLTasks;
3+
4+
namespace BotSharp.Core.Knowledges.Helpers;
25

36
public static class KnowledgeSettingHelper
47
{

src/Plugins/BotSharp.Plugin.KnowledgeBase/Helpers/TextChopper.cs renamed to src/Infrastructure/BotSharp.Core/Knowledges/Helpers/TextChopper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
using BotSharp.Abstraction.Knowledges.Models;
12
using System.Text.RegularExpressions;
23

3-
namespace BotSharp.Plugin.KnowledgeBase.Helpers;
4+
namespace BotSharp.Core.Knowledges.Helpers;
45

56
public static class TextChopper
67
{

src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Create.cs renamed to src/Infrastructure/BotSharp.Core/Knowledges/Services/KnowledgeService.Create.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
namespace BotSharp.Plugin.KnowledgeBase.Services;
1+
using BotSharp.Abstraction.Knowledges.Models;
2+
using BotSharp.Abstraction.VectorStorage.Models;
3+
using BotSharp.Core.Knowledges.Helpers;
4+
5+
namespace BotSharp.Core.Knowledges.Services;
26

37
public partial class KnowledgeService
48
{

src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Delete.cs renamed to src/Infrastructure/BotSharp.Core/Knowledges/Services/KnowledgeService.Delete.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace BotSharp.Plugin.KnowledgeBase.Services;
1+
namespace BotSharp.Core.Knowledges.Services;
22

33
public partial class KnowledgeService
44
{

src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Get.cs renamed to src/Infrastructure/BotSharp.Core/Knowledges/Services/KnowledgeService.Get.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using BotSharp.Abstraction.Graph.Models;
2+
using BotSharp.Abstraction.Knowledges.Models;
3+
using BotSharp.Abstraction.VectorStorage.Models;
24

3-
namespace BotSharp.Plugin.KnowledgeBase.Services;
5+
namespace BotSharp.Core.Knowledges.Services;
46

57
public partial class KnowledgeService
68
{

src/Plugins/BotSharp.Plugin.KnowledgeBase/Services/KnowledgeService.Update.cs renamed to src/Infrastructure/BotSharp.Core/Knowledges/Services/KnowledgeService.Update.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
namespace BotSharp.Plugin.KnowledgeBase.Services;
1+
using BotSharp.Abstraction.VectorStorage.Models;
2+
3+
namespace BotSharp.Core.Knowledges.Services;
24

35
public partial class KnowledgeService
46
{

0 commit comments

Comments
 (0)