pub struct RecommendPointGroupsBuilder { /* private fields */ }
Expand description
Builder for RecommendPointGroups
.
Implementations§
source§impl RecommendPointGroupsBuilder
impl RecommendPointGroupsBuilder
sourcepub fn collection_name(self, value: String) -> Self
pub fn collection_name(self, value: String) -> Self
Name of the collection
sourcepub fn filter<VALUE: Into<Filter>>(self, value: VALUE) -> Self
pub fn filter<VALUE: Into<Filter>>(self, value: VALUE) -> Self
Filter conditions - return only those points that satisfy the specified conditions
sourcepub fn with_payload<VALUE: Into<SelectorOptions>>(self, value: VALUE) -> Self
pub fn with_payload<VALUE: Into<SelectorOptions>>(self, value: VALUE) -> Self
Options for specifying which payload to include or not
sourcepub fn params<VALUE: Into<SearchParams>>(self, value: VALUE) -> Self
pub fn params<VALUE: Into<SearchParams>>(self, value: VALUE) -> Self
Search config
sourcepub fn score_threshold(self, value: f32) -> Self
pub fn score_threshold(self, value: f32) -> Self
If provided - cut off results with worse scores
sourcepub fn using<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn using<VALUE: Into<String>>(self, value: VALUE) -> Self
Define which vector to use for recommendation, if not specified - default vector
sourcepub fn with_vectors<VALUE: Into<SelectorOptions>>(self, value: VALUE) -> Self
pub fn with_vectors<VALUE: Into<SelectorOptions>>(self, value: VALUE) -> Self
Options for specifying which vectors to include into response
sourcepub fn lookup_from<VALUE: Into<LookupLocation>>(self, value: VALUE) -> Self
pub fn lookup_from<VALUE: Into<LookupLocation>>(self, value: VALUE) -> Self
Name of the collection to use for points lookup, if not specified - use current collection
sourcepub fn group_by(self, value: String) -> Self
pub fn group_by(self, value: String) -> Self
Payload field to group by, must be a string or number field. If there are multiple values for the field, all of them will be used. One point can be in multiple groups.
sourcepub fn group_size(self, value: u32) -> Self
pub fn group_size(self, value: u32) -> Self
Maximum amount of points to return per group
sourcepub fn read_consistency<VALUE: Into<Value>>(self, value: VALUE) -> Self
pub fn read_consistency<VALUE: Into<Value>>(self, value: VALUE) -> Self
Options for specifying read consistency guarantees
sourcepub fn with_lookup<VALUE: Into<WithLookup>>(self, value: VALUE) -> Self
pub fn with_lookup<VALUE: Into<WithLookup>>(self, value: VALUE) -> Self
Options for specifying how to use the group id to lookup points in another collection
sourcepub fn strategy<VALUE: Into<i32>>(self, value: VALUE) -> Self
pub fn strategy<VALUE: Into<i32>>(self, value: VALUE) -> Self
How to use the example vectors to find the results
sourcepub fn timeout(self, value: u64) -> Self
pub fn timeout(self, value: u64) -> Self
If set, overrides global timeout setting for this request. Unit is seconds.
sourcepub fn shard_key_selector<VALUE: Into<ShardKeySelector>>(
self,
value: VALUE,
) -> Self
pub fn shard_key_selector<VALUE: Into<ShardKeySelector>>( self, value: VALUE, ) -> Self
Specify in which shards to look for the points, if not specified - look in all shards
source§impl RecommendPointGroupsBuilder
impl RecommendPointGroupsBuilder
sourcepub fn build(self) -> RecommendPointGroups
pub fn build(self) -> RecommendPointGroups
Builds the desired type. Can often be omitted.
source§impl RecommendPointGroupsBuilder
impl RecommendPointGroupsBuilder
sourcepub fn add_positive(
self,
recommend_example: impl Into<RecommendExample>,
) -> Self
pub fn add_positive( self, recommend_example: impl Into<RecommendExample>, ) -> Self
Look for vectors closest to the vectors from these points or vectors
sourcepub fn add_negative(
self,
recommend_example: impl Into<RecommendExample>,
) -> Self
pub fn add_negative( self, recommend_example: impl Into<RecommendExample>, ) -> Self
Try to avoid vectors like the vector from these points or vectors
Trait Implementations§
source§impl From<RecommendPointGroupsBuilder> for RecommendPointGroups
impl From<RecommendPointGroupsBuilder> for RecommendPointGroups
source§fn from(value: RecommendPointGroupsBuilder) -> Self
fn from(value: RecommendPointGroupsBuilder) -> Self
Auto Trait Implementations§
impl Freeze for RecommendPointGroupsBuilder
impl RefUnwindSafe for RecommendPointGroupsBuilder
impl Send for RecommendPointGroupsBuilder
impl Sync for RecommendPointGroupsBuilder
impl Unpin for RecommendPointGroupsBuilder
impl UnwindSafe for RecommendPointGroupsBuilder
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> 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> 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