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.
22522 22523 22524 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22522 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
22515 22516 22517 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22515 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
22520 22521 22522 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22520 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22527 22528 22529 22530 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 22527 def update!(**args) @rag_retrieval_config = args[:rag_retrieval_config] if args.key?(:rag_retrieval_config) @text = args[:text] if args.key?(:text) end |