pub struct DocumentProcessor { /* private fields */ }Expand description
Main document processor
Implementations§
Source§impl DocumentProcessor
impl DocumentProcessor
Sourcepub fn generate_vision_prompt(
&self,
processed: &ProcessedDocument,
query: &str,
) -> Result<String>
pub fn generate_vision_prompt( &self, processed: &ProcessedDocument, query: &str, ) -> Result<String>
Generate a prompt for vision model analysis
Trait Implementations§
Source§impl Drop for DocumentProcessor
impl Drop for DocumentProcessor
Auto Trait Implementations§
impl Forget for DocumentProcessor
impl Freeze for DocumentProcessor
impl Move for DocumentProcessor
impl RefUnwindSafe for DocumentProcessor
impl Send for DocumentProcessorwhere
RawVecInner: Send,
impl Sync for DocumentProcessorwhere
RawVecInner: Sync,
impl Unpin for DocumentProcessor
impl UnsafeUnpin for DocumentProcessor
impl UnwindSafe for DocumentProcessorwhere
RawVecInner: UnwindSafe,
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