Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextsContext
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagContextsContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
A context of the query.
Instance Attribute Summary collapse
-
#distance ⇒ Float
The distance between the query vector and the context text vector.
-
#source_uri ⇒ String
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 ⇒ String
The text chunk.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagContextsContext
constructor
A new instance of GoogleCloudAiplatformV1beta1RagContextsContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagContextsContext
Returns a new instance of GoogleCloudAiplatformV1beta1RagContextsContext.
22211 22212 22213 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22211 def initialize(**args) update!(**args) end |
Instance Attribute Details
#distance ⇒ Float
The distance between the query vector and the context text vector.
Corresponds to the JSON property distance
22197 22198 22199 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22197 def distance @distance end |
#source_uri ⇒ String
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.
Corresponds to the JSON property sourceUri
22204 22205 22206 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22204 def source_uri @source_uri end |
#text ⇒ String
The text chunk.
Corresponds to the JSON property text
22209 22210 22211 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22209 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22216 22217 22218 22219 22220 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22216 def update!(**args) @distance = args[:distance] if args.key?(:distance) @source_uri = args[:source_uri] if args.key?(:source_uri) @text = args[:text] if args.key?(:text) end |