31 lines
762 B
C#
31 lines
762 B
C#
|
|
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; }
|
||
|
|
}
|