pub struct RagQuery {
pub question: String,
pub sources: Vec<String>,
pub user_id: String,
pub latency_sla: Option<u64>,
pub cost_budget: Option<f64>,
}Expand description
RAG Query with metadata
Fields§
§question: StringUser question
sources: Vec<String>Source documents to search
user_id: StringUser identity for access control
latency_sla: Option<u64>Requested latency SLA (ms)
cost_budget: Option<f64>Cost budget (USD)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RagQuery
impl RefUnwindSafe for RagQuery
impl Send for RagQuery
impl Sync for RagQuery
impl Unpin for RagQuery
impl UnwindSafe for RagQuery
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