7 writes to IncludeVectors
Microsoft.Extensions.VectorData.ConformanceTests (7)
EmbeddingGenerationTests.cs (1)
312var exception = await Assert.ThrowsAsync<NotSupportedException>(() => collection.SearchAsync("[1, 0, 0]", top: 1, new() { IncludeVectors = true }).ToListAsync().AsTask());
ModelTests\BasicModelTests.cs (1)
427new() { IncludeVectors = includeVectors })
ModelTests\DynamicModelTests.cs (1)
320new() { 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)
77var result2 = await collection.SearchAsync(value, top: 1, new() { IncludeVectors = true, Filter = r => r.Int == 42 }).SingleAsync(); 124var dynamicResult2 = await dynamicCollection.SearchAsync(value, top: 1, new() { IncludeVectors = true, Filter = r => (int)r["Int"]! == 43 }).SingleAsync();