-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed as not planned
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codeNextSemestermsft.ext.vectordataRelated to Microsoft.Extensions.VectorDataRelated to Microsoft.Extensions.VectorData
Description
The following code causes an exception:
→ new VectorStoreRecordVectorProperty("DescriptionEmbedding", typeof(float)) { Dimensions = 4, DistanceFunction = DistanceFunction.CosineDistance, IndexKind = IndexKind.Hnsw },
The embedding is an array, but alternative types also fail:
typeof(float[]) → exception
typeof(List) → exception
typeof(ReadOnlyMemory) → works
The type constraint seems too strict. It should support float[], List, IEnumerable, etc.
Metadata
Metadata
Assignees
Labels
.NETIssue or Pull requests regarding .NET codeIssue or Pull requests regarding .NET codeNextSemestermsft.ext.vectordataRelated to Microsoft.Extensions.VectorDataRelated to Microsoft.Extensions.VectorData
Type
Projects
Status
Backlog