// Copyright (c) Microsoft. All rights reserved. using Microsoft.Extensions.VectorData; namespace GettingStartedWithVectorStores; /// /// Sample model class that represents a glossary entry. /// /// /// Note that each property is decorated with an attribute that specifies how the property should be treated by the vector store. /// This allows us to create a collection in the vector store and upsert and retrieve instances of this class without any further configuration. /// internal sealed class Glossary { [VectorStoreKey] public string Key { get; set; } [VectorStoreData(IsIndexed = true)] public string Category { get; set; } [VectorStoreData] public string Term { get; set; } [VectorStoreData] public string Definition { get; set; } [VectorStoreVector(Dimensions: 1536)] public ReadOnlyMemory DefinitionEmbedding { get; set; } }