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

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

Specifies the advanced parsing for RagFiles.

Generated from protobuf message google.cloud.aiplatform.v1.RagFileParsingConfig.LlmParser

Namespace

Google \ Cloud \ AIPlatform \ V1 \ RagFileParsingConfig

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ model_name string

The name of a LLM model used for parsing. Format: * * projects/{project_id}/locations/{location}/publishers/{publisher}/models/{model}

↳ max_parsing_requests_per_min int

The maximum number of requests the job is allowed to make to the LLM model per minute. Consult https://cloud.google.com/vertex-ai/generative-ai/docs/quotas and your document size to set an appropriate value here. If unspecified, a default value of 5000 QPM would be used.

↳ custom_parsing_prompt string

The prompt to use for parsing. If not specified, a default prompt will be used.

getModelName

The name of a LLM model used for parsing.

Format:

  • projects/{project_id}/locations/{location}/publishers/{publisher}/models/{model}
Returns
Type Description
string

setModelName

The name of a LLM model used for parsing.

Format:

  • projects/{project_id}/locations/{location}/publishers/{publisher}/models/{model}
Parameter
Name Description
var string
Returns
Type Description
$this

getMaxParsingRequestsPerMin

The maximum number of requests the job is allowed to make to the LLM model per minute. Consult https://cloud.google.com/vertex-ai/generative-ai/docs/quotas and your document size to set an appropriate value here. If unspecified, a default value of 5000 QPM would be used.

Returns
Type Description
int

setMaxParsingRequestsPerMin

The maximum number of requests the job is allowed to make to the LLM model per minute. Consult https://cloud.google.com/vertex-ai/generative-ai/docs/quotas and your document size to set an appropriate value here. If unspecified, a default value of 5000 QPM would be used.

Parameter
Name Description
var int
Returns
Type Description
$this

getCustomParsingPrompt

The prompt to use for parsing. If not specified, a default prompt will be used.

Returns
Type Description
string

setCustomParsingPrompt

The prompt to use for parsing. If not specified, a default prompt will be used.

Parameter
Name Description
var string
Returns
Type Description
$this