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

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