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

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

Config for the embedding model to use for RAG.

Generated from protobuf message google.cloud.aiplatform.v1.RagEmbeddingModelConfig

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ vertex_prediction_endpoint RagEmbeddingModelConfig\VertexPredictionEndpoint

The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search.

getVertexPredictionEndpoint

The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model.

Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search.

Returns
Type Description
RagEmbeddingModelConfig\VertexPredictionEndpoint|null

hasVertexPredictionEndpoint

setVertexPredictionEndpoint

The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model.

Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search.

Parameter
Name Description
var RagEmbeddingModelConfig\VertexPredictionEndpoint
Returns
Type Description
$this

getModelConfig

Returns
Type Description
string