Class LlmParser (1.75.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: gemini-1.5-pro-002
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.
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.