BotSharp/src/Infrastructure/BotSharp.Abstraction/VectorStorage/Models/VectorCollectionConfigModel.cs

31 lines
762 B
C#
Raw Normal View History

2024-09-09 16:32:31 +00:00
namespace BotSharp.Abstraction.VectorStorage.Models;
public class VectorCollectionConfigsModel
{
[JsonPropertyName("collections")]
public List<VectorCollectionConfig> Collections { get; set; } = new();
}
public class VectorCollectionConfig
{
[JsonPropertyName("name")]
public string Name { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
[JsonPropertyName("text_embedding")]
public KnowledgeEmbeddingConfig TextEmbedding { get; set; }
}
public class KnowledgeEmbeddingConfig
{
[JsonPropertyName("provider")]
public string Provider { get; set; }
[JsonPropertyName("model")]
public string Model { get; set; }
[JsonPropertyName("dimension")]
public int Dimension { get; set; }
}