Google Cloud Ai Platform V1 Client - Class RagConfig (1.31.0)

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

Configuration for Retrieval Augmented Generation feature.

Generated from protobuf message google.cloud.aiplatform.v1.GenAiAdvancedFeaturesConfig.RagConfig

Namespace

Google \ Cloud \ AIPlatform \ V1 \ GenAiAdvancedFeaturesConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ enable_rag bool

If true, enable Retrieval Augmented Generation in ChatCompletion request. Once enabled, the endpoint will be identified as GenAI endpoint and Arthedain router will be used.

getEnableRag

If true, enable Retrieval Augmented Generation in ChatCompletion request.

Once enabled, the endpoint will be identified as GenAI endpoint and Arthedain router will be used.

Returns
Type Description
bool

setEnableRag

If true, enable Retrieval Augmented Generation in ChatCompletion request.

Once enabled, the endpoint will be identified as GenAI endpoint and Arthedain router will be used.

Parameter
Name Description
var bool
Returns
Type Description
$this