pub struct ConversationalRetriverChainBuilder { /* private fields */ }Implementations§
source§impl ConversationalRetriverChainBuilder
impl ConversationalRetriverChainBuilder
pub fn new() -> Self
pub fn retriver<R: Into<Box<dyn Retriever>>>(self, retriver: R) -> Self
pub fn input_key<S: Into<String>>(self, input_key: S) -> Self
pub fn memory(self, memory: Arc<Mutex<dyn BaseMemory>>) -> Self
pub fn llm<L: Into<Box<dyn LLM>>>(self, llm: L) -> Self
pub fn combine_documents_chain<C: Into<Box<dyn Chain>>>( self, combine_documents_chain: C ) -> Self
pub fn condense_question_chian<C: Into<Box<dyn Chain>>>( self, condense_question_chian: C ) -> Self
pub fn rephrase_question(self, rephrase_question: bool) -> Self
pub fn return_source_documents(self, return_source_documents: bool) -> Self
pub fn build(self) -> Result<ConversationalRetriverChain, ChainError>
Auto Trait Implementations§
impl Freeze for ConversationalRetriverChainBuilder
impl !RefUnwindSafe for ConversationalRetriverChainBuilder
impl Send for ConversationalRetriverChainBuilder
impl Sync for ConversationalRetriverChainBuilder
impl Unpin for ConversationalRetriverChainBuilder
impl !UnwindSafe for ConversationalRetriverChainBuilder
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