Class LlmParser (1.91.0)

LlmParser(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specifies the advanced parsing for RagFiles.

Attributes

Name Description
model_name str
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.
global_max_parsing_requests_per_min int
The maximum number of requests the job is allowed to make to the LLM model per minute in this project. Consult https://cloud.google.com/vertex-ai/generative-ai/docs/quotas and your document size to set an appropriate value here. If this value is not specified, max_parsing_requests_per_min will be used by indexing pipeline job as the global limit.
custom_parsing_prompt str
The prompt to use for parsing. If not specified, a default prompt will be used.

Methods

LlmParser

LlmParser(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specifies the advanced parsing for RagFiles.