pub struct FeedbackItemBuilder { /* private fields */ }Implementations§
Source§impl FeedbackItemBuilder
impl FeedbackItemBuilder
Sourcepub fn new(example: impl Into<VectorInput>, score: f32) -> Self
pub fn new(example: impl Into<VectorInput>, score: f32) -> Self
Create a new builder with an example and its score.
§Arguments
example- The id or vector from the original model.score- Score for this vector as determined by the feedback provider.
§Examples
use qdrant_client::qdrant::{FeedbackItemBuilder, PointId, VectorInput};
let item = FeedbackItemBuilder::new(VectorInput::new_id(PointId::from(42)), 0.9);Sourcepub fn build(self) -> FeedbackItem
pub fn build(self) -> FeedbackItem
Builds the desired type. Can often be omitted.
Trait Implementations§
Source§impl Clone for FeedbackItemBuilder
impl Clone for FeedbackItemBuilder
Source§fn clone(&self) -> FeedbackItemBuilder
fn clone(&self) -> FeedbackItemBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<FeedbackItemBuilder> for FeedbackItem
impl From<FeedbackItemBuilder> for FeedbackItem
Source§fn from(value: FeedbackItemBuilder) -> Self
fn from(value: FeedbackItemBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FeedbackItemBuilder
impl RefUnwindSafe for FeedbackItemBuilder
impl Send for FeedbackItemBuilder
impl Sync for FeedbackItemBuilder
impl Unpin for FeedbackItemBuilder
impl UnsafeUnpin for FeedbackItemBuilder
impl UnwindSafe for FeedbackItemBuilder
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
Mutably borrows from an owned value. Read more
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>
Wrap the input message
T in a tonic::Request