35 references to RecordWithEmbeddingVectorProperty
Microsoft.Extensions.VectorData.Abstractions.Tests (35)
CollectionModelBuilderTests.cs (35)
44new VectorStoreKeyProperty(nameof(RecordWithEmbeddingVectorProperty.Id), typeof(int)), 45new VectorStoreDataProperty(nameof(RecordWithEmbeddingVectorProperty.Name), typeof(string)), 46new VectorStoreVectorProperty(nameof(RecordWithEmbeddingVectorProperty.Embedding), typeof(string), dimensions: 3) 71new VectorStoreKeyProperty(nameof(RecordWithEmbeddingVectorProperty.Id), typeof(int)), 72new VectorStoreDataProperty(nameof(RecordWithEmbeddingVectorProperty.Name), typeof(string)), 73new VectorStoreVectorProperty(nameof(RecordWithEmbeddingVectorProperty.Embedding), typeof(string), dimensions: 3) 94new VectorStoreKeyProperty(nameof(RecordWithEmbeddingVectorProperty.Id), typeof(int)), 95new VectorStoreDataProperty(nameof(RecordWithEmbeddingVectorProperty.Name), typeof(string)), 96new VectorStoreVectorProperty(nameof(RecordWithEmbeddingVectorProperty.Embedding), typeof(string), dimensions: 3) 120new VectorStoreKeyProperty(nameof(RecordWithEmbeddingVectorProperty.Id), typeof(int)), 121new VectorStoreDataProperty(nameof(RecordWithEmbeddingVectorProperty.Name), typeof(string)), 122new VectorStoreVectorProperty(nameof(RecordWithEmbeddingVectorProperty.Embedding), typeof(string), dimensions: 3) 147new VectorStoreKeyProperty(nameof(RecordWithEmbeddingVectorProperty.Id), typeof(int)), 148new VectorStoreDataProperty(nameof(RecordWithEmbeddingVectorProperty.Name), typeof(string)), 149new VectorStoreVectorProperty(nameof(RecordWithEmbeddingVectorProperty.Embedding), typeof(ReadOnlyMemory<float>), dimensions: 3) 153: new CustomModelBuilder().Build(typeof(RecordWithEmbeddingVectorProperty), typeof(int), definition: null, embeddingGenerator); 166typeof(RecordWithEmbeddingVectorProperty), 172new VectorStoreKeyProperty(nameof(RecordWithEmbeddingVectorProperty.Id), typeof(int)), 173new VectorStoreDataProperty(nameof(RecordWithEmbeddingVectorProperty.Name), typeof(string)), 174new VectorStoreVectorProperty(nameof(RecordWithEmbeddingVectorProperty.Embedding), typeof(ReadOnlyMemory<float>), dimensions: 3) 199new VectorStoreKeyProperty(nameof(RecordWithEmbeddingVectorProperty.Id), typeof(int)), 200new VectorStoreDataProperty(nameof(RecordWithEmbeddingVectorProperty.Name), typeof(string)), 201new VectorStoreVectorProperty<Customer>(nameof(RecordWithEmbeddingVectorProperty.Embedding), dimensions: 3) 258new VectorStoreKeyProperty(nameof(RecordWithEmbeddingVectorProperty.Id), typeof(int)), 259new VectorStoreDataProperty(nameof(RecordWithEmbeddingVectorProperty.Name), typeof(string)), 260new VectorStoreVectorProperty(nameof(RecordWithEmbeddingVectorProperty.Embedding), typeof(string), dimensions: 3) 282new VectorStoreKeyProperty(nameof(RecordWithEmbeddingVectorProperty.Id), typeof(int)), 283new VectorStoreDataProperty(nameof(RecordWithEmbeddingVectorProperty.Name), typeof(string)), 284new VectorStoreVectorProperty(nameof(RecordWithEmbeddingVectorProperty.Embedding), typeof(string), dimensions: 3) 304new VectorStoreKeyProperty(nameof(RecordWithEmbeddingVectorProperty.Id), typeof(int)), 305new VectorStoreDataProperty(nameof(RecordWithEmbeddingVectorProperty.Name), typeof(string)), 306new VectorStoreVectorProperty(nameof(RecordWithEmbeddingVectorProperty.Embedding), typeof(ReadOnlyMemory<float>), dimensions: 3) 313Assert.Equal($"Property '{nameof(RecordWithEmbeddingVectorProperty.Id)}' has no type specified in its definition, and does not have a corresponding .NET property. Specify the type on the definition.", exception.Message); 319Assert.Equal($"Property '{nameof(RecordWithEmbeddingVectorProperty.Name)}' has no type specified in its definition, and does not have a corresponding .NET property. Specify the type on the definition.", exception.Message); 325Assert.Equal($"Property '{nameof(RecordWithEmbeddingVectorProperty.Embedding)}' has no type specified in its definition, and does not have a corresponding .NET property. Specify the type on the definition.", exception.Message);