Cloud AI Platform v1beta1 API - Class RagContexts.Types.Context (1.0.0-beta03)

public sealed class RagContexts.Types.Context : IMessage<RagContexts.Types.Context>, IEquatable<RagContexts.Types.Context>, IDeepCloneable<RagContexts.Types.Context>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud AI Platform v1beta1 API class RagContexts.Types.Context.

A context of the query.

Inheritance

object > RagContexts.Types.Context

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Constructors

Context()

public Context()

Context(Context)

public Context(RagContexts.Types.Context other)
Parameter
Name Description
other RagContextsTypesContext

Properties

Distance

public double Distance { get; set; }

The distance between the query dense embedding vector and the context text vector.

Property Value
Type Description
double

SourceUri

public string SourceUri { get; set; }

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.

Property Value
Type Description
string

SparseDistance

public double SparseDistance { get; set; }

The distance between the query sparse embedding vector and the context text vector.

Property Value
Type Description
double

Text

public string Text { get; set; }

The text chunk.

Property Value
Type Description
string