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

46 lines
1.1 KiB
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
{
2024-09-09 19:16:09 +00:00
/// <summary>
/// Must be unique
/// </summary>
2024-09-09 16:32:31 +00:00
[JsonPropertyName("name")]
public string Name { get; set; }
2024-09-09 19:16:09 +00:00
/// <summary>
/// Collection type, e.g., question-answer, document
/// </summary>
2024-09-09 16:32:31 +00:00
[JsonPropertyName("type")]
public string Type { get; set; }
2024-09-10 19:02:25 +00:00
[JsonPropertyName("vector_storage")]
public VectorStorageConfig VectorStorage { get; set; }
2024-09-09 16:32:31 +00:00
[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; }
2024-09-10 19:02:25 +00:00
}
public class VectorStorageConfig
{
[JsonPropertyName("provider")]
public string Provider { get; set; }
2024-09-09 16:32:31 +00:00
}