Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagQuery
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagQuery
- 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 query to retrieve relevant contexts.
Instance Attribute Summary collapse
-
#similarity_top_k ⇒ Fixnum
Optional.
-
#text ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagQuery
constructor
A new instance of GoogleCloudAiplatformV1beta1RagQuery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagQuery
Returns a new instance of GoogleCloudAiplatformV1beta1RagQuery.
22679 22680 22681 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22679 def initialize(**args) update!(**args) end |
Instance Attribute Details
#similarity_top_k ⇒ Fixnum
Optional. The number of contexts to retrieve.
Corresponds to the JSON property similarityTopK
22672 22673 22674 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22672 def similarity_top_k @similarity_top_k end |
#text ⇒ String
Optional. The query in text format to get relevant contexts.
Corresponds to the JSON property text
22677 22678 22679 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22677 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22684 22685 22686 22687 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 22684 def update!(**args) @similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k) @text = args[:text] if args.key?(:text) end |