Class: Google::Cloud::AIPlatform::V1::RagFileParsingConfig

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb

Overview

Specifies the parsing config for RagFiles.

Defined Under Namespace

Classes: LayoutParser, LlmParser

Instance Attribute Summary collapse

Instance Attribute Details

#layout_parser::Google::Cloud::AIPlatform::V1::RagFileParsingConfig::LayoutParser

Returns The Layout Parser to use for RagFiles.

Note: The following fields are mutually exclusive: layout_parser, llm_parser. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
# File 'proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb', line 399

class RagFileParsingConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Document AI Layout Parser config.
  # @!attribute [rw] processor_name
  #   @return [::String]
  #     The full resource name of a Document AI processor or processor version.
  #     The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
  #     `additional_config.parse_as_scanned_pdf` field must be false.
  #     Format:
  #     * `projects/{project_id}/locations/{location}/processors/{processor_id}`
  #     * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
  # @!attribute [rw] max_parsing_requests_per_min
  #   @return [::Integer]
  #     The maximum number of requests the job is allowed to make to the Document
  #     AI processor per minute. Consult
  #     https://cloud.google.com/document-ai/quotas and the Quota page for your
  #     project to set an appropriate value here. If unspecified, a default value
  #     of 120 QPM would be used.
  class LayoutParser
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Specifies the advanced parsing for RagFiles.
  # @!attribute [rw] model_name
  #   @return [::String]
  #     The name of a LLM model used for parsing.
  #     Format:
  #     * `projects/{project_id}/locations/{location}/publishers/{publisher}/models/{model}`
  # @!attribute [rw] max_parsing_requests_per_min
  #   @return [::Integer]
  #     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.
  # @!attribute [rw] custom_parsing_prompt
  #   @return [::String]
  #     The prompt to use for parsing. If not specified, a default prompt will
  #     be used.
  class LlmParser
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#llm_parser::Google::Cloud::AIPlatform::V1::RagFileParsingConfig::LlmParser

Returns The LLM Parser to use for RagFiles.

Note: The following fields are mutually exclusive: llm_parser, layout_parser. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
# File 'proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb', line 399

class RagFileParsingConfig
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Document AI Layout Parser config.
  # @!attribute [rw] processor_name
  #   @return [::String]
  #     The full resource name of a Document AI processor or processor version.
  #     The processor must have type `LAYOUT_PARSER_PROCESSOR`. If specified, the
  #     `additional_config.parse_as_scanned_pdf` field must be false.
  #     Format:
  #     * `projects/{project_id}/locations/{location}/processors/{processor_id}`
  #     * `projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`
  # @!attribute [rw] max_parsing_requests_per_min
  #   @return [::Integer]
  #     The maximum number of requests the job is allowed to make to the Document
  #     AI processor per minute. Consult
  #     https://cloud.google.com/document-ai/quotas and the Quota page for your
  #     project to set an appropriate value here. If unspecified, a default value
  #     of 120 QPM would be used.
  class LayoutParser
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Specifies the advanced parsing for RagFiles.
  # @!attribute [rw] model_name
  #   @return [::String]
  #     The name of a LLM model used for parsing.
  #     Format:
  #     * `projects/{project_id}/locations/{location}/publishers/{publisher}/models/{model}`
  # @!attribute [rw] max_parsing_requests_per_min
  #   @return [::Integer]
  #     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.
  # @!attribute [rw] custom_parsing_prompt
  #   @return [::String]
  #     The prompt to use for parsing. If not specified, a default prompt will
  #     be used.
  class LlmParser
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end