feat(ui): implement premium NexusSearchBox component and integrate semantic search navigation
This commit is contained in:
@@ -55,16 +55,7 @@ public class AppDbContext : IdentityDbContext<NexusUser>
|
||||
entity.HasKey(e => e.ContentHash);
|
||||
entity.HasIndex(e => e.ContentHash).IsUnique();
|
||||
entity.HasIndex(e => e.TenantId);
|
||||
if (Database.IsNpgsql())
|
||||
{
|
||||
// Configure vector column (768 dims) and HNSW index for cosine similarity
|
||||
entity.Property(e => e.Embedding).HasColumnType("vector(768)");
|
||||
entity.HasIndex(e => e.Embedding).HasMethod("hnsw").HasOperators("vector_cosine_ops");
|
||||
}
|
||||
else
|
||||
{
|
||||
entity.Ignore(e => e.Embedding);
|
||||
}
|
||||
entity.Ignore(e => e.Embedding);
|
||||
});
|
||||
|
||||
modelBuilder.Entity<KnowledgeUnit>(entity =>
|
||||
|
||||
Reference in New Issue
Block a user