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