Skip to content

Commit 2f81f77

Browse files
Google APIscopybara-github
authored andcommitted
feat: add LLM parser proto to API
PiperOrigin-RevId: 705199740
1 parent 9845b03 commit 2f81f77

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

google/cloud/aiplatform/v1beta1/vertex_rag_data.proto

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,13 +440,34 @@ message RagFileParsingConfig {
440440
int32 max_parsing_requests_per_min = 2;
441441
}
442442

443+
// Specifies the advanced parsing for RagFiles.
444+
message LlmParser {
445+
// The name of a LLM model used for parsing.
446+
// Format: `gemini-1.5-pro-002`
447+
string model_name = 1;
448+
449+
// The maximum number of requests the job is allowed to make to the
450+
// LLM model per minute. Consult
451+
// https://cloud.google.com/vertex-ai/generative-ai/docs/quotas
452+
// and your document size to set an appropriate value here. If unspecified,
453+
// a default value of 5000 QPM would be used.
454+
int32 max_parsing_requests_per_min = 2;
455+
456+
// The prompt to use for parsing. If not specified, a default prompt will
457+
// be used.
458+
string custom_parsing_prompt = 3;
459+
}
460+
443461
// The parser to use for RagFiles.
444462
oneof parser {
445463
// The Advanced Parser to use for RagFiles.
446464
AdvancedParser advanced_parser = 3;
447465

448466
// The Layout Parser to use for RagFiles.
449467
LayoutParser layout_parser = 4;
468+
469+
// The LLM Parser to use for RagFiles.
470+
LlmParser llm_parser = 5;
450471
}
451472

452473
// Whether to use advanced PDF parsing.

0 commit comments

Comments
 (0)