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
-
#rag_retrieval_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfig
Specifies the context retrieval config.
-
#ranking ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagQueryRanking
Configurations for hybrid search results ranking.
-
#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.
37855 37856 37857 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37855 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rag_retrieval_config ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfig
Specifies the context retrieval config.
Corresponds to the JSON property ragRetrievalConfig
37838 37839 37840 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37838 def rag_retrieval_config @rag_retrieval_config end |
#ranking ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagQueryRanking
Configurations for hybrid search results ranking.
Corresponds to the JSON property ranking
37843 37844 37845 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37843 def ranking @ranking end |
#similarity_top_k ⇒ Fixnum
Optional. The number of contexts to retrieve.
Corresponds to the JSON property similarityTopK
37848 37849 37850 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37848 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
37853 37854 37855 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37853 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
37860 37861 37862 37863 37864 37865 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 37860 def update!(**args) @rag_retrieval_config = args[:rag_retrieval_config] if args.key?(:rag_retrieval_config) @ranking = args[:ranking] if args.key?(:ranking) @similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k) @text = args[:text] if args.key?(:text) end |