7 writes to IncludeVectors
Microsoft.Extensions.VectorData.ConformanceTests (7)
EmbeddingGenerationTests.cs (1)
312
var exception = await Assert.ThrowsAsync<NotSupportedException>(() => collection.SearchAsync("[1, 0, 0]", top: 1, new() {
IncludeVectors
= true }).ToListAsync().AsTask());
ModelTests\BasicModelTests.cs (1)
427
new() {
IncludeVectors
= includeVectors })
ModelTests\DynamicModelTests.cs (1)
320
new() {
IncludeVectors
= includeVectors })
ModelTests\MultiVectorModelTests.cs (2)
59
.SearchAsync(new ReadOnlyMemory<float>([1, 2, 3]), top: 1, new() { VectorProperty = r => r.Vector1,
IncludeVectors
= true })
64
.SearchAsync(new ReadOnlyMemory<float>([10, 2, 6]), top: 1, new() { VectorProperty = r => r.Vector2,
IncludeVectors
= true })
TypeTests\EmbeddingTypeTests.cs (2)
77
var result2 = await collection.SearchAsync(value, top: 1, new() {
IncludeVectors
= true, Filter = r => r.Int == 42 }).SingleAsync();
124
var dynamicResult2 = await dynamicCollection.SearchAsync(value, top: 1, new() {
IncludeVectors
= true, Filter = r => (int)r["Int"]! == 43 }).SingleAsync();