last ...
This commit is contained in:
@@ -1,61 +0,0 @@
|
||||
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,13 +1,27 @@
|
||||
using System;
|
||||
using xModels.Base;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace xAiModels.Models.Entities
|
||||
{
|
||||
public class XAiVector : XBaseGuidIDEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// Thge Content Which Embedded ...
|
||||
/// </summary>
|
||||
public string Text { get; set; }
|
||||
public ReadOnlyMemory<float> Embedding { get; set; }
|
||||
public virtual Dictionary<string, string> Metadata { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// Doc and Chunk Identifier ...
|
||||
/// </summary>
|
||||
public string Identifier { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// a Json String which Represents IReadOnlyList of float ...
|
||||
/// </summary>
|
||||
public string Embedding { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// a Json String Which Represents MetaData ...
|
||||
/// </summary>
|
||||
public string Metadata { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user