Search Results for

    Show / Hide Table of Contents

    Class CohereEmbeddingResponse

    Inheritance
    object
    CohereEmbeddingResponse
    Implements
    IUsageProvider
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Cohere
    Assembly: Glitch9.AIDevKit.Provider.Cohere.dll
    Syntax
    public class CohereEmbeddingResponse : IUsageProvider

    Properties

    | Edit this page View Source

    Embeddings

    Required. An object with different embedding types. The length of each embedding type array will be the same as the length of the original texts array.

    Declaration
    [JsonProperty("embeddings")]
    public CohereEmbeddingResponse.EmbeddingEntry Embeddings { get; set; }
    Property Value
    Type Description
    CohereEmbeddingResponse.EmbeddingEntry
    | Edit this page View Source

    Id

    Required.

    Declaration
    [JsonProperty("id")]
    public string Id { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Images

    Optional. The image entries for which embeddings were returned.

    Declaration
    [JsonProperty("images")]
    public CohereEmbeddingResponse.ImageEntry[] Images { get; set; }
    Property Value
    Type Description
    ImageEntry[]
    | Edit this page View Source

    Meta

    Declaration
    [JsonProperty("meta")]
    public CohereMeta Meta { get; set; }
    Property Value
    Type Description
    CohereMeta
    | Edit this page View Source

    ResponseType

    Optional. Allowed values: embeddings_floats, embeddings_by_type, texts

    Declaration
    [JsonProperty("response_type")]
    public string ResponseType { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Texts

    Optional. The text entries for which embeddings were returned.

    Declaration
    [JsonProperty("texts")]
    public string[] Texts { get; set; }
    Property Value
    Type Description
    string[]

    Methods

    | Edit this page View Source

    GetUsage()

    Declaration
    public Usage GetUsage()
    Returns
    Type Description
    Usage

    Implements

    IUsageProvider

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation