Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfig
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfig
- 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
Specifies the context retrieval config.
Instance Attribute Summary collapse
-
#filter ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter
Config for filters.
-
#hybrid_search ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
Config for Hybrid Search.
-
#ranking ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking
Config for ranking and reranking.
-
#top_k ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagRetrievalConfig
constructor
A new instance of GoogleCloudAiplatformV1beta1RagRetrievalConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagRetrievalConfig
Returns a new instance of GoogleCloudAiplatformV1beta1RagRetrievalConfig.
44731 44732 44733 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 44731 def initialize(**args) update!(**args) end |
Instance Attribute Details
#filter ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigFilter
Config for filters.
Corresponds to the JSON property filter
44714 44715 44716 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 44714 def filter @filter end |
#hybrid_search ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigHybridSearch
Config for Hybrid Search.
Corresponds to the JSON property hybridSearch
44719 44720 44721 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 44719 def hybrid_search @hybrid_search end |
#ranking ⇒ Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagRetrievalConfigRanking
Config for ranking and reranking.
Corresponds to the JSON property ranking
44724 44725 44726 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 44724 def ranking @ranking end |
#top_k ⇒ Fixnum
Optional. The number of contexts to retrieve.
Corresponds to the JSON property topK
44729 44730 44731 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 44729 def top_k @top_k end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44736 44737 44738 44739 44740 44741 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 44736 def update!(**args) @filter = args[:filter] if args.key?(:filter) @hybrid_search = args[:hybrid_search] if args.key?(:hybrid_search) @ranking = args[:ranking] if args.key?(:ranking) @top_k = args[:top_k] if args.key?(:top_k) end |