Search Results for

    Show / Hide Table of Contents

    Class Embedding

    Represents an embedding output as an asset structure, designed to be used with Generated<Embedding>. This wrapper class allows for future extensibility, supporting not only float[] but also other embedding types as required by different APIs.

    Inheritance
    object
    Embedding
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit
    Assembly: Glitch9.AIDevKit.dll
    Syntax
    public class Embedding

    Properties

    | Edit this page View Source

    Index

    Declaration
    public int Index { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    Value

    The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the embedding guide. See the embedding guide for more information on the length of the vector for each model.

    Declaration
    public float[] Value { get; set; }
    Property Value
    Type Description
    float[]

    Operators

    | Edit this page View Source

    implicit operator float[](Embedding)

    Declaration
    public static implicit operator float[](Embedding embedding)
    Parameters
    Type Name Description
    Embedding embedding
    Returns
    Type Description
    float[]
    | Edit this page View Source

    implicit operator Embedding(float[])

    Declaration
    public static implicit operator Embedding(float[] vector)
    Parameters
    Type Name Description
    float[] vector
    Returns
    Type Description
    Embedding

    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