pub struct EmbeddingRetriever<E, V> { /* private fields */ }Expand description
Adapter that combines an Embedder and a VectorStore
(scoped to one Namespace) into a Retriever.
Cloning is cheap — both the embedder and the store sit behind
Arc, so multiple retrievers can share one connection pool /
embedding client.
Implementations§
Source§impl<E, V> EmbeddingRetriever<E, V>where
E: Embedder,
V: VectorStore,
impl<E, V> EmbeddingRetriever<E, V>where
E: Embedder,
V: VectorStore,
Trait Implementations§
Source§impl<E, V> Clone for EmbeddingRetriever<E, V>
impl<E, V> Clone for EmbeddingRetriever<E, V>
Source§impl<E, V> Debug for EmbeddingRetriever<E, V>
impl<E, V> Debug for EmbeddingRetriever<E, V>
Source§impl<E, V> Retriever for EmbeddingRetriever<E, V>where
E: Embedder + 'static,
V: VectorStore + 'static,
impl<E, V> Retriever for EmbeddingRetriever<E, V>where
E: Embedder + 'static,
V: VectorStore + 'static,
Auto Trait Implementations§
impl<E, V> Freeze for EmbeddingRetriever<E, V>
impl<E, V> RefUnwindSafe for EmbeddingRetriever<E, V>where
E: RefUnwindSafe,
V: RefUnwindSafe,
impl<E, V> Send for EmbeddingRetriever<E, V>
impl<E, V> Sync for EmbeddingRetriever<E, V>
impl<E, V> Unpin for EmbeddingRetriever<E, V>
impl<E, V> UnsafeUnpin for EmbeddingRetriever<E, V>
impl<E, V> UnwindSafe for EmbeddingRetriever<E, V>where
E: RefUnwindSafe,
V: RefUnwindSafe,
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