GeneratedEmbeddings<TEmbedding> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the result of an operation to generate embeddings.
generic <typename TEmbedding>
where TEmbedding : Embeddingpublic ref class GeneratedEmbeddings sealed : System::Collections::Generic::ICollection<TEmbedding>, System::Collections::Generic::IEnumerable<TEmbedding>, System::Collections::Generic::IList<TEmbedding>, System::Collections::Generic::IReadOnlyCollection<TEmbedding>, System::Collections::Generic::IReadOnlyList<TEmbedding>
public sealed class GeneratedEmbeddings<TEmbedding> : System.Collections.Generic.ICollection<TEmbedding>, System.Collections.Generic.IEnumerable<TEmbedding>, System.Collections.Generic.IList<TEmbedding>, System.Collections.Generic.IReadOnlyCollection<TEmbedding>, System.Collections.Generic.IReadOnlyList<TEmbedding> where TEmbedding : Embedding
type GeneratedEmbeddings<'Embedding (requires 'Embedding :> Embedding)> = class
interface IList<'Embedding (requires 'Embedding :> Embedding)>
interface ICollection<'Embedding (requires 'Embedding :> Embedding)>
interface seq<'Embedding (requires 'Embedding :> Embedding)>
interface IEnumerable
interface IReadOnlyList<'Embedding (requires 'Embedding :> Embedding)>
interface IReadOnlyCollection<'Embedding (requires 'Embedding :> Embedding)>
Public NotInheritable Class GeneratedEmbeddings(Of TEmbedding)
Implements ICollection(Of TEmbedding), IEnumerable(Of TEmbedding), IList(Of TEmbedding), IReadOnlyCollection(Of TEmbedding), IReadOnlyList(Of TEmbedding)
Type Parameters
- TEmbedding
Specifies the type of the generated embeddings.
- Inheritance
-
GeneratedEmbeddings<TEmbedding>
- Implements
-
ICollection<T> ICollection<TEmbedding> IEnumerable<T> IEnumerable<TEmbedding> IList<TEmbedding> IReadOnlyCollection<T> IReadOnlyCollection<TEmbedding> IReadOnlyList<TEmbedding> IEnumerable
Constructors
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. |
Properties
AdditionalProperties |
Gets or sets any additional properties associated with the embeddings. |
Count |
Gets the number of elements contained in the ICollection<T>. |
Item[Int32] |
Gets or sets the element at the specified index. |
Usage |
Gets or sets usage details for the embeddings' generation. |
Methods
Add(TEmbedding) |
Adds an item to the ICollection<T>. |
AddRange(IEnumerable<TEmbedding>) |
Adds the embeddings from the specified collection to the end of this list. |
Clear() |
Removes all items from the ICollection<T>. |
Contains(TEmbedding) |
Determines whether the ICollection<T> contains a specific value. |
CopyTo(TEmbedding[], Int32) |
Copies the elements of the ICollection<T> to an Array, starting at a particular Array index. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator() |
Returns an enumerator that iterates through the collection. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
IndexOf(TEmbedding) |
Determines the index of a specific item in the IList<T>. |
Insert(Int32, TEmbedding) |
Inserts an item to the IList<T> at the specified index. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(TEmbedding) |
Removes the first occurrence of a specific object from the ICollection<T>. |
RemoveAt(Int32) |
Removes the IList<T> item at the specified index. |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Explicit Interface Implementations
ICollection<TEmbedding>.IsReadOnly |
Gets a value indicating whether the ICollection<T> is read-only. |
IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through a collection. |