pub struct ParentDocumentRetriever { /* private fields */ }Expand description
Splits parent documents into children, stores both, and returns parent documents when child chunks match a query.
Accepts a splitting function Fn(&str) -> Vec<String> to avoid circular
dependencies on synapse-splitters.
Implementations§
Trait Implementations§
Source§impl Retriever for ParentDocumentRetriever
impl Retriever for ParentDocumentRetriever
Auto Trait Implementations§
impl Freeze for ParentDocumentRetriever
impl !RefUnwindSafe for ParentDocumentRetriever
impl Send for ParentDocumentRetriever
impl Sync for ParentDocumentRetriever
impl Unpin for ParentDocumentRetriever
impl UnsafeUnpin for ParentDocumentRetriever
impl !UnwindSafe for ParentDocumentRetriever
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