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 SourceEmbedding
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> |
Index
Index of the prompt to which the EmbeddingItem corresponds.
Declaration
[JsonPropertyName("index")]
public int Index { get; init; }
Property Value
Type | Description |
---|---|
int |
Text
Text of embeddings
Declaration
[JsonIgnore]
public string Text { get; set; }
Property Value
Type | Description |
---|---|
string |
Implements
System.IEquatable<T>