pub struct RagConfigBuilder { /* private fields */ }Expand description
Configuration builder for RAG
Implementations§
Source§impl RagConfigBuilder
impl RagConfigBuilder
Sourcepub fn provider(self, provider: LlmProvider) -> Self
pub fn provider(self, provider: LlmProvider) -> Self
Set the LLM provider
Sourcepub fn model_params(self, max_tokens: usize, temperature: f32) -> Self
pub fn model_params(self, max_tokens: usize, temperature: f32) -> Self
Set model parameters
Sourcepub fn hybrid_search(self, semantic_weight: f32) -> Self
pub fn hybrid_search(self, semantic_weight: f32) -> Self
Enable hybrid search
Sourcepub fn rate_limit(self, requests_per_minute: u32) -> Self
pub fn rate_limit(self, requests_per_minute: u32) -> Self
Set rate limiting
Trait Implementations§
Source§impl Debug for RagConfigBuilder
impl Debug for RagConfigBuilder
Auto Trait Implementations§
impl Freeze for RagConfigBuilder
impl RefUnwindSafe for RagConfigBuilder
impl Send for RagConfigBuilder
impl Sync for RagConfigBuilder
impl Unpin for RagConfigBuilder
impl UnwindSafe for RagConfigBuilder
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