Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagQuery
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagQuery
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
A query to retrieve relevant contexts.
Instance Attribute Summary collapse
-
#rag_retrieval_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfig
Specifies the context retrieval config.
-
#text ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1RagQuery
constructor
A new instance of GoogleCloudAiplatformV1RagQuery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1RagQuery
Returns a new instance of GoogleCloudAiplatformV1RagQuery.
25019 25020 25021 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25019 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rag_retrieval_config ⇒ Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagRetrievalConfig
Specifies the context retrieval config.
Corresponds to the JSON property ragRetrievalConfig
25012 25013 25014 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25012 def rag_retrieval_config @rag_retrieval_config end |
#text ⇒ String
Optional. The query in text format to get relevant contexts.
Corresponds to the JSON property text
25017 25018 25019 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25017 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
25024 25025 25026 25027 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 25024 def update!(**args) @rag_retrieval_config = args[:rag_retrieval_config] if args.key?(:rag_retrieval_config) @text = args[:text] if args.key?(:text) end |