feat: implement semantic search, knowledge unit extraction, and visualization components

This commit is contained in:
2026-05-03 15:59:30 +02:00
parent 94ecc7a404
commit 1f187b5125
24 changed files with 844 additions and 21 deletions
@@ -0,0 +1,28 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace NexusReader.Domain.Entities;
public class KnowledgeUnitLink
{
[Key]
public int Id { get; set; }
[Required]
[MaxLength(128)]
public string SourceUnitId { get; set; } = string.Empty;
[Required]
[MaxLength(128)]
public string TargetUnitId { get; set; } = string.Empty;
[Required]
[MaxLength(50)]
public string RelationType { get; set; } = "References"; // e.g., "Next", "Defines", "Contains"
[ForeignKey(nameof(SourceUnitId))]
public KnowledgeUnit SourceUnit { get; set; } = null!;
[ForeignKey(nameof(TargetUnitId))]
public KnowledgeUnit TargetUnit { get; set; } = null!;
}