feat: implement AI-driven knowledge extraction service with semantic caching and persistent storage

This commit is contained in:
2026-04-26 08:51:46 +02:00
parent 59074a05a0
commit d8e6931289
13 changed files with 423 additions and 3 deletions
@@ -0,0 +1,23 @@
using System.ComponentModel.DataAnnotations;
namespace NexusReader.Domain.Entities;
public class SemanticKnowledgeCache
{
[Key]
[MaxLength(64)]
public string ContentHash { get; set; } = string.Empty;
[Required]
public string JsonData { get; set; } = string.Empty;
[Required]
[MaxLength(50)]
public string ModelId { get; set; } = "gemini-1.5-flash";
[Required]
[MaxLength(10)]
public string PromptVersion { get; set; } = "1.0";
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}