SearchData class
- Annotations
-
- @JsonSerializable()
Constructors
- SearchData(int document, String object, num score, String? text)
-
SearchData.fromJson(Map<
String, dynamic> json) -
factory
Properties
- document → int
-
The index of the document in the list.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- object → String
-
What kind of prompt this was, e.g. "search_result".
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → num
-
The semantic search score.
final
- text → String?
-
Only available when a file was provided to the API call with return_metadata enabled.
Gives the metadata of the file.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited