Added vector search

This commit is contained in:
2026-03-18 20:17:45 +00:00
parent ac1a910bff
commit 8f6e7e2214
8 changed files with 65 additions and 4 deletions

View File

@@ -1,3 +1,6 @@
using Pgvector;
using System.ComponentModel.DataAnnotations.Schema;
namespace Seasoned.Backend.Models;
public class Recipe {
@@ -8,4 +11,7 @@ public class Recipe {
public List<string> Instructions { get; set; } = new();
public DateTime CreatedAt { get; set; }
public string? UserId { get; set; }
[Column(TypeName = "vector(768)")]
public Vector? Embedding { get; set; }
}