RagContexts_Context class final

A context of the query.

Inheritance
  • Object
  • ProtoMessage
  • RagContexts_Context

Constructors

RagContexts_Context({String sourceUri = '', String sourceDisplayName = '', String text = '', double distance = 0, double sparseDistance = 0, double? score, RagChunk? chunk})
RagContexts_Context.fromJson(Map<String, dynamic> json)
factory

Properties

chunk RagChunk?
Context of the retrieved chunk.
final
distance double
The distance between the query dense embedding vector and the context text vector.
final
hashCode int
The hash code for this object.
no setterinherited
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score double?
According to the underlying Vector DB and the selected metric type, the score can be either the distance or the similarity between the query and the context and its range depends on the metric type.
final
sourceDisplayName String
The file display name.
final
sourceUri String
If the file is imported from Cloud Storage or Google Drive, source_uri will be original file URI in Cloud Storage or Google Drive; if file is uploaded, source_uri will be file display name.
final
sparseDistance double
The distance between the query sparse embedding vector and the context text vector.
final
text String
The text chunk.
final

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String