BotSharp/src/Infrastructure/BotSharp.Abstraction/Knowledges/Settings/KnowledgeBaseSettings.cs

31 lines
868 B
C#
Raw Normal View History

2024-08-14 21:56:32 +00:00
using BotSharp.Abstraction.Knowledges.Enums;
namespace BotSharp.Abstraction.Knowledges.Settings;
2023-06-26 23:08:24 +00:00
public class KnowledgeBaseSettings
{
2024-08-15 23:19:10 +00:00
public string VectorDb { get; set; }
public string GraphDb { get; set; }
2024-08-22 20:23:22 +00:00
public DefaultKnowledgeBaseSetting Default { get; set; }
public List<VectorCollectionSetting> Collections { get; set; } = new();
}
public class DefaultKnowledgeBaseSetting
{
public string CollectionName { get; set; } = KnowledgeCollectionName.BotSharp;
public KnowledgeTextEmbeddingSetting TextEmbedding { get; set; }
}
public class VectorCollectionSetting
{
public string Name { get; set; }
public KnowledgeTextEmbeddingSetting TextEmbedding { get; set; }
2023-06-26 23:08:24 +00:00
}
2024-08-22 20:23:22 +00:00
public class KnowledgeTextEmbeddingSetting
{
public string Provider { get; set; }
public string Model { get; set; }
2024-08-22 20:23:22 +00:00
public int Dimension { get; set; }
}