pub struct ExtractorBuilder<T, M>{ /* private fields */ }Expand description
Builder for the Extractor
Implementations§
Source§impl<T, M> ExtractorBuilder<T, M>
impl<T, M> ExtractorBuilder<T, M>
pub fn new(model: M) -> ExtractorBuilder<T, M>
Sourcepub fn preamble(self, preamble: &str) -> ExtractorBuilder<T, M>
pub fn preamble(self, preamble: &str) -> ExtractorBuilder<T, M>
Add additional preamble to the extractor
Sourcepub fn context(self, doc: &str) -> ExtractorBuilder<T, M>
pub fn context(self, doc: &str) -> ExtractorBuilder<T, M>
Add a context document to the extractor
pub fn additional_params(self, params: Value) -> ExtractorBuilder<T, M>
Sourcepub fn max_tokens(self, max_tokens: u64) -> ExtractorBuilder<T, M>
pub fn max_tokens(self, max_tokens: u64) -> ExtractorBuilder<T, M>
Set the maximum number of tokens for the completion
Auto Trait Implementations§
impl<T, M> Freeze for ExtractorBuilder<T, M>where
M: Freeze,
impl<T, M> !RefUnwindSafe for ExtractorBuilder<T, M>
impl<T, M> Send for ExtractorBuilder<T, M>
impl<T, M> Sync for ExtractorBuilder<T, M>
impl<T, M> Unpin for ExtractorBuilder<T, M>
impl<T, M> !UnwindSafe for ExtractorBuilder<T, M>
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