pub struct RecommendPointsBuilder { /* private fields */ }
Expand description
Builder for RecommendPoints
.
Implementations§
source§impl RecommendPointsBuilder
impl RecommendPointsBuilder
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 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 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 RecommendPointsBuilder
impl RecommendPointsBuilder
sourcepub fn build(self) -> RecommendPoints
pub fn build(self) -> RecommendPoints
Builds the desired type. Can often be omitted.
source§impl RecommendPointsBuilder
impl RecommendPointsBuilder
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<RecommendPointsBuilder> for RecommendPoints
impl From<RecommendPointsBuilder> for RecommendPoints
source§fn from(value: RecommendPointsBuilder) -> Self
fn from(value: RecommendPointsBuilder) -> Self
Auto Trait Implementations§
impl Freeze for RecommendPointsBuilder
impl RefUnwindSafe for RecommendPointsBuilder
impl Send for RecommendPointsBuilder
impl Sync for RecommendPointsBuilder
impl Unpin for RecommendPointsBuilder
impl UnwindSafe for RecommendPointsBuilder
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