Enum GroundingSettings.GroundingType (2.107.0)

public enum GroundingSettings.GroundingType extends Enum<GroundingSettings.GroundingType> implements ProtocolMessageEnum

Grounding type options.

Protobuf enum google.cloud.documentai.v1beta3.GroundingSettings.GroundingType

Implements

ProtocolMessageEnum

Static Fields

Name Description
GROUNDING_TYPE_UNSPECIFIED

The default value. Behaves like HARD.

GROUNDING_TYPE_UNSPECIFIED = 0;

GROUNDING_TYPE_UNSPECIFIED_VALUE

The default value. Behaves like HARD.

GROUNDING_TYPE_UNSPECIFIED = 0;

HARD

Requires exact match with OCR text for extractions.

HARD = 1;

HARD_VALUE

Requires exact match with OCR text for extractions.

HARD = 1;

NO_GROUNDING

LLM extractions are used without strict OCR matching. Bounding boxes may be approximated or absent.

NO_GROUNDING = 3;

NO_GROUNDING_VALUE

LLM extractions are used without strict OCR matching. Bounding boxes may be approximated or absent.

NO_GROUNDING = 3;

OCR_RELAXED

Allows for minor discrepancies between LLM output and OCR text.

OCR_RELAXED = 2;

OCR_RELAXED_VALUE

Allows for minor discrepancies between LLM output and OCR text.

OCR_RELAXED = 2;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()