Google Cloud Ai Platform V1 Client - Class VertexRagSource (1.5.0)

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

A Vertex Rag source for features that need to be synced to Online Store.

Generated from protobuf message google.cloud.aiplatform.v1.FeatureView.VertexRagSource

Namespace

Google \ Cloud \ AIPlatform \ V1 \ FeatureView

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ uri string

Required. The BigQuery view/table URI that will be materialized on each manual sync trigger. The table/view is expected to have the following columns and types at least: - corpus_id (STRING, NULLABLE/REQUIRED) - file_id (STRING, NULLABLE/REQUIRED) - chunk_id (STRING, NULLABLE/REQUIRED) - chunk_data_type (STRING, NULLABLE/REQUIRED) - chunk_data (STRING, NULLABLE/REQUIRED) - embeddings (FLOAT, REPEATED) - file_original_uri (STRING, NULLABLE/REQUIRED)

↳ rag_corpus_id int|string

Optional. The RAG corpus id corresponding to this FeatureView.

getUri

Required. The BigQuery view/table URI that will be materialized on each manual sync trigger. The table/view is expected to have the following columns and types at least:

  • corpus_id (STRING, NULLABLE/REQUIRED)
  • file_id (STRING, NULLABLE/REQUIRED)
  • chunk_id (STRING, NULLABLE/REQUIRED)
  • chunk_data_type (STRING, NULLABLE/REQUIRED)
  • chunk_data (STRING, NULLABLE/REQUIRED)
  • embeddings (FLOAT, REPEATED)
  • file_original_uri (STRING, NULLABLE/REQUIRED)
Returns
Type Description
string

setUri

Required. The BigQuery view/table URI that will be materialized on each manual sync trigger. The table/view is expected to have the following columns and types at least:

  • corpus_id (STRING, NULLABLE/REQUIRED)
  • file_id (STRING, NULLABLE/REQUIRED)
  • chunk_id (STRING, NULLABLE/REQUIRED)
  • chunk_data_type (STRING, NULLABLE/REQUIRED)
  • chunk_data (STRING, NULLABLE/REQUIRED)
  • embeddings (FLOAT, REPEATED)
  • file_original_uri (STRING, NULLABLE/REQUIRED)
Parameter
Name Description
var string
Returns
Type Description
$this

getRagCorpusId

Optional. The RAG corpus id corresponding to this FeatureView.

Returns
Type Description
int|string

setRagCorpusId

Optional. The RAG corpus id corresponding to this FeatureView.

Parameter
Name Description
var int|string
Returns
Type Description
$this