OpenAIEmbeddingsDataModel class final

This class is used to represent the data returned by an OpenAI embeddings request.

Annotations
  • @immutable

Constructors

OpenAIEmbeddingsDataModel({required List<double> embeddings, required int index})
This class is used to represent the data returned by an OpenAI embeddings request.
const
OpenAIEmbeddingsDataModel.fromMap(Map<String, dynamic> map)
This class is used to represent the data returned by an OpenAI embeddings request. This method is used to convert a Map<String, dynamic> object to a OpenAIEmbeddingsDataModel object.
factory

Properties

embeddings List<double>
The embedding of the text.
final
hashCode int
The hash code for this object.
no setteroverride
haveEmbeddings bool
Weither the embeddings have at least one item in embeddings.
no setter
index int
The index of the text.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(covariant OpenAIEmbeddingsDataModel other) bool
The equality operator.
override