11 instantiations of Record
Microsoft.Extensions.VectorData.ConformanceTests (11)
ModelTests\BasicModelTests.cs (11)
211Record inserted = new() 232Record updated = new() 252new() 259new() 286new() 293new() 318new() 325new() 471new() 478new() 485new()
23 references to Record
Microsoft.Extensions.VectorData.ConformanceTests (23)
ModelTests\BasicModelTests.cs (23)
19var expectedRecord = fixture.TestData[0]; 21var received = await Collection.GetAsync(expectedRecord.Key, new() { IncludeVectors = includeVectors }); 35foreach (var record in expectedRecords) 83foreach (var record in expectedRecords) 102var expectedRecord = fixture.TestData[0]; 110var receivedRecord = Assert.Single(results); 211Record inserted = new() 222var received = await Collection.GetAsync(expectedKey, new() { IncludeVectors = true }); 231var existingRecord = fixture.TestData[1]; 232Record updated = new() 243var received = await Collection.GetAsync(existingRecord.Key, new() { IncludeVectors = true }); 250Record[] newRecords = 284Record[] existingRecords = 316Record[] records = 421var expectedRecord = fixture.TestData[0]; 463protected VectorStoreCollection<TKey, Record> Collection => fixture.Collection; 465public abstract class Fixture : VectorStoreCollectionFixture<TKey, Record> 469protected override List<Record> BuildTestData() => 499new VectorStoreKeyProperty(nameof(Record.Key), typeof(TKey)), 500new VectorStoreVectorProperty(nameof(Record.Vector), typeof(ReadOnlyMemory<float>), 3) 506new VectorStoreDataProperty(nameof(Record.Number), typeof(int)) { IsIndexed = true }, 507new VectorStoreDataProperty(nameof(Record.Text), typeof(string)) { IsIndexed = true }, 523public void AssertEqual(Record? other, bool includeVectors, bool compareVectors)