Class Context (1.49.0)

Context(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A context of the query.

Attributes

NameDescription
source_uri str
For vertex RagStore, 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.
text str
The text chunk.
distance float
The distance between the query vector and the context text vector.

Methods

Context

Context(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A context of the query.