pub enum SignalType {
Query {
text: String,
embedding: Option<Vec<f32>>,
result_ids: Vec<Uuid>,
},
View {
entry_id: Uuid,
position: usize,
},
Select {
entry_id: Uuid,
position: usize,
},
Dismiss {
entry_id: Uuid,
position: usize,
},
Dwell {
entry_id: Uuid,
duration_ms: u64,
},
FollowUp {
previous_query: QueryId,
viewed_entries: Vec<Uuid>,
},
CoAccess {
entry_ids: Vec<Uuid>,
},
SessionEnd {
duration_secs: u64,
query_count: usize,
},
}Expand description
Type of implicit signal captured.
Variants§
Query
User issued a query.
Fields
View
User viewed a result (e.g., expanded, hovered).
Fields
Select
User selected/used a result (e.g., clicked, copied).
Dismiss
User explicitly dismissed a result.
Dwell
Time spent on a result (dwell time).
FollowUp
User made a follow-up query after viewing results.
Fields
CoAccess
Multiple entries accessed in the same session.
SessionEnd
Session ended - compute final signals.
Trait Implementations§
Source§impl Clone for SignalType
impl Clone for SignalType
Source§fn clone(&self) -> SignalType
fn clone(&self) -> SignalType
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 Debug for SignalType
impl Debug for SignalType
Source§impl<'de> Deserialize<'de> for SignalType
impl<'de> Deserialize<'de> for SignalType
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SignalType
impl RefUnwindSafe for SignalType
impl Send for SignalType
impl Sync for SignalType
impl Unpin for SignalType
impl UnsafeUnpin for SignalType
impl UnwindSafe for SignalType
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