change route
This commit is contained in:
parent
fff9438294
commit
6d0ace09fd
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue