pub enum Insight {
QueryPattern {
description: String,
example_queries: Vec<String>,
frequency: f32,
related_entries: Vec<Uuid>,
},
KnowledgeGap {
topic: String,
unresolved_queries: Vec<String>,
suggestions: Vec<String>,
severity: f32,
},
Classification {
entry_id: Uuid,
class: KnowledgeClass,
confidence: f32,
reason: String,
},
Relationship {
source_id: Uuid,
target_id: Uuid,
relationship: RelationshipType,
strength: f32,
},
HotTopic {
topic: String,
entry_ids: Vec<Uuid>,
interest_score: f32,
trend: Trend,
},
}Expand description
Insight produced by a batch job.
Variants§
QueryPattern
A pattern detected in queries.
Fields
Associated entry IDs.
KnowledgeGap
A gap in knowledge coverage.
Fields
Classification
Classification of an entry.
Fields
§
class: KnowledgeClassKnowledge class.
Relationship
A discovered relationship.
Fields
§
relationship: RelationshipTypeRelationship type.
HotTopic
Hot topic detection.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Insight
impl<'de> Deserialize<'de> for Insight
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 Insight
impl RefUnwindSafe for Insight
impl Send for Insight
impl Sync for Insight
impl Unpin for Insight
impl UnsafeUnpin for Insight
impl UnwindSafe for Insight
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