pub struct RecommendPointGroups {Show 15 fields
pub collection_name: String,
pub positive: Vec<PointId>,
pub negative: Vec<PointId>,
pub filter: Option<Filter>,
pub limit: u32,
pub with_payload: Option<WithPayloadSelector>,
pub params: Option<SearchParams>,
pub score_threshold: Option<f32>,
pub using: Option<String>,
pub with_vectors: Option<WithVectorsSelector>,
pub lookup_from: Option<LookupLocation>,
pub group_by: String,
pub group_size: u32,
pub read_consistency: Option<ReadConsistency>,
pub with_lookup: Option<WithLookup>,
}
Fields§
§collection_name: String
Name of the collection
positive: Vec<PointId>
Look for vectors closest to those
negative: Vec<PointId>
Try to avoid vectors like this
filter: Option<Filter>
Filter conditions - return only those points that satisfy the specified conditions
limit: u32
Max number of groups in result
with_payload: Option<WithPayloadSelector>
Options for specifying which payload to include or not
params: Option<SearchParams>
Search config
score_threshold: Option<f32>
If provided - cut off results with worse scores
using: Option<String>
Define which vector to use for recommendation, if not specified - default vector
with_vectors: Option<WithVectorsSelector>
Options for specifying which vectors to include into response
lookup_from: Option<LookupLocation>
Name of the collection to use for points lookup, if not specified - use current collection
group_by: String
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.
group_size: u32
Maximum amount of points to return per group
read_consistency: Option<ReadConsistency>
Options for specifying read consistency guarantees
with_lookup: Option<WithLookup>
Options for specifying how to use the group id to lookup points in another collection
Implementations§
Trait Implementations§
Source§impl Clone for RecommendPointGroups
impl Clone for RecommendPointGroups
Source§fn clone(&self) -> RecommendPointGroups
fn clone(&self) -> RecommendPointGroups
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RecommendPointGroups
impl Debug for RecommendPointGroups
Source§impl Default for RecommendPointGroups
impl Default for RecommendPointGroups
Source§impl Message for RecommendPointGroups
impl Message for RecommendPointGroups
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for RecommendPointGroups
impl PartialEq for RecommendPointGroups
impl StructuralPartialEq for RecommendPointGroups
Auto Trait Implementations§
impl Freeze for RecommendPointGroups
impl RefUnwindSafe for RecommendPointGroups
impl Send for RecommendPointGroups
impl Sync for RecommendPointGroups
impl Unpin for RecommendPointGroups
impl UnwindSafe for RecommendPointGroups
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> 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