Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VertexRagStore
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1VertexRagStore
- 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
Retrieve from Vertex RAG Store for grounding.
Instance Attribute Summary collapse
-
#rag_corpora ⇒ Array<String>
Required.
-
#similarity_top_k ⇒ Fixnum
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1VertexRagStore
constructor
A new instance of GoogleCloudAiplatformV1beta1VertexRagStore.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1VertexRagStore
Returns a new instance of GoogleCloudAiplatformV1beta1VertexRagStore.
33864 33865 33866 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33864 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rag_corpora ⇒ Array<String>
Required. Vertex RAG Store corpus resource name: projects/project/locations/
location/ragCorpora/ragCorpus Currently only one corpus is allowed. In the
future we may open up multiple corpora support. However, they should be from
the same project and location.
Corresponds to the JSON property ragCorpora
33857 33858 33859 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33857 def rag_corpora @rag_corpora end |
#similarity_top_k ⇒ Fixnum
Optional. Number of top k results to return from the selected corpora.
Corresponds to the JSON property similarityTopK
33862 33863 33864 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33862 def similarity_top_k @similarity_top_k end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
33869 33870 33871 33872 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 33869 def update!(**args) @rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora) @similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k) end |