@@ -496,6 +496,7 @@ def import_files(
496496 transformation_config : Optional [TransformationConfig ] = None ,
497497 timeout : int = 600 ,
498498 max_embedding_requests_per_min : int = 1000 ,
499+ global_max_embedding_requests_per_min : Optional [int ] = None ,
499500 use_advanced_pdf_parsing : Optional [bool ] = False ,
500501 partial_failures_sink : Optional [str ] = None ,
501502 layout_parser : Optional [LayoutParserConfig ] = None ,
@@ -605,6 +606,13 @@ def import_files(
605606 page on the project to set an appropriate value
606607 here. If unspecified, a default value of 1,000
607608 QPM would be used.
609+ global_max_embedding_requests_per_min:
610+ Optional. The max number of queries per minute that the indexing
611+ pipeline job is allowed to make to the embedding model specified in
612+ the project. Please follow the quota usage guideline of the embedding
613+ model you use to set the value properly. If this value is not specified,
614+ max_embedding_requests_per_min will be used by indexing pipeline job
615+ as the global limit and this means parallel import jobs are not allowed.
608616 timeout: Default is 600 seconds.
609617 use_advanced_pdf_parsing: Whether to use advanced PDF
610618 parsing on uploaded files. This field is deprecated.
@@ -663,6 +671,7 @@ def import_files(
663671 chunk_overlap = chunk_overlap ,
664672 transformation_config = transformation_config ,
665673 max_embedding_requests_per_min = max_embedding_requests_per_min ,
674+ global_max_embedding_requests_per_min = global_max_embedding_requests_per_min ,
666675 use_advanced_pdf_parsing = use_advanced_pdf_parsing ,
667676 partial_failures_sink = partial_failures_sink ,
668677 layout_parser = layout_parser ,
@@ -686,6 +695,7 @@ async def import_files_async(
686695 chunk_overlap : int = 200 ,
687696 transformation_config : Optional [TransformationConfig ] = None ,
688697 max_embedding_requests_per_min : int = 1000 ,
698+ global_max_embedding_requests_per_min : Optional [int ] = None ,
689699 use_advanced_pdf_parsing : Optional [bool ] = False ,
690700 partial_failures_sink : Optional [str ] = None ,
691701 layout_parser : Optional [LayoutParserConfig ] = None ,
@@ -796,6 +806,13 @@ async def import_files_async(
796806 page on the project to set an appropriate value
797807 here. If unspecified, a default value of 1,000
798808 QPM would be used.
809+ global_max_embedding_requests_per_min:
810+ Optional. The max number of queries per minute that the indexing
811+ pipeline job is allowed to make to the embedding model specified in
812+ the project. Please follow the quota usage guideline of the embedding
813+ model you use to set the value properly. If this value is not specified,
814+ max_embedding_requests_per_min will be used by indexing pipeline job
815+ as the global limit and this means parallel import jobs are not allowed.
799816 use_advanced_pdf_parsing: Whether to use advanced PDF
800817 parsing on uploaded files.
801818 partial_failures_sink: Either a GCS path to store partial failures or a
@@ -852,6 +869,7 @@ async def import_files_async(
852869 chunk_overlap = chunk_overlap ,
853870 transformation_config = transformation_config ,
854871 max_embedding_requests_per_min = max_embedding_requests_per_min ,
872+ global_max_embedding_requests_per_min = global_max_embedding_requests_per_min ,
855873 use_advanced_pdf_parsing = use_advanced_pdf_parsing ,
856874 partial_failures_sink = partial_failures_sink ,
857875 layout_parser = layout_parser ,
0 commit comments