public static final class RagFileParsingConfig.LlmParser extends GeneratedMessage implements RagFileParsingConfig.LlmParserOrBuilderSpecifies the advanced parsing for RagFiles.
Protobuf type google.cloud.vertexai.v1.RagFileParsingConfig.LlmParser
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > RagFileParsingConfig.LlmParserImplements
RagFileParsingConfig.LlmParserOrBuilderStatic Fields
CUSTOM_PARSING_PROMPT_FIELD_NUMBER
public static final int CUSTOM_PARSING_PROMPT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MAX_PARSING_REQUESTS_PER_MIN_FIELD_NUMBER
public static final int MAX_PARSING_REQUESTS_PER_MIN_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MODEL_NAME_FIELD_NUMBER
public static final int MODEL_NAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static RagFileParsingConfig.LlmParser getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static RagFileParsingConfig.LlmParser.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser.Builder |
|
newBuilder(RagFileParsingConfig.LlmParser prototype)
public static RagFileParsingConfig.LlmParser.Builder newBuilder(RagFileParsingConfig.LlmParser prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
RagFileParsingConfig.LlmParser |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser.Builder |
|
parseDelimitedFrom(InputStream input)
public static RagFileParsingConfig.LlmParser parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RagFileParsingConfig.LlmParser parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static RagFileParsingConfig.LlmParser parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RagFileParsingConfig.LlmParser parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static RagFileParsingConfig.LlmParser parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RagFileParsingConfig.LlmParser parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static RagFileParsingConfig.LlmParser parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RagFileParsingConfig.LlmParser parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static RagFileParsingConfig.LlmParser parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RagFileParsingConfig.LlmParser parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static RagFileParsingConfig.LlmParser parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RagFileParsingConfig.LlmParser parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<RagFileParsingConfig.LlmParser> parser()| Returns | |
|---|---|
| Type | Description |
Parser<LlmParser> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getCustomParsingPrompt()
public String getCustomParsingPrompt()The prompt to use for parsing. If not specified, a default prompt will be used.
string custom_parsing_prompt = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The customParsingPrompt. |
getCustomParsingPromptBytes()
public ByteString getCustomParsingPromptBytes()The prompt to use for parsing. If not specified, a default prompt will be used.
string custom_parsing_prompt = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for customParsingPrompt. |
getDefaultInstanceForType()
public RagFileParsingConfig.LlmParser getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser |
|
getMaxParsingRequestsPerMin()
public int getMaxParsingRequestsPerMin()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.
int32 max_parsing_requests_per_min = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The maxParsingRequestsPerMin. |
getModelName()
public String getModelName()The name of a LLM model used for parsing. Format:
projects/{project_id}/locations/{location}/publishers/{publisher}/models/{model}
string model_name = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The modelName. |
getModelNameBytes()
public ByteString getModelNameBytes()The name of a LLM model used for parsing. Format:
projects/{project_id}/locations/{location}/publishers/{publisher}/models/{model}
string model_name = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for modelName. |
getParserForType()
public Parser<RagFileParsingConfig.LlmParser> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<LlmParser> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public RagFileParsingConfig.LlmParser.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected RagFileParsingConfig.LlmParser.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser.Builder |
|
toBuilder()
public RagFileParsingConfig.LlmParser.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
RagFileParsingConfig.LlmParser.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|