|
35 | 35 | "RagFile",
|
36 | 36 | "RagFileChunkingConfig",
|
37 | 37 | "RagFileTransformationConfig",
|
| 38 | + "RagFileParsingConfig", |
38 | 39 | "UploadRagFileConfig",
|
39 | 40 | "ImportRagFilesConfig",
|
40 | 41 | },
|
@@ -526,6 +527,58 @@ class RagFileTransformationConfig(proto.Message):
|
526 | 527 | )
|
527 | 528 |
|
528 | 529 |
|
| 530 | +class RagFileParsingConfig(proto.Message): |
| 531 | + r"""Specifies the parsing config for RagFiles. |
| 532 | +
|
| 533 | + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields |
| 534 | +
|
| 535 | + Attributes: |
| 536 | + layout_parser (google.cloud.aiplatform_v1.types.RagFileParsingConfig.LayoutParser): |
| 537 | + The Layout Parser to use for RagFiles. |
| 538 | +
|
| 539 | + This field is a member of `oneof`_ ``parser``. |
| 540 | + """ |
| 541 | + |
| 542 | + class LayoutParser(proto.Message): |
| 543 | + r"""Document AI Layout Parser config. |
| 544 | +
|
| 545 | + Attributes: |
| 546 | + processor_name (str): |
| 547 | + The full resource name of a Document AI processor or |
| 548 | + processor version. The processor must have type |
| 549 | + ``LAYOUT_PARSER_PROCESSOR``. If specified, the |
| 550 | + ``additional_config.parse_as_scanned_pdf`` field must be |
| 551 | + false. Format: |
| 552 | +
|
| 553 | + - ``projects/{project_id}/locations/{location}/processors/{processor_id}`` |
| 554 | + - ``projects/{project_id}/locations/{location}/processors/{processor_id}/processorVersions/{processor_version_id}`` |
| 555 | + max_parsing_requests_per_min (int): |
| 556 | + The maximum number of requests the job is |
| 557 | + allowed to make to the Document AI processor per |
| 558 | + minute. Consult |
| 559 | + https://cloud.google.com/document-ai/quotas and |
| 560 | + the Quota page for your project to set an |
| 561 | + appropriate value here. If unspecified, a |
| 562 | + default value of 120 QPM would be used. |
| 563 | + """ |
| 564 | + |
| 565 | + processor_name: str = proto.Field( |
| 566 | + proto.STRING, |
| 567 | + number=1, |
| 568 | + ) |
| 569 | + max_parsing_requests_per_min: int = proto.Field( |
| 570 | + proto.INT32, |
| 571 | + number=2, |
| 572 | + ) |
| 573 | + |
| 574 | + layout_parser: LayoutParser = proto.Field( |
| 575 | + proto.MESSAGE, |
| 576 | + number=4, |
| 577 | + oneof="parser", |
| 578 | + message=LayoutParser, |
| 579 | + ) |
| 580 | + |
| 581 | + |
529 | 582 | class UploadRagFileConfig(proto.Message):
|
530 | 583 | r"""Config for uploading RagFile.
|
531 | 584 |
|
@@ -600,6 +653,10 @@ class ImportRagFilesConfig(proto.Message):
|
600 | 653 | rag_file_transformation_config (google.cloud.aiplatform_v1.types.RagFileTransformationConfig):
|
601 | 654 | Specifies the transformation config for
|
602 | 655 | RagFiles.
|
| 656 | + rag_file_parsing_config (google.cloud.aiplatform_v1.types.RagFileParsingConfig): |
| 657 | + Optional. Specifies the parsing config for |
| 658 | + RagFiles. RAG will use the default parser if |
| 659 | + this field is not set. |
603 | 660 | max_embedding_requests_per_min (int):
|
604 | 661 | Optional. The max number of queries per
|
605 | 662 | minute that this job is allowed to make to the
|
@@ -658,6 +715,11 @@ class ImportRagFilesConfig(proto.Message):
|
658 | 715 | number=16,
|
659 | 716 | message="RagFileTransformationConfig",
|
660 | 717 | )
|
| 718 | + rag_file_parsing_config: "RagFileParsingConfig" = proto.Field( |
| 719 | + proto.MESSAGE, |
| 720 | + number=8, |
| 721 | + message="RagFileParsingConfig", |
| 722 | + ) |
661 | 723 | max_embedding_requests_per_min: int = proto.Field(
|
662 | 724 | proto.INT32,
|
663 | 725 | number=5,
|
|
0 commit comments