Mistral’s new OCR API turns any PDF document into an AI-ready Markdown file

0


Large language models work particularly well with raw text. Companies that want to create their own AI workflow know that it has become extremely important to store and index data in a clean format so that this data can be reused for AI processing.

That’s why Mistral is launching a new API today for developers who handle complex PDF documents. Mistral OCR is an optical character recognition API that can turn any PDF into a text file.

Unlike most OCR APIs, Mistral OCR is a multimodal API, meaning that it can detect when there are illustrations and photos intertwined with blocks of text. The OCR API creates bounding boxes around these graphical elements and includes them in the output.

Similarly, Mistral OCR doesn’t just output a big wall of text. The output is formatted in Markdown, a formatting syntax that developers use to add links, headers and other formatting elements to a plain text file.

Large language models rely heavily on Markdown for their training data set. When you use an AI assistant, such as Mistral’s Le Chat or OpenAI’s ChatGPT, they often generate Markdown to create bullet lists, add links or put some elements in bold. Assistant apps seamlessly format the Markdown output into a rich text output.

“Over the years, organizations have accumulated numerous documents, often in PDF or slide formats, which are inaccessible to LLMs, particularly RAG systems. With Mistral OCR, our customers can now convert rich and complex documents into readable content in all languages,” Mistral co-founder and chief science officer Guillaume Lample said.

“This is a crucial step toward the widespread adoption of AI assistants in companies that need to simplify access to their vast internal documentation,” he added.

Mistral OCR is available on Mistral’s own API platform or through its cloud partners (AWS, Azure, Google Cloud Vertex, etc.). And for companies working with classified or sensitive data, Mistral also offers on-premises deployment.

According to the Paris-based AI company, Mistral OCR performs better than APIs from Google, Microsoft and OpenAI. The company has tested its OCR model with complex documents that include mathematical expressions (LaTeX formatting), advanced layouts or tables. It is also supposed to perform better with non-English documents.

Image Credits:Mistral

Given that Mistral OCR does one thing and one thing only, the company believes it is also faster than what’s out there. That’s not a surprise if you compare it with a multimodal large language model like GPT-4o, which also has OCR capabilities.

Mistral is also using Mistral OCR for its own AI assistant Le Chat. When a user uploads a PDF file, the company uses Mistral OCR in the background to understand what’s in the document before processing the text.

Developers will also use Mistral OCR with a RAG system to use multimodal documents as input in an LLM. And there are many potential use cases. For instance, I could see law firms using it to help them swift through huge volumes of documents.



Source link

You might also like
Leave A Reply

Your email address will not be published.