Google Cloud Ai Platform V1 Client - Class ImportRagFilesConfig (1.17.0)

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

Config for importing RagFiles.

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

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ gcs_source
GcsSource

Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats: - gs://bucket_name/my_directory/object_name/my_file.txt - gs://bucket_name/my_directory

↳ google_drive_source
GoogleDriveSource

Google Drive location. Supports importing individual files as well as Google Drive folders.

↳ slack_source
SlackSource

Slack channels with their corresponding access tokens.

↳ jira_source
JiraSource

Jira queries with their corresponding authentication.

↳ share_point_sources
SharePointSources

SharePoint sources.

↳ partial_failure_gcs_sink
GcsDestination

The Cloud Storage path to write partial failures to. Deprecated. Prefer to use import_result_gcs_sink .

↳ partial_failure_bigquery_sink
BigQueryDestination

The BigQuery destination to write partial failures to. It should be a bigquery table resource name (e.g. "bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the table does not exist, it will be created with the expected schema. If the table exists, the schema will be validated and data will be added to this existing table. Deprecated. Prefer to use import_result_bq_sink .

↳ rag_file_transformation_config
RagFileTransformationConfig

Specifies the transformation config for RagFiles.

↳ max_embedding_requests_per_min
int

Optional. The max number of queries per minute that this job is allowed to make to the embedding model specified on the corpus. This value is specific to this job and not shared across other import jobs. Consult the Quotas page on the project to set an appropriate value here. If unspecified, a default value of 1,000 QPM would be used.

getGcsSource

Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats:

  • gs://bucket_name/my_directory/object_name/my_file.txt
  • gs://bucket_name/my_directory
Returns
Type
Description
GcsSource |null

hasGcsSource

setGcsSource

Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats:

  • gs://bucket_name/my_directory/object_name/my_file.txt
  • gs://bucket_name/my_directory
Parameter
Name
Description
var
Returns
Type
Description
$this

getGoogleDriveSource

Google Drive location. Supports importing individual files as well as Google Drive folders.

Returns
Type
Description

hasGoogleDriveSource

setGoogleDriveSource

Google Drive location. Supports importing individual files as well as Google Drive folders.

Parameter
Name
Description
Returns
Type
Description
$this

getSlackSource

Slack channels with their corresponding access tokens.

Returns
Type
Description
SlackSource |null

hasSlackSource

setSlackSource

Slack channels with their corresponding access tokens.

Parameter
Name
Description
Returns
Type
Description
$this

getJiraSource

Jira queries with their corresponding authentication.

Returns
Type
Description
JiraSource |null

hasJiraSource

setJiraSource

Jira queries with their corresponding authentication.

Parameter
Name
Description
Returns
Type
Description
$this

getSharePointSources

SharePoint sources.

Returns
Type
Description

hasSharePointSources

setSharePointSources

SharePoint sources.

Parameter
Name
Description
Returns
Type
Description
$this

getPartialFailureGcsSink

The Cloud Storage path to write partial failures to.

Deprecated. Prefer to use import_result_gcs_sink .

Returns
Type
Description

hasPartialFailureGcsSink

setPartialFailureGcsSink

The Cloud Storage path to write partial failures to.

Deprecated. Prefer to use import_result_gcs_sink .

Parameter
Name
Description
Returns
Type
Description
$this

getPartialFailureBigquerySink

The BigQuery destination to write partial failures to. It should be a bigquery table resource name (e.g.

"bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the table does not exist, it will be created with the expected schema. If the table exists, the schema will be validated and data will be added to this existing table. Deprecated. Prefer to use import_result_bq_sink .

Returns
Type
Description

hasPartialFailureBigquerySink

setPartialFailureBigquerySink

The BigQuery destination to write partial failures to. It should be a bigquery table resource name (e.g.

"bq://projectId.bqDatasetId.bqTableId"). The dataset must exist. If the table does not exist, it will be created with the expected schema. If the table exists, the schema will be validated and data will be added to this existing table. Deprecated. Prefer to use import_result_bq_sink .

Parameter
Name
Description
Returns
Type
Description
$this

getRagFileTransformationConfig

Specifies the transformation config for RagFiles.

Returns
Type
Description

hasRagFileTransformationConfig

clearRagFileTransformationConfig

setRagFileTransformationConfig

Specifies the transformation config for RagFiles.

Parameter
Name
Description
Returns
Type
Description
$this

getMaxEmbeddingRequestsPerMin

Optional. The max number of queries per minute that this job is allowed to make to the embedding model specified on the corpus. This value is specific to this job and not shared across other import jobs. Consult the Quotas page on the project to set an appropriate value here.

If unspecified, a default value of 1,000 QPM would be used.

Returns
Type
Description
int

setMaxEmbeddingRequestsPerMin

Optional. The max number of queries per minute that this job is allowed to make to the embedding model specified on the corpus. This value is specific to this job and not shared across other import jobs. Consult the Quotas page on the project to set an appropriate value here.

If unspecified, a default value of 1,000 QPM would be used.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getImportSource

Returns
Type
Description
string

getPartialFailureSink

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: