async def _convert_with_mistral(self, local_path: str) -> Tuple[str, Optional[str]]:
        """Convert PDF using Mistral OCR.

        Args:
            local_path: Path to the PDF file

        Returns:
            Tuple of (markdown_content, title)

        Raises:
            Exception: If Mistral OCR conversion fails
        """
        logger.info(f"Using Mistral OCR to process PDF: {local_path}")

        # Check file size
        file_size = os.path.getsize(local_path)
        if file_size > MAX_MISTRAL_FILE_SIZE:
            logger.info(
                f"PDF size ({file_size} bytes) exceeds Mistral's 50MB limit, splitting by page"
            )
            return await self._process_large_pdf(local_path)

        # Process normally for files under 50MB
        return await self._process_single_pdf(local_path)
Convert PDF using Mistral OCR.

        Args:
            local_path: Path to the PDF file

        Returns:
            Tuple of (markdown_content, title)

        Raises:
            Exception: If Mistral OCR conversion fails
        
backend/airweave/platform/file_handling/conversion/converters/pdf_converter.py