語言

GeneratedEmbeddings<TEmbedding> 類別

定義

代表產生嵌入操作的結果。

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)

類型參數

TEmbedding

指定產生嵌入的類型。

繼承
GeneratedEmbeddings<TEmbedding>
實作

建構函式

名稱 Description
GeneratedEmbeddings<TEmbedding>()

初始化 GeneratedEmbeddings<TEmbedding> 類別的新執行個體。

GeneratedEmbeddings<TEmbedding>(IEnumerable<TEmbedding>)

初始化一個包含指定集合所有嵌入的類別新實例 GeneratedEmbeddings<TEmbedding> 。

GeneratedEmbeddings<TEmbedding>(Int32)

使用指定的容量,初始化 GeneratedEmbeddings<TEmbedding> 類別的新實例。

屬性

名稱 Description
AdditionalProperties

取得或設定與嵌入相關的額外屬性。

Count

得到包含於 的 ICollection<T>元素數量。

Item[Int32]

取得或設定位於指定索引處的專案。

Usage

取得或設定嵌入生成的使用細節。

方法

名稱 Description
Add(TEmbedding)

將一個項目加入 ICollection<T>。

AddRange(IEnumerable<TEmbedding>)

將指定集合的嵌入加入至此清單的末尾。

Clear()

移除所有項目。ICollection<T>

Contains(TEmbedding)

判斷是否 ICollection<T> 包含特定值。

CopyTo(TEmbedding[], Int32)

從特定ICollection<T>索引開始,將 的Array元素複製到 Array。

GetEnumerator()

傳回逐一查看集合的列舉值。

IndexOf(TEmbedding)

決定特定項目的 IList<T>索引。

Insert(Int32, TEmbedding)

在指定的索引處插入一個項目 IList<T> 。

Remove(TEmbedding)

從 ICollection<T>移除第一個出現的特定物件。

RemoveAt(Int32)

移除 IList<T> 指定索引的項目。

明確介面實作

名稱 Description
ICollection<TEmbedding>.IsReadOnly

取得值,指出 ICollection<T> 是否為唯讀。

IEnumerable.GetEnumerator()

傳回逐一查看集合的列舉值。

擴充方法

名稱 Description
ToAsyncEnumerable<TSource>(IEnumerable<TSource>)

將 IEnumerable<T> 轉換成 IAsyncEnumerable<T>。

ToFrozenDictionary<TSource,TKey,TElement>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TElement>, IEqualityComparer<TKey>)

根據指定的索引鍵選取器和項目選取器函式,從 FrozenDictionary<TKey,TValue> 建立 IEnumerable<T>。

ToFrozenDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

根據指定的鍵選擇函式從 FrozenDictionary<TKey,TValue> a 建立 。IEnumerable<T>

ToFrozenSet<T>(IEnumerable<T>, IEqualityComparer<T>)

建立 FrozenSet<T> 一個符合指定值的 。

ToImmutableArray<TSource>(IEnumerable<TSource>)

從指定的集合建立不可變的陣列。

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>, IEqualityComparer<TValue>)

列舉和轉換序列,並使用指定的索引鍵和值比較子產生其內容的不可變字典。

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IEqualityComparer<TKey>)

列舉和轉換序列,並使用指定的索引鍵比較子產生其內容的不可變字典。

ToImmutableDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

列舉和轉換序列,併產生其內容的不可變字典。

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>, IEqualityComparer<TKey>)

根據序列的一些轉換,建構不可變的字典。

ToImmutableDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>)

從現有的專案集合建構不可變的字典,將轉換函式套用至來源索引鍵。

ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)

列舉序列、產生其內容的不可變哈希集,並使用集合類型的指定相等比較子。

ToImmutableHashSet<TSource>(IEnumerable<TSource>)

列舉序列,併產生其內容的不可變哈希集。

ToImmutableList<TSource>(IEnumerable<TSource>)

列舉序列,併產生其內容的不可變清單。

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>, IEqualityComparer<TValue>)

列舉和轉換序列,並使用指定的索引鍵和值比較子產生其內容的不可變排序字典。

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>, IComparer<TKey>)

列舉和轉換序列,並使用指定的索引鍵比較子產生其內容的不可變排序字典。

ToImmutableSortedDictionary<TSource,TKey,TValue>(IEnumerable<TSource>, Func<TSource,TKey>, Func<TSource,TValue>)

列舉和轉換序列,併產生其內容的不可變排序字典。

ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>)

列舉序列、產生其內容的不可變排序集,並使用指定的比較子。

ToImmutableSortedSet<TSource>(IEnumerable<TSource>)

列舉序列,併產生其內容的不可變排序集。

適用於