pub struct GoogleCloudAiplatformV1NearestNeighborQuery {
pub embedding: Option<GoogleCloudAiplatformV1NearestNeighborQueryEmbedding>,
pub string_filters: Option<Vec<GoogleCloudAiplatformV1NearestNeighborQueryStringFilter>>,
pub parameters: Option<GoogleCloudAiplatformV1NearestNeighborQueryParameters>,
pub neighbor_count: Option<i32>,
pub entity_id: Option<String>,
pub per_crowding_attribute_neighbor_count: Option<i32>,
pub numeric_filters: Option<Vec<GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter>>,
}Expand description
A query to find a number of similar entities.
This type is not used in any activity, and only used as part of another schema.
Fields§
§embedding: Option<GoogleCloudAiplatformV1NearestNeighborQueryEmbedding>Optional. The embedding vector that be used for similar search.
string_filters: Option<Vec<GoogleCloudAiplatformV1NearestNeighborQueryStringFilter>>Optional. The list of string filters.
parameters: Option<GoogleCloudAiplatformV1NearestNeighborQueryParameters>Optional. Parameters that can be set to tune query on the fly.
neighbor_count: Option<i32>Optional. The number of similar entities to be retrieved from feature view for each query.
entity_id: Option<String>Optional. The entity id whose similar entities should be searched for. If embedding is set, search will use embedding instead of entity_id.
per_crowding_attribute_neighbor_count: Option<i32>Optional. Crowding is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than sper_crowding_attribute_neighbor_count of the k neighbors returned have the same value of crowding_attribute. It’s used for improving result diversity.
numeric_filters: Option<Vec<GoogleCloudAiplatformV1NearestNeighborQueryNumericFilter>>Optional. The list of numeric filters.
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1NearestNeighborQuery
impl Clone for GoogleCloudAiplatformV1NearestNeighborQuery
Source§fn clone(&self) -> GoogleCloudAiplatformV1NearestNeighborQuery
fn clone(&self) -> GoogleCloudAiplatformV1NearestNeighborQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudAiplatformV1NearestNeighborQuery
impl Default for GoogleCloudAiplatformV1NearestNeighborQuery
Source§fn default() -> GoogleCloudAiplatformV1NearestNeighborQuery
fn default() -> GoogleCloudAiplatformV1NearestNeighborQuery
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1NearestNeighborQuery
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1NearestNeighborQuery
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudAiplatformV1NearestNeighborQuery
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1NearestNeighborQuery
impl RefUnwindSafe for GoogleCloudAiplatformV1NearestNeighborQuery
impl Send for GoogleCloudAiplatformV1NearestNeighborQuery
impl Sync for GoogleCloudAiplatformV1NearestNeighborQuery
impl Unpin for GoogleCloudAiplatformV1NearestNeighborQuery
impl UnwindSafe for GoogleCloudAiplatformV1NearestNeighborQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more