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

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

The data source for Vertex RagStore.

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

Namespace

Google \ Cloud \ AIPlatform \ V1 \ RetrieveContextsRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ rag_resources array<VertexRagStore\RagResource>

Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.

↳ vector_distance_threshold float

Optional. Only return contexts with vector distance smaller than the threshold.

getRagResources

Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRagResources

Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.

Parameter
Name Description
var array<VertexRagStore\RagResource>
Returns
Type Description
$this

getVectorDistanceThreshold

Optional. Only return contexts with vector distance smaller than the threshold.

Returns
Type Description
float

hasVectorDistanceThreshold

clearVectorDistanceThreshold

setVectorDistanceThreshold

Optional. Only return contexts with vector distance smaller than the threshold.

Parameter
Name Description
var float
Returns
Type Description
$this