change route

This commit is contained in:
Jicheng Lu 2024-08-22 18:13:25 -05:00
parent fff9438294
commit 6d0ace09fd
2 changed files with 4 additions and 5 deletions

View file

@ -34,8 +34,8 @@ public class KnowledgeBasePlugin : IBotSharpPlugin
{
SubMenu = new List<PluginMenuDef>
{
new PluginMenuDef("Q & A", link: "page/knowledge-base/vector"),
new PluginMenuDef("Relations", link: "page/knowledge-base/graph")
new PluginMenuDef("Q & A", link: "page/knowledge-base/qna"),
new PluginMenuDef("Relations", link: "page/knowledge-base/relations")
}
});
return true;

View file

@ -1,6 +1,5 @@
using BotSharp.Abstraction.Graph.Models;
using BotSharp.Abstraction.VectorStorage.Models;
using System.Collections;
namespace BotSharp.Plugin.KnowledgeBase.Services;
@ -10,8 +9,8 @@ public partial class KnowledgeService
{
try
{
var db = GetVectorDb();
return await db.GetCollections();
var collections = _settings.Collections.Select(x => x.Name).ToList();
return collections;
}
catch (Exception ex)
{