GeneratedEmbeddings 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
where TEmbedding : Embeddingpublic ref class GeneratedEmbeddings sealed : System::Collections::Generic::ICollection, System::Collections::Generic::IEnumerable, System::Collections::Generic::IList, System::Collections::Generic::IReadOnlyCollection, System::Collections::Generic::IReadOnlyList
public sealed class GeneratedEmbeddings : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.Generic.IList, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList 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
- Implements
Constructors
| Name | Description |
|---|---|
|
GeneratedEmbeddings |
Initializes a new instance of the GeneratedEmbeddings |
|
GeneratedEmbeddings |
Initializes a new instance of the GeneratedEmbeddings |
|
GeneratedEmbeddings |
Initializes a new instance of the GeneratedEmbeddings |
Properties
| Name | Description |
|---|---|
| AdditionalProperties |
Gets or sets any additional properties associated with the embeddings. |
| Count |
Gets the number of elements contained in the ICollection |
| Item[Int32] |
Gets or sets the element at the specified index. |
| Usage |
Gets or sets usage details for the embeddings' generation. |
Methods
| Name | Description |
|---|---|
| Add(TEmbedding) |
Adds an item to the ICollection |
|
AddRange(IEnumerable |
Adds the embeddings from the specified collection to the end of this list. |
| Clear() |
Removes all items from the ICollection |
| Contains(TEmbedding) |
Determines whether the ICollection |
| CopyTo(TEmbedding[], Int32) |
Copies the elements of the ICollection |
| GetEnumerator() |
Returns an enumerator that iterates through the collection. |
| IndexOf(TEmbedding) |
Determines the index of a specific item in the IList |
| Insert(Int32, TEmbedding) |
Inserts an item to the IList |
| Remove(TEmbedding) |
Removes the first occurrence of a specific object from the ICollection |
| RemoveAt(Int32) |
Removes the IList |
Explicit Interface Implementations
| Name | Description |
|---|---|
|
ICollection |
Gets a value indicating whether the ICollection |
| IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through a collection. |
Extension Methods
| Name | Description |
|---|---|
|
ToAsyncEnumerable |
Converts an IEnumerable |
|
ToFrozenDictionary |
Creates a FrozenDictionary |
|
ToFrozenDictionary |
Creates a FrozenDictionary |
|
ToFrozenSet |
Creates a FrozenSet |
|
ToImmutableArray |
Creates an immutable array from the specified collection. |
|
ToImmutableDictionary |
Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key and value comparers. |
|
ToImmutableDictionary |
Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key comparer. |
|
ToImmutableDictionary |
Enumerates and transforms a sequence, and produces an immutable dictionary of its contents. |
|
ToImmutableDictionary |
Constructs an immutable dictionary based on some transformation of a sequence. |
|
ToImmutableDictionary |
Constructs an immutable dictionary from an existing collection of elements, applying a transformation function to the source keys. |
|
ToImmutableHashSet |
Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type. |
|
ToImmutableHashSet |
Enumerates a sequence and produces an immutable hash set of its contents. |
|
ToImmutableList |
Enumerates a sequence and produces an immutable list of its contents. |
|
ToImmutableSortedDictionary |
Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers. |
|
ToImmutableSortedDictionary |
Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer. |
|
ToImmutableSortedDictionary |
Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents. |
|
ToImmutableSortedSet |
Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer. |
|
ToImmutableSortedSet |
Enumerates a sequence and produces an immutable sorted set of its contents. |