22 instantiations of RecordRetrievalOptions
Microsoft.Extensions.VectorData.ConformanceTests (22)
EmbeddingGenerationTests.cs (2)
322
var exception = await Assert.ThrowsAsync<NotSupportedException>(() => collection.GetAsync(stringVectorFixture.TestData[0].Key,
new
() { IncludeVectors = true }));
335
new
() { IncludeVectors = true })
ModelTests\BasicModelTests.cs (7)
21
var received = await Collection.GetAsync(expectedRecord.Key,
new
() { IncludeVectors = includeVectors });
33
var received = await Collection.GetAsync(ids,
new
() { IncludeVectors = includeVectors }).ToArrayAsync();
222
var received = await Collection.GetAsync(expectedKey,
new
() { IncludeVectors = true });
243
var received = await Collection.GetAsync(existingRecord.Key,
new
() { IncludeVectors = true });
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();
ModelTests\DynamicModelTests.cs (5)
25
new
() { IncludeVectors = includeVectors });
37
var received = await fixture.Collection.GetAsync(ids,
new
() { IncludeVectors = includeVectors }).ToArrayAsync();
225
var received = await Collection.GetAsync(expectedKey,
new
() { IncludeVectors = true });
244
var received = await Collection.GetAsync((TKey)existingRecord[KeyPropertyName]!,
new
() { IncludeVectors = true });
274
var received = await Collection.GetAsync(keys,
new
() { IncludeVectors = true }).ToArrayAsync();
ModelTests\MultiVectorModelTests.cs (2)
22
var received = await Collection.GetAsync(expectedRecord.Key,
new
() { IncludeVectors = includeVectors });
42
var received = await Collection.GetAsync(expectedKey,
new
() { IncludeVectors = true });
ModelTests\NoDataModelTests.cs (2)
22
var received = await Collection.GetAsync(expectedRecord.Key,
new
() { IncludeVectors = includeVectors });
40
var received = await Collection.GetAsync(expectedKey,
new
() { IncludeVectors = true });
ModelTests\NoVectorModelTests.cs (2)
23
var received = await Collection.GetAsync(expectedRecord.Key,
new
() { IncludeVectors = includeVectors });
41
var received = await Collection.GetAsync(expectedKey,
new
() { IncludeVectors = true });
TypeTests\EmbeddingTypeTests.cs (2)
68
var result1 = await collection.GetAsync(key,
new
() { IncludeVectors = true });
115
var dynamicResult1 = await dynamicCollection.GetAsync(key,
new
() { IncludeVectors = true });
5 references to RecordRetrievalOptions
Microsoft.Extensions.VectorData.Abstractions (4)
RecordRetrievalOptions.cs (2)
10
/// Defines options for calling <see cref="VectorStoreCollection{TKey, TRecord}.GetAsync(TKey,
RecordRetrievalOptions
?, CancellationToken)"/>
11
/// or <see cref="VectorStoreCollection{TKey, TRecord}.GetAsync(IEnumerable{TKey},
RecordRetrievalOptions
?, CancellationToken)"/>.
VectorStoreCollection.cs (2)
63
public abstract Task<TRecord?> GetAsync(TKey key,
RecordRetrievalOptions
? options = default, CancellationToken cancellationToken = default);
85
public virtual async IAsyncEnumerable<TRecord> GetAsync(IEnumerable<TKey> keys,
RecordRetrievalOptions
? options = default, [EnumeratorCancellation] CancellationToken cancellationToken = default)
Microsoft.Extensions.VectorData.ConformanceTests (1)
DependencyInjectionTests.cs (1)
293
public override Task<TRecord?> GetAsync(TKey key,
RecordRetrievalOptions
? options = null, CancellationToken cancellationToken = default)