pub struct GoogleCloudAiplatformV1FindNeighborsRequestQuery {
pub approximate_neighbor_count: Option<i32>,
pub fraction_leaf_nodes_to_search_override: Option<f64>,
pub rrf: Option<GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF>,
pub datapoint: Option<GoogleCloudAiplatformV1IndexDatapoint>,
pub per_crowding_attribute_neighbor_count: Option<i32>,
pub neighbor_count: Option<i32>,
}Expand description
A query to find a number of the nearest neighbors (most similar vectors) of a vector.
This type is not used in any activity, and only used as part of another schema.
Fields§
§approximate_neighbor_count: Option<i32>The number of neighbors to find via approximate search before exact reordering is performed. If not set, the default value from scam config is used; if set, this value must be > 0.
fraction_leaf_nodes_to_search_override: Option<f64>The fraction of the number of leaves to search, set at query time allows user to tune search performance. This value increase result in both search accuracy and latency increase. The value should be between 0.0 and 1.0. If not set or set to 0.0, query uses the default value specified in NearestNeighborSearchConfig.TreeAHConfig.fraction_leaf_nodes_to_search.
rrf: Option<GoogleCloudAiplatformV1FindNeighborsRequestQueryRRF>Optional. Represents RRF algorithm that combines search results.
datapoint: Option<GoogleCloudAiplatformV1IndexDatapoint>Required. The datapoint/vector whose nearest neighbors should be searched for.
per_crowding_attribute_neighbor_count: Option<i32>Crowding is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some value k’ of the k neighbors returned have the same value of crowding_attribute. It’s used for improving result diversity. This field is the maximum number of matches with the same crowding tag.
neighbor_count: Option<i32>The number of nearest neighbors to be retrieved from database for each query. If not set, will use the default from the service configuration (https://cloud.google.com/vertex-ai/docs/matching-engine/configuring-indexes#nearest-neighbor-search-config).
Trait Implementations§
Source§impl Clone for GoogleCloudAiplatformV1FindNeighborsRequestQuery
impl Clone for GoogleCloudAiplatformV1FindNeighborsRequestQuery
Source§fn clone(&self) -> GoogleCloudAiplatformV1FindNeighborsRequestQuery
fn clone(&self) -> GoogleCloudAiplatformV1FindNeighborsRequestQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudAiplatformV1FindNeighborsRequestQuery
impl Default for GoogleCloudAiplatformV1FindNeighborsRequestQuery
Source§fn default() -> GoogleCloudAiplatformV1FindNeighborsRequestQuery
fn default() -> GoogleCloudAiplatformV1FindNeighborsRequestQuery
Source§impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1FindNeighborsRequestQuery
impl<'de> Deserialize<'de> for GoogleCloudAiplatformV1FindNeighborsRequestQuery
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 GoogleCloudAiplatformV1FindNeighborsRequestQuery
Auto Trait Implementations§
impl Freeze for GoogleCloudAiplatformV1FindNeighborsRequestQuery
impl RefUnwindSafe for GoogleCloudAiplatformV1FindNeighborsRequestQuery
impl Send for GoogleCloudAiplatformV1FindNeighborsRequestQuery
impl Sync for GoogleCloudAiplatformV1FindNeighborsRequestQuery
impl Unpin for GoogleCloudAiplatformV1FindNeighborsRequestQuery
impl UnwindSafe for GoogleCloudAiplatformV1FindNeighborsRequestQuery
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