gitdataai/lib/ai/rag/search.rs
2026-05-30 01:38:40 +08:00

17 lines
306 B
Rust

#[derive(Clone, Debug)]
pub struct RagSearchOptions {
pub limit: u64,
pub exact: bool,
}
impl RagSearchOptions {
pub fn new(limit: u64) -> Self {
Self { limit, exact: true }
}
pub fn with_exact(mut self, exact: bool) -> Self {
self.exact = exact;
self
}
}