2024-08-14 21:56:32 +00:00
|
|
|
using BotSharp.Abstraction.Knowledges.Enums;
|
|
|
|
|
|
2023-08-31 15:48:59 +00:00
|
|
|
namespace BotSharp.Abstraction.Knowledges.Settings;
|
2023-06-26 23:08:24 +00:00
|
|
|
|
|
|
|
|
public class KnowledgeBaseSettings
|
|
|
|
|
{
|
2024-08-31 00:31:18 +00:00
|
|
|
public SettingBase VectorDb { get; set; }
|
|
|
|
|
public SettingBase GraphDb { get; set; }
|
2024-08-22 20:23:22 +00:00
|
|
|
|
|
|
|
|
public DefaultKnowledgeBaseSetting Default { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DefaultKnowledgeBaseSetting
|
|
|
|
|
{
|
|
|
|
|
public string CollectionName { get; set; } = KnowledgeCollectionName.BotSharp;
|
|
|
|
|
public KnowledgeTextEmbeddingSetting TextEmbedding { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-31 00:31:18 +00:00
|
|
|
public class KnowledgeTextEmbeddingSetting : SettingBase
|
2024-08-09 21:03:29 +00:00
|
|
|
{
|
|
|
|
|
public string Model { get; set; }
|
2024-08-22 20:23:22 +00:00
|
|
|
public int Dimension { get; set; }
|
2024-08-09 21:03:29 +00:00
|
|
|
}
|