Dela via


GeneratedEmbeddings<TEmbedding> Constructors

Definition

Overloads

GeneratedEmbeddings<TEmbedding>()

Initializes a new instance of the GeneratedEmbeddings<TEmbedding> class.

GeneratedEmbeddings<TEmbedding>(IEnumerable<TEmbedding>)

Initializes a new instance of the GeneratedEmbeddings<TEmbedding> class that contains all of the embeddings from the specified collection.

GeneratedEmbeddings<TEmbedding>(Int32)

Initializes a new instance of the GeneratedEmbeddings<TEmbedding> class with the specified capacity.

GeneratedEmbeddings<TEmbedding>()

Initializes a new instance of the GeneratedEmbeddings<TEmbedding> class.

public:
 GeneratedEmbeddings();
public GeneratedEmbeddings ();
Public Sub New ()

Applies to

GeneratedEmbeddings<TEmbedding>(IEnumerable<TEmbedding>)

Initializes a new instance of the GeneratedEmbeddings<TEmbedding> class that contains all of the embeddings from the specified collection.

public:
 GeneratedEmbeddings(System::Collections::Generic::IEnumerable<TEmbedding> ^ embeddings);
public GeneratedEmbeddings (System.Collections.Generic.IEnumerable<TEmbedding> embeddings);
new Microsoft.Extensions.AI.GeneratedEmbeddings<'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> : seq<'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> -> Microsoft.Extensions.AI.GeneratedEmbeddings<'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)>
Public Sub New (embeddings As IEnumerable(Of TEmbedding))

Parameters

embeddings
IEnumerable<TEmbedding>

The collection whose embeddings are copied to the new list.

Applies to

GeneratedEmbeddings<TEmbedding>(Int32)

Initializes a new instance of the GeneratedEmbeddings<TEmbedding> class with the specified capacity.

public:
 GeneratedEmbeddings(int capacity);
public GeneratedEmbeddings (int capacity);
new Microsoft.Extensions.AI.GeneratedEmbeddings<'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)> : int -> Microsoft.Extensions.AI.GeneratedEmbeddings<'Embedding (requires 'Embedding :> Microsoft.Extensions.AI.Embedding)>
Public Sub New (capacity As Integer)

Parameters

capacity
Int32

The number of embeddings that the new list can initially store.

Applies to