Struct google_api_proto::google::cloud::aiplatform::v1beta1::feature_view::IndexConfig
source · pub struct IndexConfig {
pub embedding_column: String,
pub filter_columns: Vec<String>,
pub crowding_column: String,
pub embedding_dimension: Option<i32>,
pub distance_measure_type: i32,
pub algorithm_config: Option<AlgorithmConfig>,
}
Expand description
Configuration for vector indexing.
Fields§
§embedding_column: String
Optional. Column of embedding. This column contains the source data to create index for vector search. embedding_column must be set when using vector search.
filter_columns: Vec<String>
Optional. Columns of features that’re used to filter vector search results.
crowding_column: String
Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by [FeatureOnlineStoreService.SearchNearestEntities][google.cloud.aiplatform.v1beta1.FeatureOnlineStoreService.SearchNearestEntities] to diversify search results. If [NearestNeighborQuery.per_crowding_attribute_neighbor_count][google.cloud.aiplatform.v1beta1.NearestNeighborQuery.per_crowding_attribute_neighbor_count] is set to K in [SearchNearestEntitiesRequest][google.cloud.aiplatform.v1beta1.SearchNearestEntitiesRequest], it’s guaranteed that no more than K entities of the same crowding attribute are returned in the response.
embedding_dimension: Option<i32>
Optional. The number of dimensions of the input embedding.
distance_measure_type: i32
Optional. The distance measure used in nearest neighbor search.
algorithm_config: Option<AlgorithmConfig>
The configuration with regard to the algorithms used for efficient search.
Implementations§
source§impl IndexConfig
impl IndexConfig
sourcepub fn embedding_dimension(&self) -> i32
pub fn embedding_dimension(&self) -> i32
Returns the value of embedding_dimension
, or the default value if embedding_dimension
is unset.
sourcepub fn distance_measure_type(&self) -> DistanceMeasureType
pub fn distance_measure_type(&self) -> DistanceMeasureType
Returns the enum value of distance_measure_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_distance_measure_type(&mut self, value: DistanceMeasureType)
pub fn set_distance_measure_type(&mut self, value: DistanceMeasureType)
Sets distance_measure_type
to the provided enum value.
Trait Implementations§
source§impl Clone for IndexConfig
impl Clone for IndexConfig
source§fn clone(&self) -> IndexConfig
fn clone(&self) -> IndexConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IndexConfig
impl Debug for IndexConfig
source§impl Default for IndexConfig
impl Default for IndexConfig
source§impl Message for IndexConfig
impl Message for IndexConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for IndexConfig
impl PartialEq for IndexConfig
source§fn eq(&self, other: &IndexConfig) -> bool
fn eq(&self, other: &IndexConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IndexConfig
Auto Trait Implementations§
impl Freeze for IndexConfig
impl RefUnwindSafe for IndexConfig
impl Send for IndexConfig
impl Sync for IndexConfig
impl Unpin for IndexConfig
impl UnwindSafe for IndexConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request