EmbeddingGenerator
This property specifies the default embedding generator to use for generating vector embeddings when working with the collection.
Declaration
// C#
public IEmbeddingGenerator? EmbeddingGenerator { get; set; }
Property Value
The default embedding generator to use for generating vector embeddings when working with the vector store.
Implements
Inherited from Microsoft.Extensions.VectorData.VectorStoreCollectionOptions
Remarks
When embedding is specified, the collection uses the
EmbeddingGenerator
to generate embeddings. The default property value is null. When the embedding generator is provided, the collection automatically generates the embedding during both upsert and search operations, eliminating the need for the application to generate and provide the embedding.