20 references to GetAsync
Microsoft.Extensions.VectorData.Abstractions (1)
RecordRetrievalOptions.cs (1)
11
/// or <see cref="VectorStoreCollection{TKey, TRecord}.
GetAsync
(IEnumerable{TKey}, RecordRetrievalOptions?, CancellationToken)"/>.
Microsoft.Extensions.VectorData.ConformanceTests (19)
EmbeddingGenerationTests.cs (1)
333
collection.
GetAsync
(
ModelTests\BasicModelTests.cs (9)
33
var received = await Collection.
GetAsync
(ids, new() { IncludeVectors = includeVectors }).ToArrayAsync();
60
ArgumentNullException ex = await Assert.ThrowsAsync<ArgumentNullException>(() => Collection.
GetAsync
(keys: null!).ToArrayAsync().AsTask());
79
var received = await Collection.
GetAsync
(ids).ToListAsync();
95
Assert.Empty(await Collection.
GetAsync
([]).ToArrayAsync());
269
Assert.Empty(await Collection.
GetAsync
(keys).ToArrayAsync());
273
var received = await Collection.
GetAsync
(keys, new() { IncludeVectors = true }).ToArrayAsync();
305
var received = await Collection.
GetAsync
(keys, new() { IncludeVectors = true }).ToArrayAsync();
337
var received = await Collection.
GetAsync
(keys, new() { IncludeVectors = true }).ToArrayAsync();
383
Assert.Empty(await Collection.
GetAsync
(keysToRemove).ToArrayAsync());
ModelTests\DynamicModelTests.cs (5)
37
var received = await fixture.Collection.
GetAsync
(ids, new() { IncludeVectors = includeVectors }).ToArrayAsync();
65
ArgumentNullException ex = await Assert.ThrowsAsync<ArgumentNullException>(() => fixture.Collection.
GetAsync
(keys: null!).ToArrayAsync().AsTask());
80
Assert.Empty(await fixture.Collection.
GetAsync
([]).ToArrayAsync());
270
Assert.Empty(await Collection.
GetAsync
(keys).ToArrayAsync());
274
var received = await Collection.
GetAsync
(keys, new() { IncludeVectors = true }).ToArrayAsync();
ModelTests\NoVectorModelTests.cs (1)
89
var results = await Collection.
GetAsync
([TestData[0].Key, TestData[1].Key]).ToArrayAsync();
TypeTests\KeyTypeTests.cs (3)
86
var results = await collection.
GetAsync
([key1, key2]).ToListAsync();
134
var dynamicResults = await dynamicCollection.
GetAsync
([key1, key2]).ToListAsync();
205
var results = await collectionWithAutoGeneration.
GetAsync
([key1, recordWithDefaultValueKey1.Key, recordWithDefaultValueKey2.Key, recordWithDefaultValueKey3.Key]).ToListAsync();