2024-09-10 19:02:25 +00:00
|
|
|
namespace BotSharp.Abstraction.Knowledges.Models;
|
|
|
|
|
|
|
|
|
|
public class KnowledgeDocMetaData
|
|
|
|
|
{
|
|
|
|
|
[JsonPropertyName("collection")]
|
|
|
|
|
public string Collection { get; set; }
|
|
|
|
|
|
2024-09-10 19:33:42 +00:00
|
|
|
[JsonPropertyName("file_id")]
|
2024-09-17 17:50:39 +00:00
|
|
|
public Guid FileId { get; set; }
|
2024-09-10 19:33:42 +00:00
|
|
|
|
2024-09-10 19:02:25 +00:00
|
|
|
[JsonPropertyName("file_name")]
|
|
|
|
|
public string FileName { get; set; }
|
|
|
|
|
|
2024-09-13 22:23:05 +00:00
|
|
|
[JsonPropertyName("file_source")]
|
|
|
|
|
public string FileSource { get; set; }
|
|
|
|
|
|
2024-09-10 19:02:25 +00:00
|
|
|
[JsonPropertyName("content_type")]
|
|
|
|
|
public string ContentType { get; set; }
|
|
|
|
|
|
2024-09-13 22:23:05 +00:00
|
|
|
[JsonPropertyName("vector_store_provider")]
|
|
|
|
|
public string VectorStoreProvider { get; set; }
|
|
|
|
|
|
2024-09-10 19:02:25 +00:00
|
|
|
[JsonPropertyName("vector_data_ids")]
|
|
|
|
|
public IEnumerable<string> VectorDataIds { get; set; } = new List<string>();
|
|
|
|
|
|
2024-09-17 20:22:36 +00:00
|
|
|
[JsonPropertyName("web_url")]
|
|
|
|
|
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
|
|
|
|
|
public string? WebUrl { get; set; }
|
2024-09-13 22:23:05 +00:00
|
|
|
|
2024-09-10 19:02:25 +00:00
|
|
|
[JsonPropertyName("create_date")]
|
|
|
|
|
public DateTime CreateDate { get; set; } = DateTime.UtcNow;
|
|
|
|
|
|
|
|
|
|
[JsonPropertyName("create_user_id")]
|
|
|
|
|
public string CreateUserId { get; set; }
|
|
|
|
|
}
|