Struct google_api_proto::google::cloud::aiplatform::v1beta1::feature_view::VectorSearchConfig
source · pub struct VectorSearchConfig {
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
Deprecated. Use [IndexConfig][google.cloud.aiplatform.v1beta1.FeatureView.IndexConfig] instead.
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 VectorSearchConfig
impl VectorSearchConfig
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 VectorSearchConfig
impl Clone for VectorSearchConfig
source§fn clone(&self) -> VectorSearchConfig
fn clone(&self) -> VectorSearchConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VectorSearchConfig
impl Debug for VectorSearchConfig
source§impl Default for VectorSearchConfig
impl Default for VectorSearchConfig
source§impl Message for VectorSearchConfig
impl Message for VectorSearchConfig
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 VectorSearchConfig
impl PartialEq for VectorSearchConfig
source§fn eq(&self, other: &VectorSearchConfig) -> bool
fn eq(&self, other: &VectorSearchConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VectorSearchConfig
Auto Trait Implementations§
impl Freeze for VectorSearchConfig
impl RefUnwindSafe for VectorSearchConfig
impl Send for VectorSearchConfig
impl Sync for VectorSearchConfig
impl Unpin for VectorSearchConfig
impl UnwindSafe for VectorSearchConfig
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