This commit is contained in:
2026-09-19 17:03:16 +03:30
parent f9b5f1f6aa
commit 490058d1a8
4 changed files with 75 additions and 2 deletions
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace xAiModels.Interfaces.Entities
{
public interface IXAiDocumentEntityHub
{
}
}
+1 -1
View File
@@ -65,7 +65,7 @@ namespace xAiModels.Models.Dtos
/// <summary> /// <summary>
/// Meta Data of MEssage in Json ... /// Meta Data of MEssage in Json ...
/// </summary> /// </summary>
public string MeatDatas public string MetaDatas
{ {
// //
get => _metadata; get => _metadata;
+61
View File
@@ -0,0 +1,61 @@
using System;
using System.ComponentModel.DataAnnotations;
using xModels.Base;
namespace xAiModels.Models.Entities
{
/// <summary>
/// Represents an embedd document in the AI system.
/// </summary>
public class XAiDocument : XBaseGuidIDEntity
{
/// <summary>
/// User Identifier ...
/// </summary>
/// <value></value>
[Required]
[StringLength(255)]
public string OwnerId { get; set; }
/// <summary>
/// Title of Document ...
/// </summary>
[StringLength(255)]
public string Title { get; set; }
/// <summary>
/// Content of Document ...
/// </summary>
public string Content { get; set; }
/// <summary>
/// Hash of the Document Content ...
/// </summary>
public string ContentHash { get; set; } = string.Empty;
/// <summary>
/// Embedding Model Identifier ...
/// </summary>
public string EmbeddingModel { get; set; } = string.Empty;
/// <summary>
/// Dimensions of the Embedding ...
/// </summary>
public int Dimensions { get; set; }
/// <summary>
/// Vector representation of the Document ...
/// </summary>
public byte[] Vector { get; set; } = [];
/// <summary>
/// Created Time ...
/// </summary>
public DateTime CreatedOn { get; set; }
/// <summary>
/// Updated Time ...
/// </summary>
public DateTime UpdatedAt { get; set; }
}
}
+1 -1
View File
@@ -61,7 +61,7 @@ namespace xAiModels.Models.Entities
/// <summary> /// <summary>
/// Meta Data of MEssage in Json ... /// Meta Data of MEssage in Json ...
/// </summary> /// </summary>
public string MeatDatas public string MetaDatas
{ {
// //
get => _metadata; get => _metadata;