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.
34197 34198 34199 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34197 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
34190 34191 34192 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34190 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
34195 34196 34197 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34195 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
34202 34203 34204 34205 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 34202 def update!(**args) @rag_retrieval_config = args[:rag_retrieval_config] if args.key?(:rag_retrieval_config) @text = args[:text] if args.key?(:text) end |