mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-13 07:09:55 +08:00
12 lines
364 B
C#
12 lines
364 B
C#
namespace Foxel.Models.Vector;
|
|
|
|
using Microsoft.Extensions.VectorData;
|
|
|
|
public class PictureVector
|
|
{
|
|
[VectorStoreKey] public ulong Id { get; set; }
|
|
[VectorStoreData] public string? Name { get; set; }
|
|
|
|
[VectorStoreVector(Dimensions: 1024, DistanceFunction = DistanceFunction.CosineSimilarity)]
|
|
public ReadOnlyMemory<float>? Embedding { get; set; }
|
|
} |