pub struct NullRagProvider;Expand description
No-op RAG provider for testing.
Trait Implementations§
Source§impl RagProvider for NullRagProvider
impl RagProvider for NullRagProvider
Source§fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
_options: RagSearchOptions,
) -> Pin<Box<dyn Future<Output = Result<RagSearchResults>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
_options: RagSearchOptions,
) -> Pin<Box<dyn Future<Output = Result<RagSearchResults>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Search for semantically similar content.
Source§fn capabilities(&self) -> RagCapabilities
fn capabilities(&self) -> RagCapabilities
Provider capabilities.
Auto Trait Implementations§
impl Freeze for NullRagProvider
impl RefUnwindSafe for NullRagProvider
impl Send for NullRagProvider
impl Sync for NullRagProvider
impl Unpin for NullRagProvider
impl UnwindSafe for NullRagProvider
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