Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Specifies the advanced parsing for RagFiles.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser

Returns a new instance of GoogleCloudAiplatformV1beta1RagFileParsingConfigLlmParser.



26486
26487
26488
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26486

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#custom_parsing_promptString

The prompt to use for parsing. If not specified, a default prompt will be used. Corresponds to the JSON property customParsingPrompt

Returns:

  • (String)


26471
26472
26473
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26471

def custom_parsing_prompt
  @custom_parsing_prompt
end

#max_parsing_requests_per_minFixnum

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. Corresponds to the JSON property maxParsingRequestsPerMin

Returns:

  • (Fixnum)


26479
26480
26481
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26479

def max_parsing_requests_per_min
  @max_parsing_requests_per_min
end

#model_nameString

The name of a LLM model used for parsing. Format: gemini-1.5-pro-002 Corresponds to the JSON property modelName

Returns:

  • (String)


26484
26485
26486
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26484

def model_name
  @model_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



26491
26492
26493
26494
26495
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 26491

def update!(**args)
  @custom_parsing_prompt = args[:custom_parsing_prompt] if args.key?(:custom_parsing_prompt)
  @max_parsing_requests_per_min = args[:max_parsing_requests_per_min] if args.key?(:max_parsing_requests_per_min)
  @model_name = args[:model_name] if args.key?(:model_name)
end