diff --git a/Interfaces/Entities/IXAiDocumentEntityHub.cs b/Interfaces/Entities/IXAiDocumentEntityHub.cs new file mode 100644 index 0000000..536a001 --- /dev/null +++ b/Interfaces/Entities/IXAiDocumentEntityHub.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace xAiModels.Interfaces.Entities +{ + public interface IXAiDocumentEntityHub + { + + } +} \ No newline at end of file diff --git a/Models/Dtos/XAiMessageDto.cs b/Models/Dtos/XAiMessageDto.cs index 314eaf5..e9ab78d 100644 --- a/Models/Dtos/XAiMessageDto.cs +++ b/Models/Dtos/XAiMessageDto.cs @@ -65,7 +65,7 @@ namespace xAiModels.Models.Dtos /// /// Meta Data of MEssage in Json ... /// - public string MeatDatas + public string MetaDatas { // get => _metadata; diff --git a/Models/Entities/XAiDocument.cs b/Models/Entities/XAiDocument.cs new file mode 100644 index 0000000..d68ac67 --- /dev/null +++ b/Models/Entities/XAiDocument.cs @@ -0,0 +1,61 @@ +using System; +using System.ComponentModel.DataAnnotations; +using xModels.Base; + +namespace xAiModels.Models.Entities +{ + /// + /// Represents an embedd document in the AI system. + /// + public class XAiDocument : XBaseGuidIDEntity + { + /// + /// User Identifier ... + /// + /// + [Required] + [StringLength(255)] + public string OwnerId { get; set; } + + /// + /// Title of Document ... + /// + [StringLength(255)] + public string Title { get; set; } + + /// + /// Content of Document ... + /// + public string Content { get; set; } + + /// + /// Hash of the Document Content ... + /// + public string ContentHash { get; set; } = string.Empty; + + /// + /// Embedding Model Identifier ... + /// + public string EmbeddingModel { get; set; } = string.Empty; + + /// + /// Dimensions of the Embedding ... + /// + public int Dimensions { get; set; } + + /// + /// Vector representation of the Document ... + /// + public byte[] Vector { get; set; } = []; + + /// + /// Created Time ... + /// + public DateTime CreatedOn { get; set; } + + /// + /// Updated Time ... + /// + public DateTime UpdatedAt { get; set; } + } +} \ No newline at end of file diff --git a/Models/Entities/XAiMessage.cs b/Models/Entities/XAiMessage.cs index 11616b0..a8bac22 100644 --- a/Models/Entities/XAiMessage.cs +++ b/Models/Entities/XAiMessage.cs @@ -61,7 +61,7 @@ namespace xAiModels.Models.Entities /// /// Meta Data of MEssage in Json ... /// - public string MeatDatas + public string MetaDatas { // get => _metadata;