pub struct Query {
pub text: String,
pub now: DateTime<Utc>,
pub task_tags: Vec<String>,
pub half_life_days: f32,
}Expand description
A retrieval request plus the context that makes scoring explainable.
Fields§
§text: String§now: DateTime<Utc>“Now” is passed in (not read from the clock) so scoring is deterministic and unit-testable.
Current task context (e.g. repo/file/topic) for task-relevance.
half_life_days: f32Recency half-life in days (score halves every half_life_days).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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