Skip to content

Commit cccef41

Browse files
Google APIscopybara-github
authored andcommitted
feat: Expose llm parser to public v1 proto to prepare for GA
PiperOrigin-RevId: 753454988
1 parent cc6c360 commit cccef41

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

google/cloud/aiplatform/v1/vertex_rag_data.proto

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,32 @@ message RagFileParsingConfig {
347347
int32 max_parsing_requests_per_min = 2;
348348
}
349349

350+
// Specifies the advanced parsing for RagFiles.
351+
message LlmParser {
352+
// The name of a LLM model used for parsing.
353+
// Format:
354+
// * `projects/{project_id}/locations/{location}/publishers/{publisher}/models/{model}`
355+
string model_name = 1;
356+
357+
// The maximum number of requests the job is allowed to make to the
358+
// LLM model per minute. Consult
359+
// https://cloud.google.com/vertex-ai/generative-ai/docs/quotas
360+
// and your document size to set an appropriate value here. If unspecified,
361+
// a default value of 5000 QPM would be used.
362+
int32 max_parsing_requests_per_min = 2;
363+
364+
// The prompt to use for parsing. If not specified, a default prompt will
365+
// be used.
366+
string custom_parsing_prompt = 3;
367+
}
368+
350369
// The parser to use for RagFiles.
351370
oneof parser {
352371
// The Layout Parser to use for RagFiles.
353372
LayoutParser layout_parser = 4;
373+
374+
// The LLM Parser to use for RagFiles.
375+
LlmParser llm_parser = 5;
354376
}
355377
}
356378

0 commit comments

Comments
 (0)