5 instantiations of VectorStoreVectorAttribute
Microsoft.Extensions.VectorData.ConformanceTests (5)
DependencyInjectionTests.cs (1)
323
[
VectorStoreVector
(dimensions: 3, StorageName = "embedding")]
EmbeddingGenerationTests.cs (2)
164
[
VectorStoreVector
(dimensions: 3)]
358
[
VectorStoreVector
(dimensions: 3)]
ModelTests\BasicModelTests.cs (1)
520
[
VectorStoreVector
(dimensions: 3, StorageName = "vector")]
ModelTests\NoDataModelTests.cs (1)
89
[
VectorStoreVector
(dimensions: 3, StorageName = "embedding")]
6 references to VectorStoreVectorAttribute
Microsoft.Extensions.VectorData.Abstractions (6)
ProviderServices\CollectionModelBuilder.cs (3)
189
VectorStoreVectorAttribute
? vectorAttribute = null;
196
vectorAttribute = clrProperty.GetCustomAttribute<
VectorStoreVectorAttribute
>();
202
$"Property '{clrProperty.DeclaringType?.Name}.{clrProperty.Name}' has multiple of {nameof(VectorStoreKeyAttribute)}, {nameof(VectorStoreDataAttribute)} or {nameof(
VectorStoreVectorAttribute
)}. Only one of these attributes can be specified on a property.");
RecordAttributes\VectorStoreVectorAttribute.cs (1)
19
/// Initializes a new instance of the <see cref="
VectorStoreVectorAttribute
"/> class.
VectorStore.cs (1)
35
/// <seealso cref="
VectorStoreVectorAttribute
"/>
VectorStoreCollectionOptions.cs (1)
33
/// See <see cref="VectorStoreKeyAttribute"/>, <see cref="VectorStoreDataAttribute"/>, and <see cref="
VectorStoreVectorAttribute
"/>.