oxirs_embed/contextual/temporal_context.rs
1//! Temporal context handling
2
3use chrono::{DateTime, Utc};
4
5/// Temporal context for time-aware embeddings
6#[derive(Debug, Clone)]
7pub struct TemporalContext {
8 pub timestamp: DateTime<Utc>,
9 pub time_window: chrono::Duration,
10 pub seasonal_factors: Vec<f32>,
11 pub trend_indicators: Vec<f32>,
12}
13
14impl Default for TemporalContext {
15 fn default() -> Self {
16 Self {
17 timestamp: Utc::now(),
18 time_window: chrono::Duration::hours(24),
19 seasonal_factors: Vec::new(),
20 trend_indicators: Vec::new(),
21 }
22 }
23}