Search Results for

    Show / Hide Table of Contents

    Class EmbeddingItem

    Expected response schema to embeddings object list item request.

    Inheritance
    object
    EmbeddingItem
    Implements
    IEquatable<EmbeddingItem>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DotnetPrompt.LLM.OpenAI.Model
    Assembly: DotnetPrompt.LLM.OpenAI.dll
    Syntax
    public record EmbeddingItem : IEquatable<EmbeddingItem>

    Properties

    | Improve this Doc View Source

    Embedding

    List of embeddings value for the input prompt. These represents a measurement of releated of text strings.

    Declaration
    [JsonPropertyName("embedding")]
    public IReadOnlyList<float> Embedding { get; init; }
    Property Value
    Type Description
    IReadOnlyList<float>
    | Improve this Doc View Source

    Index

    Index of the prompt to which the EmbeddingItem corresponds.

    Declaration
    [JsonPropertyName("index")]
    public int Index { get; init; }
    Property Value
    Type Description
    int
    | Improve this Doc View Source

    Text

    Text of embeddings

    Declaration
    [JsonIgnore]
    public string Text { get; set; }
    Property Value
    Type Description
    string

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright 2023 © Pavel «xakpc» Osadchuk for DotnetPrompt