Google Cloud Ai Platform V1 Client - Class RagResource (1.37.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class RagResource.

The definition of the Rag resource.

Generated from protobuf message google.cloud.aiplatform.v1.RetrieveContextsRequest.VertexRagStore.RagResource

Namespace

Google \ Cloud \ AIPlatform \ V1 \ RetrieveContextsRequest \ VertexRagStore

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ rag_corpus string

Optional. RagCorpora resource name. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

↳ rag_file_ids array

Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.

getRagCorpus

Optional. RagCorpora resource name.

Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

Returns
Type Description
string

setRagCorpus

Optional. RagCorpora resource name.

Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

Parameter
Name Description
var string
Returns
Type Description
$this

getRagFileIds

Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRagFileIds

Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.

Parameter
Name Description
var string[]
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月08日 UTC.