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.
24011 24012 24013 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24011 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
24004 24005 24006 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24004 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
24009 24010 24011 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24009 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
24016 24017 24018 24019 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 24016 def update!(**args) @rag_retrieval_config = args[:rag_retrieval_config] if args.key?(:rag_retrieval_config) @text = args[:text] if args.key?(:text) end |