public static final class RagVectorDbConfig.RagManagedDb.ANN extends com.google.protobuf.GeneratedMessageV3 implements RagVectorDbConfig.RagManagedDb.ANNOrBuilder
Config for ANN search. RagManagedDb uses a tree-based structure to partition data and facilitate faster searches. As a tradeoff, it requires longer indexing time and manual triggering of index rebuild via the ImportRagFiles and UpdateRagCorpus API.Protobuf type
google.cloud.aiplatform.v1.RagVectorDbConfig.RagManagedDb.ANN| Modifier and Type | Class and Description |
|---|---|
static class |
RagVectorDbConfig.RagManagedDb.ANN.Builder
Config for ANN search.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
LEAF_COUNT_FIELD_NUMBER |
static int |
TREE_DEPTH_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static RagVectorDbConfig.RagManagedDb.ANN |
getDefaultInstance() |
RagVectorDbConfig.RagManagedDb.ANN |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getLeafCount()
Number of leaf nodes in the tree-based structure.
|
com.google.protobuf.Parser<RagVectorDbConfig.RagManagedDb.ANN> |
getParserForType() |
int |
getSerializedSize() |
int |
getTreeDepth()
The depth of the tree-based structure.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RagVectorDbConfig.RagManagedDb.ANN.Builder |
newBuilder() |
static RagVectorDbConfig.RagManagedDb.ANN.Builder |
newBuilder(RagVectorDbConfig.RagManagedDb.ANN prototype) |
RagVectorDbConfig.RagManagedDb.ANN.Builder |
newBuilderForType() |
protected RagVectorDbConfig.RagManagedDb.ANN.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseDelimitedFrom(InputStream input) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseFrom(byte[] data) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseFrom(ByteBuffer data) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseFrom(com.google.protobuf.ByteString data) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseFrom(InputStream input) |
static RagVectorDbConfig.RagManagedDb.ANN |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RagVectorDbConfig.RagManagedDb.ANN> |
parser() |
RagVectorDbConfig.RagManagedDb.ANN.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TREE_DEPTH_FIELD_NUMBER
public static final int LEAF_COUNT_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getTreeDepth()
The depth of the tree-based structure. Only depth values of 2 and 3 are supported. Recommended value is 2 if you have if you have O(10K) files in the RagCorpus and set this to 3 if more than that. Default value is 2.
int32 tree_depth = 1;getTreeDepth in interface RagVectorDbConfig.RagManagedDb.ANNOrBuilderpublic int getLeafCount()
Number of leaf nodes in the tree-based structure. Each leaf node contains groups of closely related vectors along with their corresponding centroid. Recommended value is 10 * sqrt(num of RagFiles in your RagCorpus). Default value is 500.
int32 leaf_count = 2;getLeafCount in interface RagVectorDbConfig.RagManagedDb.ANNOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RagVectorDbConfig.RagManagedDb.ANN parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RagVectorDbConfig.RagManagedDb.ANN parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RagVectorDbConfig.RagManagedDb.ANN parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RagVectorDbConfig.RagManagedDb.ANN parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RagVectorDbConfig.RagManagedDb.ANN parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RagVectorDbConfig.RagManagedDb.ANN parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RagVectorDbConfig.RagManagedDb.ANN parseFrom(InputStream input) throws IOException
IOExceptionpublic static RagVectorDbConfig.RagManagedDb.ANN parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RagVectorDbConfig.RagManagedDb.ANN parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RagVectorDbConfig.RagManagedDb.ANN parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RagVectorDbConfig.RagManagedDb.ANN parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RagVectorDbConfig.RagManagedDb.ANN parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RagVectorDbConfig.RagManagedDb.ANN.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RagVectorDbConfig.RagManagedDb.ANN.Builder newBuilder()
public static RagVectorDbConfig.RagManagedDb.ANN.Builder newBuilder(RagVectorDbConfig.RagManagedDb.ANN prototype)
public RagVectorDbConfig.RagManagedDb.ANN.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RagVectorDbConfig.RagManagedDb.ANN.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RagVectorDbConfig.RagManagedDb.ANN getDefaultInstance()
public static com.google.protobuf.Parser<RagVectorDbConfig.RagManagedDb.ANN> parser()
public com.google.protobuf.Parser<RagVectorDbConfig.RagManagedDb.ANN> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RagVectorDbConfig.RagManagedDb.ANN getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.