3 instantiations of MultiVectorRecord
Microsoft.Extensions.VectorData.ConformanceTests (3)
ModelTests\MultiVectorModelTests.cs (3)
31
MultiVectorRecord inserted =
new
()
86
new
()
93
new
()
13 references to MultiVectorRecord
Microsoft.Extensions.VectorData.ConformanceTests (13)
ModelTests\MultiVectorModelTests.cs (13)
20
var
expectedRecord = fixture.TestData[0];
22
var
received = await Collection.GetAsync(expectedRecord.Key, new() { IncludeVectors = includeVectors });
31
MultiVectorRecord
inserted = new()
42
var
received = await Collection.GetAsync(expectedKey, new() { IncludeVectors = true });
75
Assert.Equal($"The '{nameof(
MultiVectorRecord
)}' type has multiple vector properties, please specify your chosen property via options.", exception.Message);
78
protected VectorStoreCollection<TKey,
MultiVectorRecord
> Collection => fixture.Collection;
80
public abstract class Fixture : VectorStoreCollectionFixture<TKey,
MultiVectorRecord
>
84
protected override List<
MultiVectorRecord
> BuildTestData() =>
107
new VectorStoreKeyProperty(nameof(
MultiVectorRecord
.Key), typeof(TKey)),
108
new VectorStoreDataProperty(nameof(
MultiVectorRecord
.Number), typeof(int)),
110
new VectorStoreVectorProperty(nameof(
MultiVectorRecord
.Vector1), typeof(ReadOnlyMemory<float>), 3)
116
new VectorStoreVectorProperty(nameof(
MultiVectorRecord
.Vector2), typeof(ReadOnlyMemory<float>), 3)
135
public void AssertEqual(
MultiVectorRecord
? other, bool includeVectors, bool compareVectors)